Key error patterns

  • TS: "not assignable to" → type mismatch between what you pass and what is expected
  • ESLint: no-unused-vars → remove or prefix with underscore if intentionally unused
  • Go: "undefined: X" → not imported or not declared in scope
  • no-explicit-any → using any bypasses TypeScript's type safety; use unknown instead
  • mypy: incompatible return → a code path returns None but the annotation says otherwise

Question 0 of 5

TypeScript shows: error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
In plain English, what does this mean?