Learning TypeScript @learningtypescript.com · Feb 6

`// @ts-ignore` is the same as `// @ts-expect-error`, but is allowed to exist and not do anything. This can be useful if you're testing across multiple TypeScript versions or running into other tooling edge case. 5/🧵

1 likes 1 replies

?

Replies

Learning TypeScript · 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/🧵