I am new to typescript, here is an interface that I would like to implement;
interface IThing{ name:string; age:number; sayHello:{ (name:string):string; (age:number):number; } }
sayHello has two signatures that indicate the overload version. I just donβt know how to implement this in the classroom, any help? thanks.
implementation typescript
paul cheung
source share