TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Microsoft puts its spin on JavaScript with TypeScript

9 点作者 ceekays将近 12 年前

2 条评论

jschrf将近 12 年前
I use TypeScript on a medium-sized (&gt;50K LOC) single-page web application, as well as on some personal projects. The large project was ported over from JavaScript, which went quite smoothly. So far TypeScript has been great. Doing front-end web development while writing type-safe quite is a nice luxury I have not had before.<p>The only thing I would complain about is some of the tooling is still a bit unstable, which is understandable. I&#x27;m using Visual Studio 2012.<p>I&#x27;ve been looking forward to 0.9 for some time now, as the generic support allows me to fully express all of the types in my system.<p>To me the most beautiful thing about TypeScript is it&#x27;s compatibility with JavaScript and how definition files work. Definition files essentially allow you to write code contracts against existing pieces of JavaScript code that may or may not be outside of your control.<p><a href="https://github.com/borisyankov/DefinitelyTyped" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;borisyankov&#x2F;DefinitelyTyped</a> is a good resource for definition files.
评论 #5936266 未加载
评论 #5935359 未加载
phasevar将近 12 年前
Has anyone used TypeScript in conjunction with Node.js? I love developing in the Node ecosystem, but the lack of type checking is irritating.
评论 #5935210 未加载
评论 #5936280 未加载