TypeScript
TypeScript found the wrong number of arguments in a function call
TypeScript rejected a function or constructor call because the number of provided arguments does not match the declared signature.
TypeScript
TypeScript rejected a function or constructor call because the number of provided arguments does not match the declared signature.
Observed message
error TS2554: Expected X arguments, but got Y.
Why it happens
How to fix it
Official reference
TypeScript Docs: More on FunctionsRelated errors
Explore more