9 lines
218 B
TypeScript
9 lines
218 B
TypeScript
|
interface Base {
|
||
|
addEventListener(x: string): any;
|
||
|
addEventListener(x: 'foo'): string;
|
||
|
}
|
||
|
interface Deriver extends Base {
|
||
|
addEventListener(x: string): any;
|
||
|
addEventListener(x: 'bar'): string;
|
||
|
}
|