TypeScript Compiler Options
skipLibCheck — TypeScript compiler configuration
Skips semantic checking of declaration files, including dependency declarations, while still using their types to check application source. It may hide incompatible or invalid declaration contracts. The example suppresses an unresolved type in a declaration file but still rejects assigning its declared numeric value to a string. Baseline: TypeScript 5.8.3. Default: false. Create the labeled files in an isolated project; omit file labels. Run the indicated command.
Formal Syntax & Structure
typescript syntaxtypescript
{ "compilerOptions": { "skipLibCheck": true }}Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| skipLibCheck | boolean | Compiler option; default: false. |
Working Example
Example Snippettypescript
// File: tsconfig.json (omit this label){ "compilerOptions": { "target": "ES2022", "module": "CommonJS", "strict": true, "types": [], "noEmit": true, "skipLibCheck": true }, "include": [ "src/**/*.ts" ]}// File: src/index.ts (omit this label)export const count: number = 1;// File: src/vendor.d.ts (omit this label)declare interface Vendor { missing: MissingType; value: number; }
// Run in a temporary project:// tsc -p . --pretty false