File: declarationEmitDestructuringPrivacyError.js

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (26 lines) | stat: -rw-r--r-- 559 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//// [declarationEmitDestructuringPrivacyError.ts]
module m {
    class c {
    }
    export var [x, y, z] = [10, new c(), 30];
}

//// [declarationEmitDestructuringPrivacyError.js]
var m;
(function (m) {
    var _a;
    var c = /** @class */ (function () {
        function c() {
        }
        return c;
    }());
    _a = [10, new c(), 30], m.x = _a[0], m.y = _a[1], m.z = _a[2];
})(m || (m = {}));


//// [declarationEmitDestructuringPrivacyError.d.ts]
declare module m {
    class c {
    }
    var x: number, y: c, z: number;
}