12 lines
229 B
JavaScript
12 lines
229 B
JavaScript
//// [indexWithoutParamType2.ts]
|
|
class C {
|
|
// Used to be indexer, now it is a computed property
|
|
[x]: string
|
|
}
|
|
|
|
//// [indexWithoutParamType2.js]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
return C;
|
|
})();
|