ZodMapper
Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.
Defined in: packages/pipeline-zod/src/create-zod-mapper.ts:7
A schema-backed mapper returned by createZodMapper.
Type Parameters
Section titled “Type Parameters”TInput
Section titled “TInput”TInput
TOutput
Section titled “TOutput”TOutput
Properties
Section titled “Properties”schema
Section titled “schema”
readonlyschema: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(...)).
Methods
Section titled “Methods”map(
input):TOutput
Defined in: packages/pipeline-zod/src/create-zod-mapper.ts:15
Parses input and returns the schema output, including any .transform().
Parameters
Section titled “Parameters”TInput
Returns
Section titled “Returns”TOutput
Throws
Section titled “Throws”ZodValidationError when parsing fails.