3 ms·
Any IDE could do that for JavaScript; it has nothing to do with TypeScript.
by tantalor 7y ago
Any 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.