@rickosborne/rebound
Version:
Rick Osborne's utilities for working with bounded numbers
35 lines (34 loc) • 1.33 kB
JavaScript
;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var int255_exports = {};
__export(int255_exports, {
assertInt255: () => assertInt255,
int255: () => int255,
isInt255: () => isInt255,
toInt255: () => toInt255
});
module.exports = __toCommonJS(int255_exports);
var import_rebound = require("./rebound.cjs");
const int255 = import_rebound.Rebound.buildType("Int255").fromInclusive(0).toInclusive(255).integers().build();
const toInt255 = int255.fromNumberWith({ ifPresent: true });
const {
assert: assertInt255,
guard: isInt255
} = int255;
//# sourceMappingURL=int255.cjs.map