Type Parameters

Hierarchy

Constructors

Properties

_def: ZodPipelineDef<A, B>
_input: A["_input"]
_output: B["_output"]
_type: B["_output"]
spa: ((data, params?) => Promise<SafeParseReturnType<A["_input"], B["_output"]>>)

Type declaration

Accessors

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

Methods

  • Parameters

    Returns string

  • Parameters

    • refinement: ((arg, ctx) => any)
        • (arg, ctx): any
        • Parameters

          Returns any

    Returns ZodEffects<ZodPipeline<A, B>, B["_output"], A["_input"]>

  • Type Parameters

    • B extends string | number | symbol

    Parameters

    • Optional brand: B

    Returns ZodBranded<ZodPipeline<A, B>, B>

  • Parameters

    • def: B["_output"]

    Returns ZodCatch<ZodPipeline<A, B>>

  • Parameters

    • def: ((ctx) => B["_output"])
        • (ctx): B["_output"]
        • Parameters

          • ctx: {
                error: ZodError<any>;
                input: A["_input"];
            }
            • error: ZodError<any>
            • input: A["_input"]

          Returns B["_output"]

    Returns ZodCatch<ZodPipeline<A, B>>

  • Parameters

    • description: string

    Returns ZodPipeline<A, B>

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns B["_output"]

  • Parameters

    Returns Promise<B["_output"]>

  • Type Parameters

    • RefinedOutput extends any

    Parameters

    • check: ((arg) => arg is RefinedOutput)
        • (arg): arg is RefinedOutput
        • Parameters

          • arg: B["_output"]

          Returns arg is RefinedOutput

    • refinementData: IssueData | ((arg, ctx) => IssueData)

    Returns ZodEffects<ZodPipeline<A, B>, RefinedOutput, A["_input"]>

  • Parameters

    • check: ((arg) => boolean)
        • (arg): boolean
        • Parameters

          • arg: B["_output"]

          Returns boolean

    • refinementData: IssueData | ((arg, ctx) => IssueData)

    Returns ZodEffects<ZodPipeline<A, B>, B["_output"], A["_input"]>

  • Type Parameters

    • RefinedOutput extends any

    Parameters

    • refinement: ((arg, ctx) => arg is RefinedOutput)
        • (arg, ctx): arg is RefinedOutput
        • Parameters

          Returns arg is RefinedOutput

    Returns ZodEffects<ZodPipeline<A, B>, RefinedOutput, A["_input"]>

  • Parameters

    • refinement: ((arg, ctx) => void)
        • (arg, ctx): void
        • Parameters

          Returns void

    Returns ZodEffects<ZodPipeline<A, B>, B["_output"], A["_input"]>

  • Type Parameters

    • NewOut

    Parameters

    • transform: ((arg, ctx) => NewOut | Promise<NewOut>)
        • (arg, ctx): NewOut | Promise<NewOut>
        • Parameters

          Returns NewOut | Promise<NewOut>

    Returns ZodEffects<ZodPipeline<A, B>, NewOut, A["_input"]>

  • Type Parameters

    Parameters

    • a: A
    • b: B

    Returns ZodPipeline<A, B>

Generated using TypeDoc