MCPcopy
hub / github.com/colinhacks/zod / int

Method int

packages/zod/src/v4/classic/schemas.ts:973–973  ·  view source on GitHub ↗

Consider `z.int()` instead. This API is considered *legacy*; it will never be removed but a better alternative exists.

(params?: string | core.$ZodCheckNumberFormatParams)

Source from the content-addressed store, hash-verified

971 max(value: number, params?: string | core.$ZodCheckLessThanParams): this;
972 /** Consider `z.int()` instead. This API is considered *legacy*; it will never be removed but a better alternative exists. */
973 int(params?: string | core.$ZodCheckNumberFormatParams): this;
974 /** @deprecated This is now identical to `.int()`. Only numbers in the safe integer range are accepted. */
975 safe(params?: string | core.$ZodCheckNumberFormatParams): this;
976 positive(params?: string | core.$ZodCheckGreaterThanParams): this;

Callers 15

index.tsFile · 0.65
number.test.tsFile · 0.65
primitives.tsFile · 0.65
realworld.tsFile · 0.65
convertBaseSchemaFunction · 0.65
function.test.tsFile · 0.65
record.test.tsFile · 0.65
codec.test.tsFile · 0.65
number.test.tsFile · 0.65

Calls

no outgoing calls

Tested by 4

stringToIntFunction · 0.52
numberToBigIntFunction · 0.52
epochSecondsToDateFunction · 0.52
epochMillisToDateFunction · 0.52