interface Foo { f(x: any): any; } interface Bar { f(x: T): T; } interface Hello extends Foo, Bar { }