Files
tsgo/testdata/baselines/reference/submodule/compiler/exportObjectRest(module=commonjs,target=esnext).js
2026-05-19 18:33:14 +00:00

11 lines
339 B
TypeScript

//// [tests/cases/compiler/exportObjectRest.ts] ////
//// [exportObjectRest.ts]
export const { x, ...rest } = { x: 'x', y: 'y' };
//// [exportObjectRest.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.rest = exports.x = void 0;
({ x: exports.x, ...exports.rest } = { x: 'x', y: 'y' });