17 lines
406 B
TypeScript
17 lines
406 B
TypeScript
//// [symbolDeclarationEmit10.ts]
|
|
var obj = {
|
|
get [Symbol.isConcatSpreadable]() { return '' },
|
|
set [Symbol.isConcatSpreadable](x) { }
|
|
}
|
|
|
|
//// [symbolDeclarationEmit10.js]
|
|
var obj = {
|
|
get [Symbol.isConcatSpreadable]() { return ''; },
|
|
set [Symbol.isConcatSpreadable](x) { }
|
|
};
|
|
|
|
|
|
//// [symbolDeclarationEmit10.d.ts]
|
|
declare var obj: {
|
|
[Symbol.isConcatSpreadable]: string;
|
|
};
|