UNPKG

lakutata

Version:

An IoC-based universal application framework.

35 lines (28 loc) 905 B
/* Build Date: Mon Jan 05 2026 23:52:23 GMT+0800 (China Standard Time) */ "use strict"; const e = require("./Package.internal.51.cjs"); var t = {}; Object.defineProperty(t, "__esModule", { value: true }); exports.OneToMany_2 = t.OneToMany = a; const r = e.requireGlobals(); function a(e, t, a) { return function(n, o) { if (!a) a = {}; let s = a && a.lazy === true; if (!s && Reflect && Reflect.getMetadata) { const e = Reflect.getMetadata("design:type", n, o); if (e && typeof e.name === "string" && e.name.toLowerCase() === "promise") s = true; } (0, r.getMetadataArgsStorage)().relations.push({ target: n.constructor, propertyName: o, isLazy: s, relationType: "one-to-many", type: e, inverseSideProperty: t, options: a }); }; }