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

Function isInt32

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

Source from the content-addressed store, hash-verified

8074 * @since 4.0.0
8075 */
8076export function isInt32(annotations?: Annotations.Filter) {
8077 return new SchemaAST.FilterGroup(
8078 [
8079 isInt(),
8080 isBetween({ minimum: -2147483648, maximum: 2147483647 })
8081 ],
8082 {
8083 expected: "a 32-bit integer",
8084 ...annotations
8085 }
8086 )
8087}
8088/**
8089 * Validates that a number is a 32-bit unsigned integer (range: 0 to
8090 * 4,294,967,295).

Callers

nothing calls this directly

Calls 2

isIntFunction · 0.85
isBetweenFunction · 0.85

Tested by

no test coverage detected