13 lines
229 B
TypeScript
13 lines
229 B
TypeScript
|
//// [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;
|
||
|
})();
|