noImplicitAny
The compiler option, included in strict mode, that reports an error when the compiler cannot work out a type and would silently fall back to any.
In more detail
Without it, an unannotated parameter quietly becomes any and loses all checking. With it, you must add a type annotation wherever inference has nothing to go on.
Related terms
- strict (compiler option) — The strict compiler option, which turns on a family of stronger checks such as strictNullChecks and noImplicitAny in one setting.
- any (type) — The TypeScript type that switches off type checking for a value, so anything can be done with it without errors.
- type annotation — A type written explicitly after a name with a colon, such as name: string, to tell the compiler what a value must be.
Taught in
- tsconfig.json: target, lib, strict And NodeNext — Production TypeScript