Function
omit
(
schema: T,
mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
)
Source from the content-addressed store, hash-verified
| 940 | |
| 941 | // @__NO_SIDE_EFFECTS__ |
| 942 | export function omit<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>( |
| 943 | schema: T, |
| 944 | mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never> |
| 945 | ): ZodMiniObject<util.Flatten<Omit<T["shape"], keyof M>>, T["_zod"]["config"]> { |
| 946 | return util.omit(schema, mask); |
| 947 | } |
| 948 | |
| 949 | // @__NO_SIDE_EFFECTS__ |
| 950 | export function partial<T extends ZodMiniObject>( |
Callers
nothing calls this directly
Tested by
no test coverage detected