File: declarationEmitClassPrivateConstructor.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 (72 lines) | stat: -rw-r--r-- 1,855 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//// [declarationEmitClassPrivateConstructor.ts]
interface PrivateInterface {
}

export class ExportedClass1 {
    private constructor(data: PrivateInterface) { }
}

export class ExportedClass2 {
    private constructor(private data: PrivateInterface) { }
}

export class ExportedClass3 {
    private constructor(private data: PrivateInterface, private n: number) { }
}

export class ExportedClass4 {
    private constructor(private data: PrivateInterface, public n:number) { }
}

//// [declarationEmitClassPrivateConstructor.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ExportedClass1 = /** @class */ (function () {
    function ExportedClass1(data) {
    }
    return ExportedClass1;
}());
exports.ExportedClass1 = ExportedClass1;
var ExportedClass2 = /** @class */ (function () {
    function ExportedClass2(data) {
        this.data = data;
    }
    return ExportedClass2;
}());
exports.ExportedClass2 = ExportedClass2;
var ExportedClass3 = /** @class */ (function () {
    function ExportedClass3(data, n) {
        this.data = data;
        this.n = n;
    }
    return ExportedClass3;
}());
exports.ExportedClass3 = ExportedClass3;
var ExportedClass4 = /** @class */ (function () {
    function ExportedClass4(data, n) {
        this.data = data;
        this.n = n;
    }
    return ExportedClass4;
}());
exports.ExportedClass4 = ExportedClass4;


//// [declarationEmitClassPrivateConstructor.d.ts]
export declare class ExportedClass1 {
    private constructor();
}
export declare class ExportedClass2 {
    private data;
    private constructor();
}
export declare class ExportedClass3 {
    private data;
    private n;
    private constructor();
}
export declare class ExportedClass4 {
    private data;
    n: number;
    private constructor();
}