( fn: (arg: B, ctx: core.$RefinementCtx) => A, schema: U )
| 2661 | // preprocess |
| 2662 | |
| 2663 | export function preprocess<A, U extends core.SomeType, B = unknown>( |
| 2664 | fn: (arg: B, ctx: core.$RefinementCtx) => A, |
| 2665 | schema: U |
| 2666 | ): ZodPreprocess<U> { |
| 2667 | return new ZodPreprocess({ |
| 2668 | type: "pipe", |
| 2669 | in: transform(fn as any) as any as core.$ZodTransform, |
| 2670 | out: schema as any as core.$ZodType, |
| 2671 | }) as any; |
| 2672 | } |
nothing calls this directly
no test coverage detected