3 ms·
I use TypeScript in a way that leaves no TS traces in compiled JS. It means no enums, no namespaces, no private properties, etc. Great list of such features: h
by ivanjermakov 2y ago
I use TypeScript in a way that leaves no TS traces in compiled JS. It means no enums, no namespaces, no private properties, etc.
Great list of such features: https://www.totaltypescript.com/books/total-typescript-essentials/typescript-only-features https://www.totaltypescript.com/books/total-typescript-essen...
TS has a great type system, the rest of the language is runtime overhead.
- preommr 2y ago> no private properties Private properties have been in the works for the last 7-8 years, and were officially added three years ago.
- msoad 2y agoI think they are referring to `class Foo { constructor(private bar: string) }`
- ivanjermakov 2y agoI was talking about useDefineForClassFields and Object.defineProperty with which I encountered performance issues.