TS7006

Parameter 'person' implicitly has an 'any' type.

Broken Code ❌

main.ts
function greeter(person) {
  return `Hello, ${person}`;
}
tsconfig.json
{
  "compilerOptions": {
    "noImplicitAny": true
  }
}

Fixed Code ✔️

You have to define the type for the argument named person:

main.ts
function greeter(person: string) {
  return `Hello, ${person}`;
}

Alternative, but not recommend:

  • Set "noImplicitAny" to false in your "tsconfig.json"