noImplicitOverride
The compiler option that requires the override keyword when a subclass method replaces a method of its parent class.
In more detail
This catches two mistakes: overriding something by accident, and a parent method being renamed so the subclass method silently stops overriding it. It is not part of strict and must be turned on separately.
Related terms
- class — A blueprint in code that bundles data and the functions that work on it, from which objects are made.
- tsconfig.json — The configuration file that tells the TypeScript compiler which files to check and how strict to be.
Taught in
- tsconfig.json: target, lib, strict And NodeNext — Production TypeScript