export class Service {
public validate() {
return async((name: string, dob: string) => {
//do some operation
});
};
public validate() {
return async((name: string, dob: string, address: string) => {
//do some operation
});
};
}
Error: Duplicate function implementation
Typescript Ver: 3.8.3
Is it possible to overload the method in the typescript? if "yes" can anyone help to resolve the above methods?