Class ZodBigInt

Hierarchy (view full)

Constructors

Properties

_input: bigint
_output: bigint
_type: bigint
~standard: Props<bigint, bigint>
max: ((value: bigint, message?: ErrMessage) => ZodBigInt)
min: ((value: bigint, message?: ErrMessage) => ZodBigInt)
spa: ((data: unknown, params?: InexactPartial<ParseParams>) => Promise<SafeParseReturnType<bigint, bigint>>)

Alias of safeParseAsync

create: ((params?: {
    description?: string;
    errorMap?: ZodErrorMap;
    invalid_type_error?: string;
    message?: string;
    required_error?: string;
} & {
    coerce?: boolean;
}) => ZodBigInt)

Accessors

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

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

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

Methods

  • Parameters

    Returns string

  • Parameters

    • data: unknown

    Returns Result<bigint> | Promise<Result<bigint>>

  • Parameters

    • description: string

    Returns this

  • Parameters

    • value: bigint
    • Optionalmessage: ErrMessage

    Returns ZodBigInt

  • Parameters

    • value: bigint
    • Optionalmessage: ErrMessage

    Returns ZodBigInt

  • Returns boolean

  • Returns boolean

  • Parameters

    • value: bigint
    • Optionalmessage: ErrMessage

    Returns ZodBigInt

  • Parameters

    • value: bigint
    • Optionalmessage: ErrMessage

    Returns ZodBigInt

  • Parameters

    • value: bigint
    • Optionalmessage: ErrMessage

    Returns ZodBigInt

  • Parameters

    • Optionalmessage: ErrMessage

    Returns ZodBigInt

  • Parameters

    • Optionalmessage: ErrMessage

    Returns ZodBigInt

  • Parameters

    • Optionalmessage: ErrMessage

    Returns ZodBigInt

  • Parameters

    • Optionalmessage: ErrMessage

    Returns ZodBigInt

  • Parameters

    • kind: "min" | "max"
    • value: bigint
    • inclusive: boolean
    • Optionalmessage: string

    Returns ZodBigInt