Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You need to add

    // @ts-check
at the top of the file: https://www.typescriptlang.org/docs/handbook/intro-to-js-ts....


There is a config setting for enabling it globally now

https://www.typescriptlang.org/tsconfig#checkJs


I was missing this, thank you.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: