Class ZodBigInt

Hierarchy

Constructors

Properties

_input: bigint
_output: bigint
_type: bigint
spa: ((data: unknown, params?: Partial<ParseParams>) => Promise<SafeParseReturnType<bigint, bigint>>)

Type declaration

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

Type declaration

    • (params?: {
          description?: string;
          errorMap?: ZodErrorMap;
          invalid_type_error?: string;
          required_error?: string;
      } & {
          coerce?: boolean;
      }): ZodBigInt
    • Parameters

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

      Returns ZodBigInt

Accessors

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

Methods

  • Parameters

    Returns string

  • Type Parameters

    • B extends string | number | symbol

    Parameters

    • Optional brand: B

    Returns ZodBranded<ZodBigInt, B>

  • Parameters

    • description: string

    Returns ZodBigInt

  • Returns boolean

  • Returns boolean

  • Type Parameters

    • T extends ZodType<any, any, any, T>

    Parameters

    • option: T

    Returns ZodUnion<[ZodBigInt, T]>

  • Parameters

    Returns bigint

  • Parameters

    Returns Promise<bigint>

  • Type Parameters

    • RefinedOutput extends bigint

    Parameters

    • check: ((arg: bigint) => arg is RefinedOutput)
        • (arg: bigint): arg is RefinedOutput
        • Parameters

          • arg: bigint

          Returns arg is RefinedOutput

    • Optional message: string | Partial<Omit<ZodCustomIssue, "code">> | ((arg: bigint) => Partial<Omit<ZodCustomIssue, "code">>)

    Returns ZodEffects<ZodBigInt, RefinedOutput, bigint>

  • Parameters

    • check: ((arg: bigint) => unknown)
        • (arg: bigint): unknown
        • Parameters

          • arg: bigint

          Returns unknown

    • Optional message: string | Partial<Omit<ZodCustomIssue, "code">> | ((arg: bigint) => Partial<Omit<ZodCustomIssue, "code">>)

    Returns ZodEffects<ZodBigInt, bigint, bigint>

  • Type Parameters

    • NewOut

    Parameters

    • transform: ((arg: bigint, ctx: RefinementCtx) => NewOut | Promise<NewOut>)
        • (arg: bigint, ctx: RefinementCtx): NewOut | Promise<NewOut>
        • Parameters

          Returns NewOut | Promise<NewOut>

    Returns ZodEffects<ZodBigInt, NewOut, bigint>

Generated using TypeDoc