Type Parameters

Hierarchy (view full)

Constructors

Properties

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

Alias of safeParseAsync

Type declaration

create: (<T_1>(type, params) => ZodDefault<T_1>)

Type declaration

    • <T_1>(type, params): ZodDefault<T_1>
    • Type Parameters

      Parameters

      • type: T_1
      • params: {
            description?: string;
            errorMap?: ZodErrorMap;
            invalid_type_error?: string;
            message?: string;
            required_error?: string;
        } & {
            default: T_1["_input"] | (() => noUndefined<T_1["_input"]>);
        }

      Returns ZodDefault<T_1>

Accessors

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

Methods

  • Parameters

    Returns string

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Returns T