MCPcopy
hub / github.com/colinhacks/zod / omit

Function omit

packages/zod/src/v4/mini/schemas.ts:942–947  ·  view source on GitHub ↗
(
  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__
942export 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__
950export function partial<T extends ZodMiniObject>(

Callers

nothing calls this directly

Calls 1

omitMethod · 0.65

Tested by

no test coverage detected