Type Parameters

Hierarchy

Constructors

Properties

_input: undefined | T["_input"]
_output: undefined | T["_output"]
_type: undefined | T["_output"]
spa: ((data: unknown, params?: Partial<ParseParams>) => Promise<SafeParseReturnType<undefined | T["_input"], undefined | T["_output"]>>)

Type declaration

create: (<T_1>(type: T_1, params?: RawCreateParams) => ZodOptional<T_1>)

Type declaration

Accessors

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

Methods

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns undefined | T["_output"]

  • Parameters

    Returns Promise<undefined | T["_output"]>

  • Type Parameters

    • RefinedOutput extends any

    Parameters

    • check: ((arg: undefined | T["_output"]) => arg is RefinedOutput)
        • (arg: undefined | T["_output"]): arg is RefinedOutput
        • Parameters

          • arg: undefined | T["_output"]

          Returns arg is RefinedOutput

    • Optional message: string | Partial<Omit<ZodCustomIssue, "code">> | ((arg: undefined | T["_output"]) => Partial<Omit<ZodCustomIssue, "code">>)

    Returns ZodEffects<ZodOptional<T>, RefinedOutput, undefined | T["_input"]>

  • Parameters

    • check: ((arg: undefined | T["_output"]) => unknown)
        • (arg: undefined | T["_output"]): unknown
        • Parameters

          • arg: undefined | T["_output"]

          Returns unknown

    • Optional message: string | Partial<Omit<ZodCustomIssue, "code">> | ((arg: undefined | T["_output"]) => Partial<Omit<ZodCustomIssue, "code">>)

    Returns ZodEffects<ZodOptional<T>, undefined | T["_output"], undefined | T["_input"]>

  • Type Parameters

    • RefinedOutput extends any

    Parameters

    • check: ((arg: undefined | T["_output"]) => arg is RefinedOutput)
        • (arg: undefined | T["_output"]): arg is RefinedOutput
        • Parameters

          • arg: undefined | T["_output"]

          Returns arg is RefinedOutput

    • refinementData: IssueData | ((arg: undefined | T["_output"], ctx: RefinementCtx) => IssueData)

    Returns ZodEffects<ZodOptional<T>, RefinedOutput, undefined | T["_input"]>

  • Parameters

    • check: ((arg: undefined | T["_output"]) => boolean)
        • (arg: undefined | T["_output"]): boolean
        • Parameters

          • arg: undefined | T["_output"]

          Returns boolean

    • refinementData: IssueData | ((arg: undefined | T["_output"], ctx: RefinementCtx) => IssueData)

    Returns ZodEffects<ZodOptional<T>, undefined | T["_output"], undefined | T["_input"]>

  • Type Parameters

    • RefinedOutput extends any

    Parameters

    • refinement: ((arg: undefined | T["_output"], ctx: RefinementCtx) => arg is RefinedOutput)
        • (arg: undefined | T["_output"], ctx: RefinementCtx): arg is RefinedOutput
        • Parameters

          Returns arg is RefinedOutput

    Returns ZodEffects<ZodOptional<T>, RefinedOutput, undefined | T["_input"]>

  • Parameters

    • refinement: ((arg: undefined | T["_output"], ctx: RefinementCtx) => void)
        • (arg: undefined | T["_output"], ctx: RefinementCtx): void
        • Parameters

          Returns void

    Returns ZodEffects<ZodOptional<T>, undefined | T["_output"], undefined | T["_input"]>

  • Type Parameters

    • NewOut

    Parameters

    • transform: ((arg: undefined | T["_output"], ctx: RefinementCtx) => NewOut | Promise<NewOut>)
        • (arg: undefined | T["_output"], ctx: RefinementCtx): NewOut | Promise<NewOut>
        • Parameters

          Returns NewOut | Promise<NewOut>

    Returns ZodEffects<ZodOptional<T>, NewOut, undefined | T["_input"]>

  • Returns T

Generated using TypeDoc