Files
NapCatQQ/.pnpm-store/v3/files/c7/38197b36a705be357bd906632e1a3ffdec40b9fe1b21fa761563cedcd0a5932367aad6ee0f9cdf682352d83b0c261982ba1e784ec36ff8f8943f376e6e7e71
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

21 lines
926 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveInstanceBindingConstructorParams = resolveInstanceBindingConstructorParams;
const common_1 = require("@inversifyjs/common");
function resolveInstanceBindingConstructorParams(resolveServiceNode) {
return (params, node) => {
const constructorResolvedValues = [];
for (const constructorParam of node.constructorParams) {
if (constructorParam === undefined) {
constructorResolvedValues.push(undefined);
}
else {
constructorResolvedValues.push(resolveServiceNode(params, constructorParam));
}
}
return constructorResolvedValues.some(common_1.isPromise)
? Promise.all(constructorResolvedValues)
: constructorResolvedValues;
};
}
//# sourceMappingURL=resolveInstanceBindingConstructorParams.js.map