UNPKG

single-source-of-truth

Version:

<div align='center'> <h1><strong>single-source-of-truth</strong></h1> <i>Use ArkType schemas to generate your Prisma schema</i><br> <code>pnpm add truth@npm:single-source-of-truth arktype</code> </div>

15 lines (14 loc) 363 B
//#region src/registry.ts var Registry = class { enums = /* @__PURE__ */ new Map(); models = /* @__PURE__ */ new Map(); toTruth() { return { enums: [...this.enums.values()].map((e) => e.toTruth()), models: [...this.models.values()].map((m) => m.toTruth()) }; } }; //#endregion export { Registry as t }; //# sourceMappingURL=registry-BYqsBBvz.js.map