22 lines
371 B
TypeScript
22 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;
|
|
})();
|