UNPKG

fullcart

Version:

Add stripe checkout to any website

15 lines (11 loc) 342 B
import { z } from 'astro/zod' import { errorMap } from 'zod-validation-error' z.setErrorMap(errorMap as any) export const productSchema = z.object({ id: z.string(), name: z.string(), price: z.number(), description: z.string().optional(), image: z.string().url().optional(), }) export type Product = z.infer<typeof productSchema>