17 lines
292 B
JavaScript
17 lines
292 B
JavaScript
//// [indexSignatureWithInitializer.ts]
|
|
// These used to be indexers, now they are computed properties
|
|
interface I {
|
|
[x = '']: string;
|
|
}
|
|
|
|
class C {
|
|
[x = 0]: string
|
|
}
|
|
|
|
//// [indexSignatureWithInitializer.js]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
return C;
|
|
})();
|