News for hackers. Stuff that matters.
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`.
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.
Re:Problems with TypeScript by uhryks on Thursday January 16, 2020 @12:43AM (#22061980)
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