File: augmentedTypesClass3.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 (49 lines) | stat: -rw-r--r-- 1,147 bytes parent folder | download | duplicates (5)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//// [augmentedTypesClass3.ts]
// class then module
class c5 { public foo() { } }
module c5 { } // should be ok

class c5a { public foo() { } }
module c5a { var y = 2; } // should be ok

class c5b { public foo() { } }
module c5b { export var y = 2; } // should be ok

//// class then import
class c5c { public foo() { } }
//import c5c = require('');

//// [augmentedTypesClass3.js]
// class then module
var c5 = /** @class */ (function () {
    function c5() {
    }
    c5.prototype.foo = function () { };
    return c5;
}());
var c5a = /** @class */ (function () {
    function c5a() {
    }
    c5a.prototype.foo = function () { };
    return c5a;
}());
(function (c5a) {
    var y = 2;
})(c5a || (c5a = {})); // should be ok
var c5b = /** @class */ (function () {
    function c5b() {
    }
    c5b.prototype.foo = function () { };
    return c5b;
}());
(function (c5b) {
    c5b.y = 2;
})(c5b || (c5b = {})); // should be ok
//// class then import
var c5c = /** @class */ (function () {
    function c5c() {
    }
    c5c.prototype.foo = function () { };
    return c5c;
}());
//import c5c = require('');