MCPcopy Create free account
hub / github.com/Effect-TS/effect / isInt32

Function isInt32

packages/effect/src/Schema.ts:8323–8334  ·  view source on GitHub ↗
(annotations?: Annotations.Filter)

Source from the content-addressed store, hash-verified

8321 * @since 4.0.0
8322 */
8323export function isInt32(annotations?: Annotations.Filter) {
8324 return new SchemaAST.FilterGroup(
8325 [
8326 isInt(),
8327 isBetween({ minimum: -2147483648, maximum: 2147483647 })
8328 ],
8329 {
8330 expected: "a 32-bit integer",
8331 ...annotations
8332 }
8333 )
8334}
8335
8336/**
8337 * Validates that a number is a 32-bit unsigned integer (range: 0 to

Callers

nothing calls this directly

Calls 2

isIntFunction · 0.85
isBetweenFunction · 0.85

Tested by

no test coverage detected