Q49: What does the `noImplicitAny` flag enforce?

Difficulty:EasyTopic:Compiler Options

When noImplicitAny is enabled, the compiler raises a type error whenever it is forced to infer any for a variable or parameter due to missing type annotations.

Key Takeaways
  • Forces explicit type annotations when inference falls back to any.