Hierarchy (view full)

Constructors

Properties

_input: number
_output: number
_type: number
max: ((value, message?) => ZodNumber)

Type declaration

min: ((value, message?) => ZodNumber)

Type declaration

spa: ((data, params?) => Promise<SafeParseReturnType<number, number>>)

Alias of safeParseAsync

Type declaration

step: ((value, message?) => ZodNumber)

Type declaration

create: ((params?) => ZodNumber)

Type declaration

    • (params?): ZodNumber
    • Parameters

      • Optional params: {
            description?: string;
            errorMap?: ZodErrorMap;
            invalid_type_error?: string;
            required_error?: string;
        } & {
            coerce?: boolean;
        }

      Returns ZodNumber

Accessors

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

  • get isFinite(): boolean
  • Returns boolean

  • get isInt(): boolean
  • Returns boolean

  • get maxValue(): null | number
  • Returns null | number

  • get minValue(): null | number
  • Returns null | number

Methods

  • Parameters

    Returns string

  • Parameters

    • description: string

    Returns this

  • Parameters

    Returns ZodNumber

  • Parameters

    Returns ZodNumber

  • Parameters

    Returns ZodNumber

  • Parameters

    Returns ZodNumber

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns ZodNumber

  • Parameters

    Returns ZodNumber

  • Parameters

    Returns ZodNumber

  • Parameters

    Returns ZodNumber

  • Parameters

    Returns ZodNumber

  • Parameters

    Returns ZodNumber

  • Parameters

    Returns number

  • Parameters

    Returns Promise<number>

  • Parameters

    Returns ZodNumber

  • Parameters

    Returns ZodNumber

  • Parameters

    • kind: "min" | "max"
    • value: number
    • inclusive: boolean
    • Optional message: string

    Returns ZodNumber

Generated using TypeDoc