TypeScript/tests/cases/compiler/assignmentCompatInterfaceWithStringIndexSignature.ts
2014-07-12 17:30:19 -07:00

16 lines
208 B
TypeScript

interface IHandler {
(e): boolean;
}
interface IHandlerMap {
[type: string]: IHandler;
}
class Foo {
public Boz(): void { }
}
function Biz(map: IHandlerMap) { }
Biz(new Foo());