title: Core.z. Zod Big Int
A2A Node SDK - v0.1.0 / Modules / Core / z / ZodBigInt
Class: ZodBigInt
Hierarchy
-
ZodType<bigint,ZodBigIntDef,bigint>↳
ZodBigInt
Table of contents
Constructors
Properties
Accessors
Methods
- _addCheck
- _getInvalidInput
- _getOrReturnCtx
- _getType
- _parse
- _parseAsync
- _parseSync
- _processInputParams
- _refinement
- and
- array
- brand
- catch
- default
- describe
- gt
- gte
- isNullable
- isOptional
- lt
- lte
- multipleOf
- negative
- nonnegative
- nonpositive
- nullable
- nullish
- optional
- or
- parse
- parseAsync
- pipe
- positive
- promise
- readonly
- refine
- refinement
- safeParse
- safeParseAsync
- setLimit
- superRefine
- transform
- ~validate
Constructors
constructor
• new ZodBigInt(def): ZodBigInt
Parameters
| Name | Type |
|---|---|
def | ZodBigIntDef |
Returns
Inherited from
Properties
_def
• Readonly _def: ZodBigIntDef
Inherited from
_input
• Readonly _input: bigint
Inherited from
_output
• Readonly _output: bigint
Inherited from
_type
• Readonly _type: bigint
Inherited from
create
▪ Static create: (params?: { description?: string ; errorMap?: ZodErrorMap ; invalid_type_error?: string ; message?: string ; required_error?: string } & { coerce?: boolean }) => ZodBigInt
Type declaration
▸ (params?): ZodBigInt
Parameters
| Name | Type |
|---|---|
params? | { description?: string ; errorMap?: ZodErrorMap ; invalid_type_error?: string ; message?: string ; required_error?: string } & { coerce?: boolean } |
Returns
max
• max: (value: bigint, message?: ErrMessage) => ZodBigInt
Type declaration
▸ (value, message?): ZodBigInt
Parameters
| Name | Type |
|---|---|
value | bigint |
message? | ErrMessage |
Returns
min
• min: (value: bigint, message?: ErrMessage) => ZodBigInt
Type declaration
▸ (value, message?): ZodBigInt
Parameters
| Name | Type |
|---|---|
value | bigint |
message? | ErrMessage |
Returns
spa
• spa: (data: unknown, params?: InexactPartial<ParseParams>) => Promise<SafeParseReturnType<bigint, bigint>>
Alias of safeParseAsync
Type declaration
▸ (data, params?): Promise<SafeParseReturnType<bigint, bigint>>
Parameters
| Name | Type |
|---|---|
data | unknown |
params? | InexactPartial<ParseParams> |
Returns
Promise<SafeParseReturnType<bigint, bigint>>
Inherited from
~standard
• ~standard: Props<bigint, bigint>
Inherited from
Accessors
description
• get description(): undefined | string
Returns
undefined | string
Inherited from
ZodType.description
maxValue
• get maxValue(): null | bigint
Returns
null | bigint
minValue
• get minValue(): null | bigint
Returns
null | bigint
Methods
_addCheck
▸ _addCheck(check): ZodBigInt
Parameters
| Name | Type |
|---|---|
check | ZodBigIntCheck |
Returns
_getInvalidInput
▸ _getInvalidInput(input): INVALID
Parameters
| Name | Type |
|---|---|
input | ParseInput |
Returns
_getOrReturnCtx
▸ _getOrReturnCtx(input, ctx?): ParseContext
Parameters
| Name | Type |
|---|---|
input | ParseInput |
ctx? | ParseContext |
Returns
Inherited from
_getType
▸ _getType(input): string
Parameters
| Name | Type |
|---|---|
input | ParseInput |
Returns
string
Inherited from
_parse
▸ _parse(input): ParseReturnType<bigint>
Parameters
| Name | Type |
|---|---|
input | ParseInput |
Returns
ParseReturnType<bigint>
Overrides
_parseAsync
▸ _parseAsync(input): AsyncParseReturnType<bigint>
Parameters
| Name | Type |
|---|---|
input | ParseInput |
Returns
AsyncParseReturnType<bigint>
Inherited from
_parseSync
▸ _parseSync(input): SyncParseReturnType<bigint>
Parameters
| Name | Type |
|---|---|
input | ParseInput |
Returns
SyncParseReturnType<bigint>
Inherited from
_processInputParams
▸ _processInputParams(input): Object
Parameters
| Name | Type |
|---|---|
input | ParseInput |
Returns
Object
| Name | Type |
|---|---|
ctx | ParseContext |
status | ParseStatus |
Inherited from
_refinement
▸ _refinement(refinement): ZodEffects<ZodBigInt, bigint, bigint>
Parameters
| Name | Type |
|---|---|
refinement | (arg: bigint, ctx: RefinementCtx) => any |
Returns
ZodEffects<ZodBigInt, bigint, bigint>
Inherited from
and
▸ and<T>(incoming): ZodIntersection<ZodBigInt, T>
Type parameters
| Name | Type |
|---|---|
T | extends ZodTypeAny |
Parameters
| Name | Type |
|---|---|
incoming | T |
Returns
Inherited from
array
▸ array(): ZodArray<ZodBigInt, "many">
Returns
Inherited from
brand
▸ brand<B>(brand?): ZodBranded<ZodBigInt, B>
Type parameters
| Name | Type |
|---|---|
B | extends string | number | symbol |
Parameters
| Name | Type |
|---|---|
brand? | B |
Returns
ZodBranded<ZodBigInt, B>
Inherited from
catch
▸ catch(def): ZodCatch<ZodBigInt>
Parameters
| Name | Type |
|---|---|
def | bigint |
Returns
Inherited from
▸ catch(def): ZodCatch<ZodBigInt>
Parameters
| Name | Type |
|---|---|
def | (ctx: { error: ZodError<any> ; input: bigint }) => bigint |
Returns
Inherited from
default
▸ default(def): ZodDefault<ZodBigInt>
Parameters
| Name | Type |
|---|---|
def | bigint |
Returns
Inherited from
▸ default(def): ZodDefault<ZodBigInt>
Parameters
| Name | Type |
|---|---|
def | () => bigint |
Returns
Inherited from
describe
▸ describe(description): this
Parameters
| Name | Type |
|---|---|
description | string |
Returns
this
Inherited from
gt
▸ gt(value, message?): ZodBigInt
Parameters
| Name | Type |
|---|---|
value | bigint |
message? | ErrMessage |
Returns
gte
▸ gte(value, message?): ZodBigInt
Parameters
| Name | Type |
|---|---|
value | bigint |
message? | ErrMessage |
Returns
isNullable
▸ isNullable(): boolean
Returns
boolean
Inherited from
isOptional
▸ isOptional(): boolean
Returns
boolean
Inherited from
lt
▸ lt(value, message?): ZodBigInt
Parameters
| Name | Type |
|---|---|
value | bigint |
message? | ErrMessage |
Returns
lte
▸ lte(value, message?): ZodBigInt
Parameters
| Name | Type |
|---|---|
value | bigint |
message? | ErrMessage |
Returns
multipleOf
▸ multipleOf(value, message?): ZodBigInt
Parameters
| Name | Type |
|---|---|
value | bigint |
message? | ErrMessage |
Returns
negative
▸ negative(message?): ZodBigInt
Parameters
| Name | Type |
|---|---|
message? | ErrMessage |
Returns
nonnegative
▸ nonnegative(message?): ZodBigInt
Parameters
| Name | Type |
|---|---|
message? | ErrMessage |
Returns
nonpositive
▸ nonpositive(message?): ZodBigInt
Parameters
| Name | Type |
|---|---|
message? | ErrMessage |
Returns
nullable
▸ nullable(): ZodNullable<ZodBigInt>
Returns
Inherited from
nullish
▸ nullish(): ZodOptional<ZodNullable<ZodBigInt>>
Returns
ZodOptional<ZodNullable<ZodBigInt>>
Inherited from
optional
▸ optional(): ZodOptional<ZodBigInt>
Returns
Inherited from
or
▸ or<T>(option): ZodUnion<[ZodBigInt, T]>
Type parameters
| Name | Type |
|---|---|
T | extends ZodTypeAny |
Parameters
| Name | Type |
|---|---|
option | T |
Returns
Inherited from
parse
▸ parse(data, params?): bigint
Parameters
| Name | Type |
|---|---|
data | unknown |
params? | InexactPartial<ParseParams> |
Returns
bigint
Inherited from
parseAsync
▸ parseAsync(data, params?): Promise<bigint>
Parameters
| Name | Type |
|---|---|
data | unknown |
params? | InexactPartial<ParseParams> |
Returns
Promise<bigint>
Inherited from
pipe
▸ pipe<T>(target): ZodPipeline<ZodBigInt, T>
Type parameters
| Name | Type |
|---|---|
T | extends ZodTypeAny |
Parameters
| Name | Type |
|---|---|
target | T |
Returns
ZodPipeline<ZodBigInt, T>
Inherited from
positive
▸ positive(message?): ZodBigInt
Parameters
| Name | Type |
|---|---|
message? | ErrMessage |
Returns
promise
▸ promise(): ZodPromise<ZodBigInt>
Returns
Inherited from
readonly
▸ readonly(): ZodReadonly<ZodBigInt>
Returns
Inherited from
refine
▸ refine<RefinedOutput>(check, message?): ZodEffects<ZodBigInt, RefinedOutput, bigint>
Type parameters
| Name | Type |
|---|---|
RefinedOutput | extends bigint |
Parameters
| Name | Type |
|---|---|
check | (arg: bigint) => arg is RefinedOutput |
message? | string | Partial<Omit<ZodCustomIssue, "code">> | (arg: bigint) => Partial<Omit<ZodCustomIssue, "code">> |
Returns
ZodEffects<ZodBigInt, RefinedOutput, bigint>
Inherited from
▸ refine(check, message?): ZodEffects<ZodBigInt, bigint, bigint>
Parameters
| Name | Type |
|---|---|
check | (arg: bigint) => unknown |
message? | string | Partial<Omit<ZodCustomIssue, "code">> | (arg: bigint) => Partial<Omit<ZodCustomIssue, "code">> |
Returns
ZodEffects<ZodBigInt, bigint, bigint>
Inherited from
refinement
▸ refinement<RefinedOutput>(check, refinementData): ZodEffects<ZodBigInt, RefinedOutput, bigint>
Type parameters
| Name | Type |
|---|---|
RefinedOutput | extends bigint |
Parameters
| Name | Type |
|---|---|
check | (arg: bigint) => arg is RefinedOutput |
refinementData | IssueData | (arg: bigint, ctx: RefinementCtx) => IssueData |
Returns
ZodEffects<ZodBigInt, RefinedOutput, bigint>
Inherited from
▸ refinement(check, refinementData): ZodEffects<ZodBigInt, bigint, bigint>
Parameters
| Name | Type |
|---|---|
check | (arg: bigint) => boolean |
refinementData | IssueData | (arg: bigint, ctx: RefinementCtx) => IssueData |
Returns
ZodEffects<ZodBigInt, bigint, bigint>
Inherited from
safeParse
▸ safeParse(data, params?): SafeParseReturnType<bigint, bigint>
Parameters
| Name | Type |
|---|---|
data | unknown |
params? | InexactPartial<ParseParams> |
Returns
SafeParseReturnType<bigint, bigint>
Inherited from
safeParseAsync
▸ safeParseAsync(data, params?): Promise<SafeParseReturnType<bigint, bigint>>
Parameters
| Name | Type |
|---|---|
data | unknown |
params? | InexactPartial<ParseParams> |
Returns
Promise<SafeParseReturnType<bigint, bigint>>
Inherited from
setLimit
▸ setLimit(kind, value, inclusive, message?): ZodBigInt
Parameters
| Name | Type |
|---|---|
kind | "min" | "max" |
value | bigint |
inclusive | boolean |
message? | string |
Returns
superRefine
▸ superRefine<RefinedOutput>(refinement): ZodEffects<ZodBigInt, RefinedOutput, bigint>
Type parameters
| Name | Type |
|---|---|
RefinedOutput | extends bigint |
Parameters
| Name | Type |
|---|---|
refinement | (arg: bigint, ctx: RefinementCtx) => arg is RefinedOutput |
Returns
ZodEffects<ZodBigInt, RefinedOutput, bigint>
Inherited from
▸ superRefine(refinement): ZodEffects<ZodBigInt, bigint, bigint>
Parameters
| Name | Type |
|---|---|
refinement | (arg: bigint, ctx: RefinementCtx) => void |
Returns
ZodEffects<ZodBigInt, bigint, bigint>
Inherited from
▸ superRefine(refinement): ZodEffects<ZodBigInt, bigint, bigint>
Parameters
| Name | Type |
|---|---|
refinement | (arg: bigint, ctx: RefinementCtx) => Promise<void> |
Returns
ZodEffects<ZodBigInt, bigint, bigint>
Inherited from
transform
▸ transform<NewOut>(transform): ZodEffects<ZodBigInt, NewOut, bigint>
Type parameters
| Name |
|---|
NewOut |
Parameters
| Name | Type |
|---|---|
transform | (arg: bigint, ctx: RefinementCtx) => NewOut | Promise<NewOut> |
Returns
ZodEffects<ZodBigInt, NewOut, bigint>
Inherited from
~validate
▸ ~validate(data): Result<bigint> | Promise<Result<bigint>>
Parameters
| Name | Type |
|---|---|
data | unknown |
Returns
Result<bigint> | Promise<Result<bigint>>