Signature overloading, what can I do?
I really really like typescript. Probably my favorite language. The only thing that I really really don't like is that I can't do signature overloading. For instance, how can I do something like
function Create(value1: string) {..}
function Create(value1: string, value2: string) {..}
function Create(value1: number, value2: string){..}
What is the best practice in Typescript?
Posted Feb 20, 2026, 4:23 PM UTC
839