TypeScript: No overload matches this call in event handler
The TS2769 message appears when calling a function with several signatures, despite seemingly compatible arguments. None of the available overloads fit the entire set of arguments submitted simultaneously.
How to determine the source of the error
In the compiler message read the error for each overload instead of just analyzing the first line.
Check the union types, optional parameters and whether the React handler receives the event instead of the expected value.
What to do step by step
1. Narrow the entry type by condition or type guard before calling overloaded function.
2 . If this is your API, add the correct implementation that supports the union or common overload according to real data.
How to check the score
The compilation passes without ace any, and tests include any acceptable argument type.
What to do
Do not use unconditional as unknown as, because it hides incompatibility and can lead to an exception runtime.