This commit is contained in:
proteriax
2021-07-22 14:35:29 -04:00
parent 21003af738
commit 5257dc7ed2
8 changed files with 46 additions and 28 deletions

View File

@ -1,8 +1,8 @@
import { __decorate } from "tslib";
let A = class A {
string: string;
}
};
__decorate([prop], A.prototype, "string", void 0);
A = __decorate([classDecorator], A);
A = __decorate([classDecorator], A);

View File

@ -1,15 +1,13 @@
import { __decorate } from "tslib";
export class NormalDecorated {
a: string;
}
__decorate([prop], NormalDecorated.prototype, "a", void 0);
let ClassDecorated = class ClassDecorated {};
ClassDecorated = __decorate([classDecorator], ClassDecorated);
export { ClassDecorated };
let DefaultExport = class DefaultExport {};
DefaultExport = __decorate([classDecorator], DefaultExport);
export default DefaultExport;
export default DefaultExport;

View File

@ -2,6 +2,7 @@ import { __decorate } from "tslib";
class A {
method(): string {}
}
__decorate([dec], A.prototype, "method", null);

View File

@ -3,13 +3,17 @@ import { __decorate } from "tslib";
class A {
method1(skipped: string, b: string) {}
method2(a: string, b: string) {}
}
_decorate([__param(1, Arg())], A.prototype, "method1", null);
_decorate([__param(0, Arg()), __param(1, Arg())], A.prototype, "method2", null);
let B = class B {
constructor(a: string) {}
};
B = _decorate([__param(0, Arg())], B);

View File

@ -1,22 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true,
});
exports.B = exports.B = void 0;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.B = void 0;
var _tslib = require("tslib");
var _remote = /*#__PURE__*/ new WeakMap();
exports.B = exports.B = B = (0, _tslib.__decorate)([Service()], B);
var _remote = /*#__PURE__*/new WeakMap();
exports.B = B = (0, _tslib.__decorate)([Service()], B);
class B {
constructor() {
_remote.set(this, {
writable: true,
value: void 0,
value: void 0
});
}
}
exports.B = exports.B = B;
exports.B = B;

View File

@ -1,4 +1,4 @@
import { __decorate } from "tslib"
import { __decorate } from "tslib";
class A {
prop: string;
@ -9,13 +9,18 @@ class A {
}
__decorate([dec], A.prototype, "prop", void 0);
__decorate([dec, dec2], A.prototype, "prop2", void 0);
__decorate([dec], A, "staticProp", void 0);
__decorate([called()], A.prototype, "service", void 0);
let B = class B {
remote: Service;
};
__decorate([Service()], B.prototype, "remote", void 0);
B = __decorate([Service()], B);
export { B };