UNPKG

@rickosborne/rebound

Version:

Rick Osborne's utilities for working with bounded numbers

35 lines (34 loc) 1.33 kB
"use strict"; 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 int360_exports = {}; __export(int360_exports, { assertInt360: () => assertInt360, int360: () => int360, isInt360: () => isInt360, toInt360: () => toInt360 }); module.exports = __toCommonJS(int360_exports); var import_rebound = require("./rebound.cjs"); const int360 = import_rebound.Rebound.buildType("Int360").integers().fromInclusive(0).toInclusive(359).build(); const toInt360 = int360.fromNumberWith({ ifPresent: true }); const { assert: assertInt360, guard: isInt360 } = int360; //# sourceMappingURL=int360.cjs.map