TypeScript Syntax
@ts-nocheck — disable file-level semantic checking
A leading ts-nocheck comment suppresses semantic checking for that source file. It is a migration escape hatch, not a guarantee that every possible syntax, configuration or emit error disappears. Runtime values remain unchanged. The deliberately unsafe example prints the actual runtime type. Observed output: 'string'. Local verification: TypeScript 5.8.3, strict mode, ES2022, CommonJS, Node.js 22.16.0. Disposable library declarations are enabled for the fixture suite.
Formal Syntax & Structure
typescript syntaxtypescript
// @ts-nocheck// file contentsWorking Example
Example Snippettypescript
// @ts-nocheckconst count: number = "ready";console.log(typeof count);