mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
* Update product types * Cart types progress, add zod & initial schema validator * Update normalize.ts * Update with-schema-parser.ts * Updated types, schemas & providers * Fix providers after schema parse errors * Fix paths * More provider fixes * Fix kibocommerce & commercejs * Add customer updated types & fixes * Add checkout & customer types * Import core types only from commerce * Update tsconfig.json * Convert hooks interfaces to types * Requested changes * Change to relative paths * Move Zod dependency
19 lines
337 B
TypeScript
19 lines
337 B
TypeScript
import { z } from 'zod'
|
|
|
|
export const siteInfoSchema = z.object({
|
|
categories: z.array(
|
|
z.object({
|
|
id: z.string(),
|
|
name: z.string(),
|
|
path: z.string().startsWith('/'),
|
|
})
|
|
),
|
|
brands: z.array(
|
|
z.object({
|
|
id: z.string(),
|
|
name: z.string(),
|
|
path: z.string().startsWith('/'),
|
|
})
|
|
),
|
|
})
|