Hierarchy (View Summary)

Constructors

Properties

_input: number
_output: number
_type: number
max: (value: number, message?: ErrMessage) => Zod.z.ZodNumber
min: (value: number, message?: ErrMessage) => Zod.z.ZodNumber
spa: (
    data: unknown,
    params?: Partial<Zod.z.ParseParams>,
) => Promise<Zod.z.SafeParseReturnType<number, number>>

Alias of safeParseAsync

step: (value: number, message?: ErrMessage) => Zod.z.ZodNumber
create: (
    params?: {
        description?: string;
        errorMap?: Zod.z.ZodErrorMap;
        invalid_type_error?: string;
        required_error?: string;
    } & { coerce?: boolean },
) => Zod.z.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

    • description: string

    Returns this

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodNumber

  • Parameters

    • value: number
    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodNumber

  • Parameters

    • value: number
    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodNumber

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodNumber

  • Returns boolean

  • Returns boolean

  • Parameters

    • value: number
    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodNumber

  • Parameters

    • value: number
    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodNumber

  • Parameters

    • value: number
    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodNumber

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodNumber

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodNumber

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodNumber

  • Parameters

    Returns number

  • Parameters

    Returns Promise<number>

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodNumber

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodNumber