/opt/canhelp/node_modules/zod/src/v3/helpers
Edit: /opt/canhelp/node_modules/zod/src/v3/helpers/partialUtil.ts (1019B)
import type {
ZodArray,
ZodNullable,
ZodObject,
ZodOptional,
ZodRawShape,
ZodTuple,
ZodTupleItems,
ZodTypeAny,
} from "../types.js";
export namespace partialUtil {
export type DeepPartial
= T extends ZodObject
? ZodObject<
{ [k in keyof T["shape"]]: ZodOptional> },
T["_def"]["unknownKeys"],
T["_def"]["catchall"]
>
: T extends ZodArray
? ZodArray, Card>
: T extends ZodOptional
? ZodOptional>
: T extends ZodNullable
? ZodNullable>
: T extends ZodTuple
? {
[k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial : never;
} extends infer PI
? PI extends ZodTupleItems
? ZodTuple
: never
: never
: T;
}