mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
654d05ca29
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
11 lines
339 B
TypeScript
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' });
|