TypeScript supports providing types via JSDoc comments[1]. This gets you use all the IDE language features you'd get using TS, including highlighting type errors. I actually use this all the time, since I have plenty of scripts that are complex enough that I want type checking but not complex enough to warrant a compilation step.
There's also Google's Closure Compiler[2], which uses JSDoc for its JS type annotations.
TypeScript supports providing types via JSDoc comments[1]. This gets you use all the IDE language features you'd get using TS, including highlighting type errors. I actually use this all the time, since I have plenty of scripts that are complex enough that I want type checking but not complex enough to warrant a compilation step.
There's also Google's Closure Compiler[2], which uses JSDoc for its JS type annotations.
[1]: https://www.typescriptlang.org/docs/handbook/jsdoc-supported...
[2]: https://developers.google.com/closure/compiler