UNPKG

lakutata

Version:

An IoC-based universal application framework.

43 lines (35 loc) 1.13 kB
/* Build Date: Mon Jan 05 2026 23:52:23 GMT+0800 (China Standard Time) */ import { a as e, e as t } from "./Package.internal.51.mjs"; var r = {}; Object.defineProperty(r, "__esModule", { value: true }); var o = r.VirtualColumn = s; const n = t; const a = e(); function s(e, t) { return function(r, o) { let s; if (typeof e === "string") { s = e; } else { t = e; s = t.type; } if (!t?.query) { throw new Error("Column options must be defined for calculated columns."); } const i = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", r, o) : undefined; if (!s && i) s = i; if (s) t.type = s; if (t.type === "hstore" && !t.hstoreType) t.hstoreType = i === Object ? "object" : "string"; if (!t.type) throw new n.ColumnTypeUndefinedError(r, o); (0, a.getMetadataArgsStorage)().columns.push({ target: r.constructor, propertyName: o, mode: "virtual-property", options: t || {} }); }; } export { o as V };