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
- Read the listed overloads and adjust argument types/count to fit one
- Narrow a union argument before the call
ts
el.addEventListener("click", handler)Split the call by case
- 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
TS2345: Argument is not assignable - in CIFix "error TS2345: Argument of type 'X' is not assignable to parameter of type 'Y'" when tsc runs in CI - a t…
TS2554: Expected N arguments, but got M - in CIFix "error TS2554: Expected N arguments, but got M" when tsc runs in CI - a call with the wrong number of arg…
TS2322: Type is not assignable - in CIFix "error TS2322: Type 'X' is not assignable to type 'Y'" when tsc runs in CI - a genuine type mismatch on a…