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]>
14 lines
336 B
TypeScript
14 lines
336 B
TypeScript
//// [tests/cases/compiler/exportDestructuring.ts] ////
|
|
|
|
//// [exportDestructuring.ts]
|
|
const arr = [1, 2];
|
|
export const [a, b] = arr;
|
|
|
|
|
|
//// [exportDestructuring.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.b = exports.a = void 0;
|
|
const arr = [1, 2];
|
|
[exports.a, exports.b] = arr;
|