Learning TypeScript @learningtypescript.com · Feb 6

The `// @ts-nocheck` comment directive completely disables type checking for an entire file. Even more so than the per-line directives, you should almost never use this. ⛔️ But, it can be handy if you don't have the time to convert a large existing file to TypeScript. 6/🧵

1 likes 1 replies

?

Replies

Learning TypeScript · Feb 6

On a brighter note, the `// @ts-check` comment directive *enables* type checking for a file. This can be handy if you're running TypeScript on JavaScript source files and haven't been able to enable checkJs: true yet. 7/🧵