Error AtlasError Documentation and Resolution

TypeScript parameter implicitly has an any type

error TS7006: Parameter 'X' implicitly has an 'any' type.

TypeScript reported a function parameter with no explicit type and no safe inference under noImplicitAny rules.

error TS7006: Parameter 'X' implicitly has an 'any' type.
  • A function parameter has no declared type and TypeScript cannot infer one safely.
  • The project enables noImplicitAny, so silent any inference is treated as an error.
  • A callback or utility function lost contextual typing during refactoring.
  1. Add an explicit type annotation to the parameter.
  2. Refactor the function so TypeScript can infer the parameter type from surrounding context.
  3. Only relax noImplicitAny if that tradeoff is intentional for the whole project.
TypeScript TSConfig: noImplicitAny
TS7006 Parameter implicitly has an any type: causes and fixes | Error Atlas