Hierarchy (view full)

Constructors

Properties

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

Type declaration

    • (value, message?): ZodNumber
    • Parameters

      • value: number
      • Optional message: ErrMessage

      Returns ZodNumber

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

Type declaration

    • (value, message?): ZodNumber
    • Parameters

      • value: number
      • Optional message: ErrMessage

      Returns ZodNumber

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

Alias of safeParseAsync

Type declaration

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

Type declaration

    • (value, message?): ZodNumber
    • Parameters

      • value: number
      • Optional message: ErrMessage

      Returns ZodNumber

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

    • Optional message: ErrMessage

    Returns ZodNumber

  • Parameters

    • value: number
    • Optional message: ErrMessage

    Returns ZodNumber

  • Parameters

    • value: number
    • Optional message: ErrMessage

    Returns ZodNumber

  • Parameters

    • Optional message: ErrMessage

    Returns ZodNumber

  • Returns boolean

  • Returns boolean

  • Parameters

    • value: number
    • Optional message: ErrMessage

    Returns ZodNumber

  • Parameters

    • value: number
    • Optional message: ErrMessage

    Returns ZodNumber

  • Parameters

    • value: number
    • Optional message: ErrMessage

    Returns ZodNumber

  • Parameters

    • Optional message: ErrMessage

    Returns ZodNumber

  • Parameters

    • Optional message: ErrMessage

    Returns ZodNumber

  • Parameters

    • Optional message: ErrMessage

    Returns ZodNumber

  • Parameters

    Returns number

  • Parameters

    Returns Promise<number>

  • Parameters

    • Optional message: ErrMessage

    Returns ZodNumber

  • Parameters

    • Optional message: ErrMessage

    Returns ZodNumber

Generated using TypeDoc