@rickosborne/rebound
Version:
Rick Osborne's utilities for working with bounded numbers
15 lines (14 loc) • 358 B
JavaScript
import { Rebound } from "./rebound.mjs";
const int255 = Rebound.buildType("Int255").fromInclusive(0).toInclusive(255).integers().build();
const toInt255 = int255.fromNumberWith({ ifPresent: true });
const {
assert: assertInt255,
guard: isInt255
} = int255;
export {
assertInt255,
int255,
isInt255,
toInt255
};
//# sourceMappingURL=int255.mjs.map