mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
475 B
TypeScript
21 lines
475 B
TypeScript
//// [tests/cases/compiler/declarationEmitDestructuringArrayPattern3.ts] ////
|
|
|
|
//// [declarationEmitDestructuringArrayPattern3.ts]
|
|
namespace M {
|
|
export var [a, b] = [1, 2];
|
|
}
|
|
|
|
//// [declarationEmitDestructuringArrayPattern3.js]
|
|
"use strict";
|
|
var M;
|
|
(function (M) {
|
|
var _a;
|
|
_a = [1, 2], M.a = _a[0], M.b = _a[1];
|
|
})(M || (M = {}));
|
|
|
|
|
|
//// [declarationEmitDestructuringArrayPattern3.d.ts]
|
|
declare namespace M {
|
|
var [a, b]: [number, number];
|
|
}
|