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.
I am afraid they omitted "?" at<p><pre><code> type Partial<T> = {
[K in keyof T]: T[K]
}
</code></pre>
in their announce. It should be<p><pre><code> type Partial<T> = {
[K in keyof T]?: T[K]
}
</code></pre>
to make<p><pre><code> interface Thing {
foo: string;
bar: number;
[baz]: boolean;
}
type PartialThing = Partial<Thing>;
</code></pre>
equivalent to<p><pre><code> interface PartialThing {
foo?: string;
bar?: number;
[baz]?: boolean;
}</code></pre>
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 / unlockable like babel does that in their .babelrc