TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Announcing TypeScript 2.9 RC

19 pointsby pingecabout 7 years ago

3 comments

maxxxxxabout 7 years ago
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 未加载
suzukiabout 7 years ago
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>
pudebeabout 7 years ago
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