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
|
//// [declarationEmitPrivateReadonlyLiterals.ts]
class Foo {
private static readonly A = "a";
private readonly B = "b";
private static readonly C = 42;
private readonly D = 42;
}
//// [declarationEmitPrivateReadonlyLiterals.js]
var Foo = /** @class */ (function () {
function Foo() {
this.B = "b";
this.D = 42;
}
Foo.A = "a";
Foo.C = 42;
return Foo;
}());
//// [declarationEmitPrivateReadonlyLiterals.d.ts]
declare class Foo {
private static readonly A;
private readonly B;
private static readonly C;
private readonly D;
}
|