Files
NapCatQQ/.pnpm-store/v3/files/1d/21df6eefc200830e434860739a1fe4fff0cfac9d5aaf0f6e1244b66adfbf3da6209be363382e07b441c29b011bba2b2756b24c49c82dba04b16dcbb309296b
TanTan e311ca3275
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
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

33 lines
1.4 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDecoratorInfo = getDecoratorInfo;
const InversifyCoreError_1 = require("../../error/models/InversifyCoreError");
const InversifyCoreErrorKind_1 = require("../../error/models/InversifyCoreErrorKind");
const DecoratorInfoKind_1 = require("../models/DecoratorInfoKind");
function getDecoratorInfo(target, propertyKey, parameterIndexOrDescriptor) {
if (parameterIndexOrDescriptor === undefined) {
if (propertyKey === undefined) {
throw new InversifyCoreError_1.InversifyCoreError(InversifyCoreErrorKind_1.InversifyCoreErrorKind.unknown, 'Unexpected undefined property and index values');
}
return {
kind: DecoratorInfoKind_1.DecoratorInfoKind.property,
property: propertyKey,
targetClass: target.constructor,
};
}
if (typeof parameterIndexOrDescriptor === 'number') {
return {
index: parameterIndexOrDescriptor,
kind: DecoratorInfoKind_1.DecoratorInfoKind.parameter,
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
targetClass: target,
};
}
return {
kind: DecoratorInfoKind_1.DecoratorInfoKind.method,
method: propertyKey,
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
targetClass: target,
};
}
//# sourceMappingURL=getDecoratorInfo.js.map