UNPKG

@lyxa.ai/types

Version:

Lyxa type definitions and validation schemas for both frontend and backend

23 lines (22 loc) 1.14 kB
import { DTO } from './global-validation'; import { z } from 'zod'; export declare const UserAddressFrontendSchema: z.ZodObject<{ addressLabel: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>; apartment: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>; buildingName: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>; deliveryOption: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; instructions: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>; }, "strip", z.ZodTypeAny, { addressLabel: string; apartment: string; buildingName: string; deliveryOption?: string | undefined; instructions?: string | undefined; }, { addressLabel: string; apartment: string; buildingName: string; deliveryOption?: string | undefined; instructions?: string | undefined; }>; export type UserAddressFrontendDTO = DTO<typeof UserAddressFrontendSchema>;