TypeScript Compiler Options
ignoreDeprecations — TypeScript configuration
Version-specific deprecation suppression. In 5.0 through 5.4 the value "5.0" silenced the applicable deprecation warnings. The pinned 5.8.3 accepts that value, rejects an unsupported value with TS5103, and still reports TS5102 for removed options. It does not reactivate removed functionality, silence ordinary type errors or upgrade the compiler. Consult the release notes for the compiler actually used. Baseline: TypeScript 5.8.3. File labels are explanatory, not source text.
Formal Syntax & Structure
typescript syntaxtypescript
"ignoreDeprecations": "5.0"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| ignoreDeprecations | string | Optional configuration setting; see description for scope and limitations. |
Working Example
Example Snippettypescript
// File: tsconfig.json (omit this label){ "compilerOptions": { "target": "ES2022", "module": "CommonJS", "strict": true, "types": [], "skipLibCheck": true, "outDir": "dist", "noEmitOnError": true, "ignoreDeprecations": "5.0" }, "files": [ "index.ts" ]}// File: index.ts (omit this label)export const count: number = 7;// Run in a temporary project:// tsc -p . --pretty false