Re:Problems with TypeScript
by ng12 on Wednesday January 15, 2020 @06:37PM
(#22060076)
I thought the same but the more I use TypeScript the less I care about it's typechecker. I use it mostly for the amazingly powerful IDE integration and so I don't have to remember if a `User` has an `id` or a `userId`.
[ Parent
| on HN ]
Re:Problems with TypeScript
by superfamicom on Wednesday January 15, 2020 @11:56PM
(#22061775)
I've noticed VSCode at least also learns types and structures from JSDoc in raw / vanilla JavaScript.
Not only VSCode, it's a documented feature of the ts compiler.
https://www.typescriptlang.org/docs/handbook/type-checking-j...
iirc Webpack uses it extensively in its codebase