3 ms·
You need to add // @ts-check at the top of the file: https://www.typescriptlang.org/docs/handbook/intro-to-js-ts.html https://www.typescriptlang.org/docs/
by tgv 6y ago
You need to add
// @ts-check
at the top of the file: https://www.typescriptlang.org/docs/handbook/intro-to-js-ts.html https://www.typescriptlang.org/docs/handbook/intro-to-js-ts....
- moron4hire 6y agoThere is a config setting for enabling it globally now https://www.typescriptlang.org/tsconfig#checkJs https://www.typescriptlang.org/tsconfig#checkJs
- afiori 6y agoI was missing this, thank you.