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

Method transform

packages/zod/src/v4/classic/schemas.ts:174–174  ·  view source on GitHub ↗
(
    transform: (arg: core.output<this>, ctx: core.$RefinementCtx<core.output<this>>) => NewOut | Promise<NewOut>
  )

Source from the content-addressed store, hash-verified

172 or<T extends core.SomeType>(option: T): ZodUnion<[this, T]>;
173 and<T extends core.SomeType>(incoming: T): ZodIntersection<this, T>;
174 transform<NewOut>(
175 transform: (arg: core.output<this>, ctx: core.$RefinementCtx<core.output<this>>) => NewOut | Promise<NewOut>
176 ): ZodPipe<this, ZodTransform<Awaited<NewOut>, core.output<this>>>;
177 catch(def: core.output<this>): ZodCatch<this>;

Callers 15

play.tsFile · 0.80
index.tsFile · 0.80
_parseMethod · 0.80
function.test.tsFile · 0.80
base.test.tsFile · 0.80
catch.test.tsFile · 0.80
refine.test.tsFile · 0.80
pipeline.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 2

stripOuterFunction · 0.64
stripOuterFunction · 0.64