Error AtlasError Documentation and Resolution

Parameter implicitly has an any type

Parameter '{0}' implicitly has an 'any' type.

TypeScript could not infer a safe type for a parameter and, with noImplicitAny enabled, reported it as an error.

TS7006build
Parameter '{0}' implicitly has an 'any' type.
  • A function parameter has no type annotation and TypeScript cannot infer a specific type.
  • The project enables noImplicitAny, which turns implicit any cases into errors.
  • A callback or helper function is declared without enough contextual typing.
  1. Add an explicit type annotation to the parameter.
  2. Refactor the function so TypeScript can infer the parameter type from context.
  3. Review noImplicitAny settings only if the project intentionally allows untyped parameters.
TSConfig Reference: noImplicitAny
TS7006 Parameter implicitly has an any type: causes and fixes | Error Atlas