Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
28 lines
1003 B
Plaintext
28 lines
1003 B
Plaintext
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.decorate = decorate;
|
|
function decorate(decorators, target, parameterIndexOrProperty, parameterIndex) {
|
|
const parsedDecorators = Array.isArray(decorators)
|
|
? decorators
|
|
: [decorators];
|
|
if (parameterIndexOrProperty === undefined) {
|
|
// Asume ClassDecorator[]
|
|
Reflect.decorate(parsedDecorators, target);
|
|
return;
|
|
}
|
|
if (typeof parameterIndexOrProperty === 'number') {
|
|
// Asume ParameterDecorator[]
|
|
for (const decorator of parsedDecorators) {
|
|
decorator(target, undefined, parameterIndexOrProperty);
|
|
}
|
|
return;
|
|
}
|
|
if (parameterIndex === undefined) {
|
|
Reflect.decorate(parsedDecorators, target.prototype, parameterIndexOrProperty);
|
|
return;
|
|
}
|
|
for (const decorator of parsedDecorators) {
|
|
decorator(target, parameterIndexOrProperty, parameterIndex);
|
|
}
|
|
}
|
|
//# sourceMappingURL=decorate.js.map |