c0ldh4ck
c0ldh4ck
DTDrizzle Team
Created by c0ldh4ck on 1/29/2024 in #help
Help with Drizzle-zod
Using this in my types file works fine ofcourse: export const insertLocationSchema = z.object({ name: z.string().min(1, { message: 'Please fill in your location name' }), address: z.string().min(1, { message: 'Please fill in your location address' }), phone: z.string().min(1, { message: 'Please fill in your location phone number' }) }); export type newLocation = typeof insertLocationSchema; But I do not want to type it again 😕
2 replies