UNPKG

@rickosborne/rebound

Version:

Rick Osborne's utilities for working with bounded numbers

15 lines (14 loc) 358 B
import { Rebound } from "./rebound.mjs"; const int360 = Rebound.buildType("Int360").integers().fromInclusive(0).toInclusive(359).build(); const toInt360 = int360.fromNumberWith({ ifPresent: true }); const { assert: assertInt360, guard: isInt360 } = int360; export { assertInt360, int360, isInt360, toInt360 }; //# sourceMappingURL=int360.mjs.map