How does one overload methods in typed script. Given the following code, I have a class which implements an interface. The interface has 'polymorhpic' methods but I cant seem to implement them - getting the error "duplicate identifyer 'MyMethod'".
export class IService {
MyMethod(): string;
MyMethod(value: string): number;
}
export class MyService implements IService {
MyMethod(): string { return "hello world;" }
MyMethod(value: string): number { return 1; }
}