TypeScript/tests/baselines/reference/stringIndexerAndConstructor.js
2014-07-12 17:30:19 -07:00

24 lines
376 B
JavaScript

//// [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;
})();