TypeScript Compiler Options

noUncheckedSideEffectImports — TypeScript compiler option

Reports unresolved side-effect imports. A wildcard ambient declaration can accept matching specifiers without verifying physical assets; this is not bundler validation. Default (5.8.3): false. Create the labeled files in an isolated project and run tsc -p tsconfig.json. No diagnostics; output: none. Local project fixture, not a single-file editor.

Formal Syntax & Structure

typescript syntaxtypescript
{  "compilerOptions": {    "noUncheckedSideEffectImports": true  }}

Parameters & Attributes

NameTypeDescription
noUncheckedSideEffectImportsbooleanSet in compilerOptions; default: false.

Working Example

Example Snippettypescript
// File: tsconfig.json (omit this label){  "compilerOptions": {    "target": "ES2022",    "module": "CommonJS",    "strict": true,    "types": [],    "noEmitOnError": true,    "noEmit": true,    "noUncheckedSideEffectImports": true  },  "files": [    "main.ts",    "setup.ts"  ]}// File: main.tsimport "./setup";// File: setup.tsexport {};
TypeScript Reference