TypeScript Compiler Options

noImplicitOverride — TypeScript compiler option

Requires an explicit override modifier for relevant overriding class members so an accidental name change is easier to detect. The override modifier itself also checks that a matching base member exists. The flag does not change method dispatch. Default: false in 5.8.3, including with strict enabled. With the enforcing setting, the corrected example compiles; the comparison fixture triggers TS4114. Disabling this particular check accepts the comparison fixture. Observed corrected runtime output: 'child'. Use two separate files as labeled, then run tsc -p tsconfig.json and node example.js in an isolated directory. Tested with TypeScript 5.8.3 and Node.js 22.16.0; not a single-file live editor example.

Formal Syntax & Structure

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

Parameters & Attributes

NameTypeDescription
noImplicitOverridebooleanSet explicitly to true or false; omission uses the default described above.

Working Example

Example Snippettypescript
// File: tsconfig.json (JSON; omit this file-label comment){  "compilerOptions": {    "target": "ES2022",    "module": "CommonJS",    "types": [],    "noEmitOnError": true,    "strict": true,    "noImplicitOverride": true  },  "files": [    "example.ts"  ]}// File: example.tsclass Base { label() { return "base"; } }class Child extends Base { override label() { return "child"; } }console.log(new Child().label());
TypeScript Reference