8 lines
230 B
TypeScript
8 lines
230 B
TypeScript
|
interface Base {
|
||
|
addEventListener(x: string): any;
|
||
|
addEventListener(x: 'foo'): string;
|
||
|
}
|
||
|
interface Deriver extends Base {
|
||
|
addEventListener(x: 'bar'): string; // shouldn't need to redeclare the string overload
|
||
|
}
|