TypeScript/tests/baselines/reference/stringIndexerAndConstructor.js

23 lines
371 B
TypeScript

//// [stringIndexerAndConstructor.ts]
class C {
[s: string]: number;
constructor() { }
static v() { }
}
interface I {
[s: string]: number;
(): boolean;
new (): boolean;
"": string;
d: string;
}
//// [stringIndexerAndConstructor.js]
var C = (function () {
function C() {
}
C.v = function () { };
return C;
})();