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>
34 lines (33 loc) • 987 B
TypeScript
import { t as Standard } from "./standard-Db3GoMRB.js";
//#region rolldown:runtime
//#endregion
//#region src/registry.d.ts
declare class Registry {
enums: Map<string, {
toTruth(): Standard.Enum;
}>;
models: Map<string, {
toTruth(): Standard.Model;
}>;
toTruth(): Standard.Schema;
}
declare namespace config_d_exports {
export { import_ as import };
}
declare function import_(registry: Registry, paths: `${string}.ts` | `${string}.ts`[]): Promise<void>;
declare namespace config_d_exports$1 {
export { export_ as export };
}
declare function export_(registry: Registry, path: `${string}.prisma`): Promise<void>;
//#endregion
//#region src/config.d.ts
interface Modules {
registry: Registry;
arktype: typeof config_d_exports;
prisma: typeof config_d_exports$1;
}
type Config = (modules: Modules) => void;
declare const defineConfig: (fn: Config) => Config;
//#endregion
export { Config, Modules, Registry, defineConfig };
//# sourceMappingURL=config.d.ts.map