1×
Become a member
to unlock all features
Autoplay

    Unlock TypeScript's Features in Vanilla JS with @ts-check and JSDoc

    javascriptJavaScript
    typescriptTypeScript
    ^3.2.1

    TypeScript can help you with your plain JavaScript files if you add a simple //@ts-check comment. Then you can enhance the experience by add proper JSDocs to describe your functions which will feed type information into TypeScript and give you a development experience near TypeScript itself.