Courses / TypeScript
5. noImplicitAny
Compiler option that forces explicit typing by disallowing implicit any types.
TypeScript / JavaScript
noImplicitAny
A compiler flag that forces you to give types instead of silently assuming "any".
"I stopped getting mysterious runtime bugs because TypeScript made me name every unknown value."
noImplicitAny is a TypeScript compiler option that reports an error whenever the compiler would otherwise infer the type "any" for a variable, parameter, or return type, forcing you to annotate or fix the code.
"I stopped getting mysterious runtime bugs because TypeScript made me name every unknown value."
noImplicitAny is a TypeScript compiler option that reports an error whenever the compiler would otherwise infer the type "any" for a variable, parameter, or return type, forcing you to annotate or fix the code.