import { type NonNegativeInteger } from "https://dotland.deno.dev/x/scaffold@0.3.0/src/deps/types.ts";
A non-negative (0 <= x < ∞
) number
that is an integer.
Equivalent to NonNegative<Integer<T>>
.
You can't pass a bigint
as they are already guaranteed to be integers, instead use NonNegative<T>
.
Use-case: Validating and documenting parameters.