Skip to content
Latchkey

TS2769: No overload matches this call - in CI

You called an overloaded function with arguments that match none of its declared signatures.

What this error means

Type-checking fails with TS2769 listing each candidate overload and why it does not match.

tsc
src/event.ts(5,1): error TS2769: No overload matches this call.

Common causes

How to fix it

Match an existing overload

  1. Read the listed overloads and adjust argument types/count to fit one
  2. Narrow a union argument before the call
ts
el.addEventListener("click", handler)

Split the call by case

  1. When a union spans overloads, branch so each call uses a concrete type

How to prevent it

  • Narrow arguments to concrete types before calling overloaded APIs and keep @types versions aligned.

Frequently asked questions

What causes "TS2769 no overload matches"?
Type-checking fails with TS2769 listing each candidate overload and why it does not match.
How do I fix TS2769 no overload matches?
Match an existing overload

Related guides

References

Latchkey auto-heals failures like this one - detected, fixed, and retried without you. Start free → 30-day trial · No credit card