17 lines
369 B
TypeScript
17 lines
369 B
TypeScript
//// [declarationEmitDestructuringArrayPattern3.ts]
|
|
module M {
|
|
export var [a, b] = [1, 2];
|
|
}
|
|
|
|
//// [declarationEmitDestructuringArrayPattern3.js]
|
|
var M;
|
|
(function (M) {
|
|
_a = [1, 2], M.a = _a[0], M.b = _a[1];
|
|
var _a;
|
|
})(M || (M = {}));
|
|
|
|
|
|
//// [declarationEmitDestructuringArrayPattern3.d.ts]
|
|
declare module M {
|
|
var a: number, b: number;
|
|
}
|