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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Announcing TypeScript 2.9 RC

19 点作者 pingec大约 7 年前

3 条评论

maxxxxx大约 7 年前
We are starting up a new web project. I have worked with typed languages my whole career so I am not really fond of JavaScript. We are mostly C# guys so Typescript feels very familiar. What do people think of TypeScript? Is it a good alternative to JavaScript? Our first tests look really good but I wonder if there are any downfalls.
评论 #17087878 未加载
评论 #17103158 未加载
评论 #17087445 未加载
评论 #17087880 未加载
评论 #17087921 未加载
评论 #17090448 未加载
suzuki大约 7 年前
I am afraid they omitted &quot;?&quot; at<p><pre><code> type Partial&lt;T&gt; = { [K in keyof T]: T[K] } </code></pre> in their announce. It should be<p><pre><code> type Partial&lt;T&gt; = { [K in keyof T]?: T[K] } </code></pre> to make<p><pre><code> interface Thing { foo: string; bar: number; [baz]: boolean; } type PartialThing = Partial&lt;Thing&gt;; </code></pre> equivalent to<p><pre><code> interface PartialThing { foo?: string; bar?: number; [baz]?: boolean; }</code></pre>
pudebe大约 7 年前
I think they should stop to pack more and more type-featzres in each release. I know you do not need them all, but still if you use typescript you should be aware of all features, which become more overwhelming with each new release. I think many features should be made optional &#x2F; unlockable like babel does that in their .babelrc