Class ZodEffects<T, Output, Input>

Type Parameters

Hierarchy (view full)

Constructors

Properties

_input: Input
_output: Output
_type: Output
spa: ((data, params?) => Promise<SafeParseReturnType<Input, Output>>)

Alias of safeParseAsync

Type declaration

create: (<I>(schema, effect, params?) => ZodEffects<I, I["_output"], input<I>>)

Type declaration

createWithPreprocess: (<I>(preprocess, schema, params?) => ZodEffects<I, I["_output"], unknown>)

Type declaration

Accessors

  • get description(): undefined | string
  • Returns undefined | string

Methods

  • Parameters

    Returns string

  • Parameters

    • description: string

    Returns this

  • Returns T

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns Output

  • Parameters

    Returns Promise<Output>

  • Returns T

Generated using TypeDoc