Μετάβαση στο περιεχόμενο

ZodMapper

Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.

Defined in: packages/pipeline-zod/src/create-zod-mapper.ts:7

A schema-backed mapper returned by createZodMapper.

TInput

TOutput

readonly schema: ZodType<TOutput, TInput>

Defined in: packages/pipeline-zod/src/create-zod-mapper.ts:9

The schema the mapper parses with, for reuse (e.g. .extend(...)).

map(input): TOutput

Defined in: packages/pipeline-zod/src/create-zod-mapper.ts:15

Parses input and returns the schema output, including any .transform().

TInput

TOutput

ZodValidationError when parsing fails.