single-source-of-truth
Version:
Use Zod schemas to your generate Prisma schema
25 lines • 775 B
TypeScript
import type { Standard } from "../../standard.js";
import { id, unique, updatedAt } from './symbols.js';
declare module 'zod/v4/core' {
interface $ZodTypeDef {
' id'?: Standard.Model.Field.Attributes['id'];
' unique'?: Standard.Model.Field.Attributes['unique'];
' updatedAt'?: Standard.Model.Field.Attributes['updatedAt'];
' name'?: Standard.Model.Field.Attributes['name'];
' references'?: Standard.Model.Field.Attributes['references'];
}
}
declare module 'zod/v4' {
interface ZodString {
[id](): this;
[unique](): this;
}
interface ZodNumber {
[id](): this;
[unique](): this;
}
interface ZodDate {
[updatedAt](): this;
}
}
//# sourceMappingURL=prototype.d.ts.map