Function
isInt32
(annotations?: Annotations.Filter)
Source from the content-addressed store, hash-verified
| 8321 | * @since 4.0.0 |
| 8322 | */ |
| 8323 | export 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
Tested by
no test coverage detected