Reputation: 6561
Is function overloading not supported in TypeScript?
I have these two functions:
checkCredits() {
// my code
}
checkCredits(header: any) {
// my code
}
And I call the second function like this:
this.checkCredits(this.myObject);
When compiling in vs code I get these errors: Supplied Parameters do not match any signature of call target. Duplicate function implementation.
Upvotes: 0
Views: 719