5 ms·
Typescript from the ground up is absolutely worth it, starting with how it gives you full IDE inference for all those "big blob of options" objects that a lot o
by crooked-v 7y ago
Typescript from the ground up is absolutely worth it, starting with how it gives you full IDE inference for all those "big blob of options" objects that a lot of JS methods use.
- tantalor 7y agoAny IDE could do that for JavaScript; it has nothing to do with TypeScript.
- enobrev 7y agoI agree, and I've found that WebStorm (and other JetBrains software with JavaScript support) does a great job at it, although I do find TypeScript improves the experience.
- Rychard 7y agoHow could this be done for JavaScript without any mechanism for signifying the type of object that is expected?
- mikewhy 7y agoJS files can use JSDoc, which typescript handles (when you edit a JS file in VS Code, you're already secretly using typescript).
- jamil7 7y agoIf you're using a third party dependency that has type definitions tsserver / VSCode will pick it up regardless of whether you're writing js or ts.
- Roboprog 7y agoType inference from analyzing data flow. Especially if you avoid making everything global.