Answer the question
In order to leave comments, you need to log in
How to suppress TypeScript error?
function foo(x: number, s?: string) {
console.log(x, s)
}
function bar(x: number, ...args) {
foo(...args) // компилятор ругается: Supplied parameters do not match any signature of call target
}
bar(1, 3, 'ok')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question