Files
NapCatQQ/.pnpm-store/v3/files/50/88ff64e5f488ba1a2d002970921296f83983881164351eb8a58d44d3e594ea71879add5505f913608d6b29fd81a618f81587ddf16bac35b359aa78c9fcc3e6
T
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

21 lines
1011 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.injectFromBase = injectFromBase;
const prototype_utils_1 = require("@inversifyjs/prototype-utils");
const InversifyCoreError_1 = require("../../error/models/InversifyCoreError");
const InversifyCoreErrorKind_1 = require("../../error/models/InversifyCoreErrorKind");
const injectFrom_1 = require("./injectFrom");
function injectFromBase(options) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
return (target) => {
const baseType = (0, prototype_utils_1.getBaseType)(target);
if (baseType === undefined) {
throw new InversifyCoreError_1.InversifyCoreError(InversifyCoreErrorKind_1.InversifyCoreErrorKind.injectionDecoratorConflict, `Expected base type for type "${target.name}", none found.`);
}
(0, injectFrom_1.injectFrom)({
...options,
type: baseType,
})(target);
};
}
//# sourceMappingURL=injectFromBase.js.map