|
|
|
|
|
by neurotrace
1568 days ago
|
|
> Considered a mistake by whom? The developers of TypeScript. TypeScript aims to avoid adding anything to the runtime as a result of the type system[1]. > It would change nothing to the already complex build pipelines JS developers are already mandated to use for production. You're right, it wouldn't change anything when you're building for production if you're doing things right. It would mean that you don't have to repeatedly compile your code while you're developing it though. > What Typescript should do as an alternative is better support for JSDoc type analysis. If you read the proposal you'll see they explain why expanding JSDoc is not ideal. Personally, I wrote a lot of JSDoc back before TypeScript and now I don't want to touch the stuff. TS is much more ergonomic and expressive. [1]: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... |
|