TypeScript/tests/baselines/reference/typeofInterface.js

16 lines
219 B
TypeScript

//// [typeofInterface.ts]
var I: { a: string};
interface I {
I: number;
foo: typeof I;
}
var k: I;
var j: typeof k.foo = { a: "hello" };
//// [typeofInterface.js]
var I;
var k;
var j = { a: "hello" };