16 lines
226 B
TypeScript
16 lines
226 B
TypeScript
|
//// [indexerSignatureWithRestParam.ts]
|
||
|
interface I {
|
||
|
[...x]: string;
|
||
|
}
|
||
|
|
||
|
class C {
|
||
|
[...x]: string
|
||
|
}
|
||
|
|
||
|
//// [indexerSignatureWithRestParam.js]
|
||
|
var C = (function () {
|
||
|
function C() {
|
||
|
}
|
||
|
return C;
|
||
|
})();
|