UNPKG

zod

Version:

Typescript-first schema declaration and validation library with static type inference

8 lines (7 loc) 294 B
import { ZodRawShape } from './types/base'; export declare type Merge<U extends object, V extends object> = { [k in Exclude<keyof U, keyof V>]: U[k]; } & V; export declare type MergeShapes<U extends ZodRawShape, V extends ZodRawShape> = { [k in Exclude<keyof U, keyof V>]: U[k]; } & V;