Skip to main content

Function: int64()

int64(params?): ZodInt64

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:424

Parameters​

params?​

string |

{ abort?: boolean; error?: string | $ZodErrorMap<NonNullable<$ZodIssueInvalidType<unknown> | $ZodIssueTooBig<"bigint"> | $ZodIssueTooSmall<"bigint">>>; message?: string; when?: (payload) => boolean; }

abort?​

boolean

If true, no later checks will be executed if this check fails. Default false.

error?​

string | $ZodErrorMap<NonNullable<$ZodIssueInvalidType<unknown> | $ZodIssueTooBig<"bigint"> | $ZodIssueTooSmall<"bigint">>>

message?​

string

Deprecated

This parameter is deprecated. Use error instead.

when?​

(payload) => boolean

If provided, the check runs only when this returns true. By default, it is skipped if prior parsing produced aborting issues.

Returns​

ZodInt64