UNPKG

fullcart

Version:

Add stripe checkout to any website

14 lines (10 loc) 346 B
import { z } from 'astro/zod' import { errorMap } from 'zod-validation-error' import { configSchema } from './configSchema' import { customerSchema } from './customerSchema' z.setErrorMap(errorMap as any) export const dataSchema = z.object({ config: configSchema, customer: customerSchema, }) export type Data = z.infer<typeof dataSchema>