zod
Version:
Typescript-first schema declaration and validation library with static type inference
14 lines (10 loc) • 317 B
text/typescript
import { ZodRawShape } from './types/base';
// import { ZodRawShape } from '.';
export type Merge<U extends object, V extends object> = {
[k in Exclude<keyof U, keyof V>]: U[k];
} &
V;
export type MergeShapes<U extends ZodRawShape, V extends ZodRawShape> = {
[k in Exclude<keyof U, keyof V>]: U[k];
} &
V;