UNPKG

lakutata

Version:

An IoC-based universal application framework.

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