ts-data-forge 14.10.1 → 14.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -1
- package/dist/array/impl/array-utils-reducing-value.d.mts.map +1 -1
- package/dist/array/impl/array-utils-reducing-value.mjs +4 -3
- package/dist/array/impl/array-utils-reducing-value.mjs.map +1 -1
- package/dist/array/impl/array-utils-slice-clamped.mjs +1 -1
- package/dist/array/impl/array-utils-slice-clamped.mjs.map +1 -1
- package/dist/array/impl/array-utils-slicing.d.mts.map +1 -1
- package/dist/array/impl/array-utils-slicing.mjs +10 -3
- package/dist/array/impl/array-utils-slicing.mjs.map +1 -1
- package/dist/array/impl/array-utils-transformation.d.mts.map +1 -1
- package/dist/array/impl/array-utils-transformation.mjs +3 -3
- package/dist/array/impl/array-utils-transformation.mjs.map +1 -1
- package/dist/array/impl/array-utils-validation.d.mts.map +1 -1
- package/dist/array/impl/array-utils-validation.mjs +2 -1
- package/dist/array/impl/array-utils-validation.mjs.map +1 -1
- package/dist/built-in-tag.d.mts +22 -0
- package/dist/built-in-tag.d.mts.map +1 -0
- package/dist/built-in-tag.mjs +34 -0
- package/dist/built-in-tag.mjs.map +1 -0
- package/dist/collections/imap-mapped.mjs +6 -3
- package/dist/collections/imap-mapped.mjs.map +1 -1
- package/dist/collections/imap.mjs +6 -3
- package/dist/collections/imap.mjs.map +1 -1
- package/dist/collections/stack.mjs +3 -3
- package/dist/collections/stack.mjs.map +1 -1
- package/dist/iterator/range.d.mts +1 -1
- package/dist/iterator/range.d.mts.map +1 -1
- package/dist/iterator/range.mjs +5 -2
- package/dist/iterator/range.mjs.map +1 -1
- package/dist/json/json.d.mts.map +1 -1
- package/dist/json/json.mjs +13 -47
- package/dist/json/json.mjs.map +1 -1
- package/dist/number/branded-types/finite-number.d.mts +4 -9
- package/dist/number/branded-types/finite-number.d.mts.map +1 -1
- package/dist/number/branded-types/finite-number.mjs +9 -9
- package/dist/number/branded-types/finite-number.mjs.map +1 -1
- package/dist/number/branded-types/int.d.mts +3 -9
- package/dist/number/branded-types/int.d.mts.map +1 -1
- package/dist/number/branded-types/int.mjs +9 -10
- package/dist/number/branded-types/int.mjs.map +1 -1
- package/dist/number/branded-types/int16.d.mts +3 -18
- package/dist/number/branded-types/int16.d.mts.map +1 -1
- package/dist/number/branded-types/int16.mjs +9 -10
- package/dist/number/branded-types/int16.mjs.map +1 -1
- package/dist/number/branded-types/int32.d.mts +3 -14
- package/dist/number/branded-types/int32.d.mts.map +1 -1
- package/dist/number/branded-types/int32.mjs +9 -10
- package/dist/number/branded-types/int32.mjs.map +1 -1
- package/dist/number/branded-types/negative-finite-number.d.mts +4 -16
- package/dist/number/branded-types/negative-finite-number.d.mts.map +1 -1
- package/dist/number/branded-types/negative-finite-number.mjs +9 -10
- package/dist/number/branded-types/negative-finite-number.mjs.map +1 -1
- package/dist/number/branded-types/negative-int.d.mts +3 -16
- package/dist/number/branded-types/negative-int.d.mts.map +1 -1
- package/dist/number/branded-types/negative-int.mjs +9 -11
- package/dist/number/branded-types/negative-int.mjs.map +1 -1
- package/dist/number/branded-types/negative-safe-int.d.mts +3 -17
- package/dist/number/branded-types/negative-safe-int.d.mts.map +1 -1
- package/dist/number/branded-types/negative-safe-int.mjs +9 -11
- package/dist/number/branded-types/negative-safe-int.mjs.map +1 -1
- package/dist/number/branded-types/non-negative-finite-number.d.mts +4 -14
- package/dist/number/branded-types/non-negative-finite-number.d.mts.map +1 -1
- package/dist/number/branded-types/non-negative-finite-number.mjs +9 -9
- package/dist/number/branded-types/non-negative-finite-number.mjs.map +1 -1
- package/dist/number/branded-types/non-negative-int16.d.mts +3 -19
- package/dist/number/branded-types/non-negative-int16.d.mts.map +1 -1
- package/dist/number/branded-types/non-negative-int16.mjs +9 -10
- package/dist/number/branded-types/non-negative-int16.mjs.map +1 -1
- package/dist/number/branded-types/non-negative-int32.d.mts +3 -17
- package/dist/number/branded-types/non-negative-int32.d.mts.map +1 -1
- package/dist/number/branded-types/non-negative-int32.mjs +9 -10
- package/dist/number/branded-types/non-negative-int32.mjs.map +1 -1
- package/dist/number/branded-types/non-positive-finite-number.d.mts +4 -14
- package/dist/number/branded-types/non-positive-finite-number.d.mts.map +1 -1
- package/dist/number/branded-types/non-positive-finite-number.mjs +9 -9
- package/dist/number/branded-types/non-positive-finite-number.mjs.map +1 -1
- package/dist/number/branded-types/non-positive-int.d.mts +3 -14
- package/dist/number/branded-types/non-positive-int.d.mts.map +1 -1
- package/dist/number/branded-types/non-positive-int.mjs +9 -10
- package/dist/number/branded-types/non-positive-int.mjs.map +1 -1
- package/dist/number/branded-types/non-positive-safe-int.d.mts +3 -15
- package/dist/number/branded-types/non-positive-safe-int.d.mts.map +1 -1
- package/dist/number/branded-types/non-positive-safe-int.mjs +9 -10
- package/dist/number/branded-types/non-positive-safe-int.mjs.map +1 -1
- package/dist/number/branded-types/non-zero-finite-number.d.mts +4 -10
- package/dist/number/branded-types/non-zero-finite-number.d.mts.map +1 -1
- package/dist/number/branded-types/non-zero-finite-number.mjs +9 -10
- package/dist/number/branded-types/non-zero-finite-number.mjs.map +1 -1
- package/dist/number/branded-types/non-zero-int.d.mts +3 -10
- package/dist/number/branded-types/non-zero-int.d.mts.map +1 -1
- package/dist/number/branded-types/non-zero-int.mjs +9 -11
- package/dist/number/branded-types/non-zero-int.mjs.map +1 -1
- package/dist/number/branded-types/non-zero-int16.d.mts +3 -19
- package/dist/number/branded-types/non-zero-int16.d.mts.map +1 -1
- package/dist/number/branded-types/non-zero-int16.mjs +12 -11
- package/dist/number/branded-types/non-zero-int16.mjs.map +1 -1
- package/dist/number/branded-types/non-zero-int32.d.mts +3 -15
- package/dist/number/branded-types/non-zero-int32.d.mts.map +1 -1
- package/dist/number/branded-types/non-zero-int32.mjs +12 -11
- package/dist/number/branded-types/non-zero-int32.mjs.map +1 -1
- package/dist/number/branded-types/non-zero-safe-int.d.mts +6 -14
- package/dist/number/branded-types/non-zero-safe-int.d.mts.map +1 -1
- package/dist/number/branded-types/non-zero-safe-int.mjs +9 -13
- package/dist/number/branded-types/non-zero-safe-int.mjs.map +1 -1
- package/dist/number/branded-types/non-zero-uint16.d.mts +3 -20
- package/dist/number/branded-types/non-zero-uint16.d.mts.map +1 -1
- package/dist/number/branded-types/non-zero-uint16.mjs +9 -11
- package/dist/number/branded-types/non-zero-uint16.mjs.map +1 -1
- package/dist/number/branded-types/non-zero-uint32.d.mts +3 -18
- package/dist/number/branded-types/non-zero-uint32.d.mts.map +1 -1
- package/dist/number/branded-types/non-zero-uint32.mjs +9 -11
- package/dist/number/branded-types/non-zero-uint32.mjs.map +1 -1
- package/dist/number/branded-types/positive-finite-number.d.mts +4 -16
- package/dist/number/branded-types/positive-finite-number.d.mts.map +1 -1
- package/dist/number/branded-types/positive-finite-number.mjs +9 -9
- package/dist/number/branded-types/positive-finite-number.mjs.map +1 -1
- package/dist/number/branded-types/positive-int.d.mts +3 -16
- package/dist/number/branded-types/positive-int.d.mts.map +1 -1
- package/dist/number/branded-types/positive-int.mjs +9 -10
- package/dist/number/branded-types/positive-int.mjs.map +1 -1
- package/dist/number/branded-types/positive-int16.d.mts +3 -21
- package/dist/number/branded-types/positive-int16.d.mts.map +1 -1
- package/dist/number/branded-types/positive-int16.mjs +9 -10
- package/dist/number/branded-types/positive-int16.mjs.map +1 -1
- package/dist/number/branded-types/positive-int32.d.mts +3 -19
- package/dist/number/branded-types/positive-int32.d.mts.map +1 -1
- package/dist/number/branded-types/positive-int32.mjs +9 -10
- package/dist/number/branded-types/positive-int32.mjs.map +1 -1
- package/dist/number/branded-types/positive-safe-int.d.mts +5 -19
- package/dist/number/branded-types/positive-safe-int.d.mts.map +1 -1
- package/dist/number/branded-types/positive-safe-int.mjs +9 -11
- package/dist/number/branded-types/positive-safe-int.mjs.map +1 -1
- package/dist/number/branded-types/positive-uint16.d.mts +3 -20
- package/dist/number/branded-types/positive-uint16.d.mts.map +1 -1
- package/dist/number/branded-types/positive-uint16.mjs +9 -10
- package/dist/number/branded-types/positive-uint16.mjs.map +1 -1
- package/dist/number/branded-types/positive-uint32.d.mts +3 -18
- package/dist/number/branded-types/positive-uint32.d.mts.map +1 -1
- package/dist/number/branded-types/positive-uint32.mjs +9 -10
- package/dist/number/branded-types/positive-uint32.mjs.map +1 -1
- package/dist/number/branded-types/safe-int.d.mts +5 -12
- package/dist/number/branded-types/safe-int.d.mts.map +1 -1
- package/dist/number/branded-types/safe-int.mjs +9 -12
- package/dist/number/branded-types/safe-int.mjs.map +1 -1
- package/dist/number/branded-types/safe-uint.d.mts +3 -15
- package/dist/number/branded-types/safe-uint.d.mts.map +1 -1
- package/dist/number/branded-types/safe-uint.mjs +9 -11
- package/dist/number/branded-types/safe-uint.mjs.map +1 -1
- package/dist/number/branded-types/uint.d.mts +3 -14
- package/dist/number/branded-types/uint.d.mts.map +1 -1
- package/dist/number/branded-types/uint.mjs +9 -10
- package/dist/number/branded-types/uint.mjs.map +1 -1
- package/dist/number/branded-types/uint16.d.mts +3 -18
- package/dist/number/branded-types/uint16.d.mts.map +1 -1
- package/dist/number/branded-types/uint16.mjs +9 -10
- package/dist/number/branded-types/uint16.mjs.map +1 -1
- package/dist/number/branded-types/uint32.d.mts +3 -16
- package/dist/number/branded-types/uint32.d.mts.map +1 -1
- package/dist/number/branded-types/uint32.mjs +9 -10
- package/dist/number/branded-types/uint32.mjs.map +1 -1
- package/dist/number/enum/int8.d.mts +13 -15
- package/dist/number/enum/int8.d.mts.map +1 -1
- package/dist/number/enum/int8.mjs +20 -25
- package/dist/number/enum/int8.mjs.map +1 -1
- package/dist/number/enum/uint8.d.mts +12 -14
- package/dist/number/enum/uint8.d.mts.map +1 -1
- package/dist/number/enum/uint8.mjs +18 -23
- package/dist/number/enum/uint8.mjs.map +1 -1
- package/dist/number/index.d.mts +1 -1
- package/dist/number/index.d.mts.map +1 -1
- package/dist/number/index.mjs +1 -1
- package/dist/number/index.mjs.map +1 -1
- package/dist/number/num/impl/index.d.mts +2 -0
- package/dist/number/num/impl/index.d.mts.map +1 -0
- package/dist/number/num/impl/index.mjs +2 -0
- package/dist/number/num/impl/index.mjs.map +1 -0
- package/dist/number/num/impl/num.d.mts +531 -0
- package/dist/number/num/impl/num.d.mts.map +1 -0
- package/dist/number/num/impl/num.mjs +542 -0
- package/dist/number/num/impl/num.mjs.map +1 -0
- package/dist/number/num/index.d.mts +17 -0
- package/dist/number/num/index.d.mts.map +1 -0
- package/dist/number/num/index.mjs +17 -0
- package/dist/number/num/index.mjs.map +1 -0
- package/dist/number/operators/finite-number.d.mts +16 -0
- package/dist/number/operators/finite-number.d.mts.map +1 -0
- package/dist/number/operators/finite-number.mjs +7 -0
- package/dist/number/operators/finite-number.mjs.map +1 -0
- package/dist/number/operators/int.d.mts +16 -0
- package/dist/number/operators/int.d.mts.map +1 -0
- package/dist/number/operators/int.mjs +8 -0
- package/dist/number/operators/int.mjs.map +1 -0
- package/dist/number/operators/int16.d.mts +25 -0
- package/dist/number/operators/int16.d.mts.map +1 -0
- package/dist/number/operators/int16.mjs +8 -0
- package/dist/number/operators/int16.mjs.map +1 -0
- package/dist/number/operators/int32.d.mts +21 -0
- package/dist/number/operators/int32.d.mts.map +1 -0
- package/dist/number/operators/int32.mjs +8 -0
- package/dist/number/operators/int32.mjs.map +1 -0
- package/dist/number/operators/int8.d.mts +24 -0
- package/dist/number/operators/int8.d.mts.map +1 -0
- package/dist/number/operators/int8.mjs +8 -0
- package/dist/number/operators/int8.mjs.map +1 -0
- package/dist/number/operators/negative-finite-number.d.mts +11 -0
- package/dist/number/operators/negative-finite-number.d.mts.map +1 -0
- package/dist/number/operators/negative-finite-number.mjs +8 -0
- package/dist/number/operators/negative-finite-number.mjs.map +1 -0
- package/dist/number/operators/negative-int.d.mts +10 -0
- package/dist/number/operators/negative-int.d.mts.map +1 -0
- package/dist/number/operators/negative-int.mjs +9 -0
- package/dist/number/operators/negative-int.mjs.map +1 -0
- package/dist/number/operators/negative-safe-int.d.mts +10 -0
- package/dist/number/operators/negative-safe-int.d.mts.map +1 -0
- package/dist/number/operators/negative-safe-int.mjs +9 -0
- package/dist/number/operators/negative-safe-int.mjs.map +1 -0
- package/dist/number/operators/non-negative-finite-number.d.mts +22 -0
- package/dist/number/operators/non-negative-finite-number.d.mts.map +1 -0
- package/dist/number/operators/non-negative-finite-number.mjs +7 -0
- package/dist/number/operators/non-negative-finite-number.mjs.map +1 -0
- package/dist/number/operators/non-negative-int16.d.mts +27 -0
- package/dist/number/operators/non-negative-int16.d.mts.map +1 -0
- package/dist/number/operators/non-negative-int16.mjs +8 -0
- package/dist/number/operators/non-negative-int16.mjs.map +1 -0
- package/dist/number/operators/non-negative-int32.d.mts +25 -0
- package/dist/number/operators/non-negative-int32.d.mts.map +1 -0
- package/dist/number/operators/non-negative-int32.mjs +8 -0
- package/dist/number/operators/non-negative-int32.mjs.map +1 -0
- package/dist/number/operators/non-positive-finite-number.d.mts +11 -0
- package/dist/number/operators/non-positive-finite-number.d.mts.map +1 -0
- package/dist/number/operators/non-positive-finite-number.mjs +7 -0
- package/dist/number/operators/non-positive-finite-number.mjs.map +1 -0
- package/dist/number/operators/non-positive-int.d.mts +10 -0
- package/dist/number/operators/non-positive-int.d.mts.map +1 -0
- package/dist/number/operators/non-positive-int.mjs +8 -0
- package/dist/number/operators/non-positive-int.mjs.map +1 -0
- package/dist/number/operators/non-positive-safe-int.d.mts +10 -0
- package/dist/number/operators/non-positive-safe-int.d.mts.map +1 -0
- package/dist/number/operators/non-positive-safe-int.mjs +8 -0
- package/dist/number/operators/non-positive-safe-int.mjs.map +1 -0
- package/dist/number/operators/non-zero-finite-number.d.mts +16 -0
- package/dist/number/operators/non-zero-finite-number.d.mts.map +1 -0
- package/dist/number/operators/non-zero-finite-number.mjs +8 -0
- package/dist/number/operators/non-zero-finite-number.mjs.map +1 -0
- package/dist/number/operators/non-zero-int.d.mts +10 -0
- package/dist/number/operators/non-zero-int.d.mts.map +1 -0
- package/dist/number/operators/non-zero-int.mjs +9 -0
- package/dist/number/operators/non-zero-int.mjs.map +1 -0
- package/dist/number/operators/non-zero-int16.d.mts +10 -0
- package/dist/number/operators/non-zero-int16.d.mts.map +1 -0
- package/dist/number/operators/non-zero-int16.mjs +9 -0
- package/dist/number/operators/non-zero-int16.mjs.map +1 -0
- package/dist/number/operators/non-zero-int32.d.mts +10 -0
- package/dist/number/operators/non-zero-int32.d.mts.map +1 -0
- package/dist/number/operators/non-zero-int32.mjs +9 -0
- package/dist/number/operators/non-zero-int32.mjs.map +1 -0
- package/dist/number/operators/non-zero-safe-int.d.mts +10 -0
- package/dist/number/operators/non-zero-safe-int.d.mts.map +1 -0
- package/dist/number/operators/non-zero-safe-int.mjs +11 -0
- package/dist/number/operators/non-zero-safe-int.mjs.map +1 -0
- package/dist/number/operators/non-zero-uint16.d.mts +2 -0
- package/dist/number/operators/non-zero-uint16.d.mts.map +1 -0
- package/dist/number/operators/non-zero-uint16.mjs +9 -0
- package/dist/number/operators/non-zero-uint16.mjs.map +1 -0
- package/dist/number/operators/non-zero-uint32.d.mts +2 -0
- package/dist/number/operators/non-zero-uint32.d.mts.map +1 -0
- package/dist/number/operators/non-zero-uint32.mjs +9 -0
- package/dist/number/operators/non-zero-uint32.mjs.map +1 -0
- package/dist/number/operators/positive-finite-number.d.mts +23 -0
- package/dist/number/operators/positive-finite-number.d.mts.map +1 -0
- package/dist/number/operators/positive-finite-number.mjs +7 -0
- package/dist/number/operators/positive-finite-number.mjs.map +1 -0
- package/dist/number/operators/positive-int.d.mts +23 -0
- package/dist/number/operators/positive-int.d.mts.map +1 -0
- package/dist/number/operators/positive-int.mjs +8 -0
- package/dist/number/operators/positive-int.mjs.map +1 -0
- package/dist/number/operators/positive-int16.d.mts +28 -0
- package/dist/number/operators/positive-int16.d.mts.map +1 -0
- package/dist/number/operators/positive-int16.mjs +8 -0
- package/dist/number/operators/positive-int16.mjs.map +1 -0
- package/dist/number/operators/positive-int32.d.mts +26 -0
- package/dist/number/operators/positive-int32.d.mts.map +1 -0
- package/dist/number/operators/positive-int32.mjs +8 -0
- package/dist/number/operators/positive-int32.mjs.map +1 -0
- package/dist/number/operators/positive-safe-int.d.mts +24 -0
- package/dist/number/operators/positive-safe-int.d.mts.map +1 -0
- package/dist/number/operators/positive-safe-int.mjs +9 -0
- package/dist/number/operators/positive-safe-int.mjs.map +1 -0
- package/dist/number/operators/positive-uint16.d.mts +27 -0
- package/dist/number/operators/positive-uint16.d.mts.map +1 -0
- package/dist/number/operators/positive-uint16.mjs +8 -0
- package/dist/number/operators/positive-uint16.mjs.map +1 -0
- package/dist/number/operators/positive-uint32.d.mts +25 -0
- package/dist/number/operators/positive-uint32.d.mts.map +1 -0
- package/dist/number/operators/positive-uint32.mjs +8 -0
- package/dist/number/operators/positive-uint32.mjs.map +1 -0
- package/dist/number/operators/safe-int.d.mts +17 -0
- package/dist/number/operators/safe-int.d.mts.map +1 -0
- package/dist/number/operators/safe-int.mjs +10 -0
- package/dist/number/operators/safe-int.mjs.map +1 -0
- package/dist/number/operators/safe-uint.d.mts +22 -0
- package/dist/number/operators/safe-uint.d.mts.map +1 -0
- package/dist/number/operators/safe-uint.mjs +9 -0
- package/dist/number/operators/safe-uint.mjs.map +1 -0
- package/dist/number/operators/uint.d.mts +14 -0
- package/dist/number/operators/uint.d.mts.map +1 -0
- package/dist/number/operators/uint.mjs +8 -0
- package/dist/number/operators/uint.mjs.map +1 -0
- package/dist/number/operators/uint16.d.mts +25 -0
- package/dist/number/operators/uint16.d.mts.map +1 -0
- package/dist/number/operators/uint16.mjs +8 -0
- package/dist/number/operators/uint16.mjs.map +1 -0
- package/dist/number/operators/uint32.d.mts +23 -0
- package/dist/number/operators/uint32.d.mts.map +1 -0
- package/dist/number/operators/uint32.mjs +8 -0
- package/dist/number/operators/uint32.mjs.map +1 -0
- package/dist/number/operators/uint8.d.mts +24 -0
- package/dist/number/operators/uint8.d.mts.map +1 -0
- package/dist/number/operators/uint8.mjs +8 -0
- package/dist/number/operators/uint8.mjs.map +1 -0
- package/dist/number/refined-number-utils.d.mts +2 -2
- package/dist/number/refined-number-utils.d.mts.map +1 -1
- package/dist/number/refined-number-utils.mjs +1 -1
- package/dist/number/refined-number-utils.mjs.map +1 -1
- package/dist/object/object.d.mts +8 -0
- package/dist/object/object.d.mts.map +1 -1
- package/dist/object/object.mjs +17 -5
- package/dist/object/object.mjs.map +1 -1
- package/dist/others/fast-deep-equal.mjs +1 -1
- package/dist/others/fast-deep-equal.mjs.map +1 -1
- package/dist/others/replace-equal-deep.mjs +10 -3
- package/dist/others/replace-equal-deep.mjs.map +1 -1
- package/package.json +22 -9
- package/src/array/impl/array-utils-reducing-value.mts +4 -3
- package/src/array/impl/array-utils-shape-invariants.test.mts +1 -1
- package/src/array/impl/array-utils-slice-clamped.mts +1 -1
- package/src/array/impl/array-utils-slicing.mts +12 -3
- package/src/array/impl/array-utils-transformation.mts +7 -3
- package/src/array/impl/array-utils-transformation.test.mts +52 -3
- package/src/array/impl/array-utils-validation.mts +2 -1
- package/src/built-in-tag.mts +59 -0
- package/src/built-in-tag.test.mts +215 -0
- package/src/collections/imap-mapped.mts +6 -4
- package/src/collections/imap-mapped.test.mts +27 -0
- package/src/collections/imap.mts +6 -4
- package/src/collections/imap.test.mts +13 -0
- package/src/collections/stack.mts +3 -3
- package/src/iterator/range.mts +10 -2
- package/src/iterator/range.test.mts +7 -0
- package/src/json/json.mts +17 -57
- package/src/json/json.test.mts +32 -0
- package/src/number/branded-types/finite-number.mts +23 -25
- package/src/number/branded-types/int.mts +20 -26
- package/src/number/branded-types/int16.mts +21 -26
- package/src/number/branded-types/int32.mts +21 -26
- package/src/number/branded-types/negative-finite-number.mts +25 -26
- package/src/number/branded-types/negative-int.mts +20 -27
- package/src/number/branded-types/negative-safe-int.mts +23 -28
- package/src/number/branded-types/non-negative-finite-number.mts +24 -25
- package/src/number/branded-types/non-negative-int16.mts +23 -26
- package/src/number/branded-types/non-negative-int32.mts +23 -26
- package/src/number/branded-types/non-positive-finite-number.mts +24 -25
- package/src/number/branded-types/non-positive-int.mts +20 -26
- package/src/number/branded-types/non-positive-safe-int.mts +21 -26
- package/src/number/branded-types/non-zero-finite-number.mts +23 -25
- package/src/number/branded-types/non-zero-int.mts +19 -25
- package/src/number/branded-types/non-zero-int16.mts +27 -28
- package/src/number/branded-types/non-zero-int32.mts +27 -28
- package/src/number/branded-types/non-zero-safe-int.mts +25 -35
- package/src/number/branded-types/non-zero-uint16.mts +24 -28
- package/src/number/branded-types/non-zero-uint32.mts +24 -28
- package/src/number/branded-types/positive-finite-number.mts +25 -25
- package/src/number/branded-types/positive-int.mts +21 -26
- package/src/number/branded-types/positive-int16.mts +23 -26
- package/src/number/branded-types/positive-int32.mts +23 -26
- package/src/number/branded-types/positive-safe-int.mts +24 -31
- package/src/number/branded-types/positive-uint16.mts +23 -26
- package/src/number/branded-types/positive-uint32.mts +23 -26
- package/src/number/branded-types/safe-int.mts +22 -29
- package/src/number/branded-types/safe-uint.mts +21 -27
- package/src/number/branded-types/uint.mts +21 -26
- package/src/number/branded-types/uint16.mts +21 -26
- package/src/number/branded-types/uint32.mts +21 -26
- package/src/number/enum/int8.mts +40 -52
- package/src/number/enum/uint8.mts +40 -48
- package/src/number/index.mts +1 -1
- package/src/number/num/impl/index.mts +1 -0
- package/src/number/num/impl/num.mts +715 -0
- package/src/number/{num.test.mts → num/impl/num.test.mts} +17 -5
- package/src/number/num/index.mts +16 -0
- package/src/number/num-arithmetic.test.mts +1 -1
- package/src/number/operators/finite-number.mts +20 -0
- package/src/number/operators/int.mts +20 -0
- package/src/number/operators/int16.mts +33 -0
- package/src/number/operators/int32.mts +33 -0
- package/src/number/operators/int8.mts +18 -0
- package/src/number/operators/negative-finite-number.mts +22 -0
- package/src/number/operators/negative-int.mts +22 -0
- package/src/number/operators/negative-safe-int.mts +32 -0
- package/src/number/operators/non-negative-finite-number.mts +32 -0
- package/src/number/operators/non-negative-int16.mts +33 -0
- package/src/number/operators/non-negative-int32.mts +33 -0
- package/src/number/operators/non-positive-finite-number.mts +21 -0
- package/src/number/operators/non-positive-int.mts +21 -0
- package/src/number/operators/non-positive-safe-int.mts +31 -0
- package/src/number/operators/non-zero-finite-number.mts +21 -0
- package/src/number/operators/non-zero-int.mts +22 -0
- package/src/number/operators/non-zero-int16.mts +32 -0
- package/src/number/operators/non-zero-int32.mts +32 -0
- package/src/number/operators/non-zero-safe-int.mts +34 -0
- package/src/number/operators/non-zero-uint16.mts +32 -0
- package/src/number/operators/non-zero-uint32.mts +32 -0
- package/src/number/operators/positive-finite-number.mts +32 -0
- package/src/number/operators/positive-int.mts +32 -0
- package/src/number/operators/positive-int16.mts +33 -0
- package/src/number/operators/positive-int32.mts +33 -0
- package/src/number/operators/positive-safe-int.mts +34 -0
- package/src/number/operators/positive-uint16.mts +33 -0
- package/src/number/operators/positive-uint32.mts +33 -0
- package/src/number/operators/safe-int.mts +35 -0
- package/src/number/operators/safe-uint.mts +33 -0
- package/src/number/operators/uint.mts +31 -0
- package/src/number/operators/uint16.mts +32 -0
- package/src/number/operators/uint32.mts +32 -0
- package/src/number/operators/uint8.mts +16 -0
- package/src/number/refined-number-utils.mts +4 -4
- package/src/object/object.mts +33 -5
- package/src/object/object.test.mts +55 -0
- package/src/others/fast-deep-equal.mts +1 -1
- package/src/others/replace-equal-deep.mts +11 -4
- package/src/others/replace-equal-deep.test.mts +26 -0
- package/dist/number/num.d.mts +0 -546
- package/dist/number/num.d.mts.map +0 -1
- package/dist/number/num.mjs +0 -559
- package/dist/number/num.mjs.map +0 -1
- package/src/guard/is-error.test.mts +0 -145
- package/src/number/num.mts +0 -731
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const MAX_VALUE: number, MIN_VALUE: 1, add: (x: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint16>, y: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint16>) => import("ts-type-forge").PositiveUint16, fromNumber: (x: number) => import("ts-type-forge").PositiveUint16, is: (a: number) => a is import("ts-type-forge").PositiveUint16, max: (...values: readonly import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint16>[]) => import("ts-type-forge").PositiveUint16, min: (...values: readonly import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint16>[]) => import("ts-type-forge").PositiveUint16, mul: (x: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint16>, y: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint16>) => import("ts-type-forge").PositiveUint16, pow: (x: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint16>, y: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint16>) => import("ts-type-forge").PositiveUint16, randomNonZero: (min?: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint16> | undefined, max?: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint16> | undefined) => import("ts-type-forge").PositiveUint16;
|
|
2
|
+
//# sourceMappingURL=non-zero-uint16.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-zero-uint16.d.mts","sourceRoot":"","sources":["../../../src/number/operators/non-zero-uint16.mts"],"names":[],"mappings":"AAUA,eAAO,MACL,SAAS,UACT,SAAS,KACT,GAAG,gNACH,UAAU,yDACV,EAAE,8DACF,GAAG,kJACH,GAAG,kJACH,GAAG,gNACH,GAAG,gNACH,aAAa,4OAWJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TsDataForgeInternals } from '../refined-number-utils.mjs';
|
|
2
|
+
export const { MAX_VALUE, MIN_VALUE, add, fromNumber, is, max, min, mul, pow, randomNonZero, } = TsDataForgeInternals.RefinedNumberUtils.operatorsForInteger({
|
|
3
|
+
integerOrSafeInteger: 'SafeInteger',
|
|
4
|
+
nonZero: true,
|
|
5
|
+
MIN_VALUE: 1,
|
|
6
|
+
MAX_VALUE: 2 ** 16 - 1,
|
|
7
|
+
typeNameInMessage: 'a non-zero integer in [1, 2^16)',
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=non-zero-uint16.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-zero-uint16.mjs","sourceRoot":"","sources":["../../../src/number/operators/non-zero-uint16.mts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,CAAC,MAAM,EACX,SAAS,EACT,SAAS,EACT,GAAG,EACH,UAAU,EACV,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,aAAa,GACd,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;IACA,oBAAoB,EAAE,aAAa;IACnC,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;IACtB,iBAAiB,EAAE,iCAAiC;CAC5C,CAAC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const MAX_VALUE: number, MIN_VALUE: 1, add: (x: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint32>, y: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint32>) => import("ts-type-forge").PositiveUint32, fromNumber: (x: number) => import("ts-type-forge").PositiveUint32, is: (a: number) => a is import("ts-type-forge").PositiveUint32, max: (...values: readonly import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint32>[]) => import("ts-type-forge").PositiveUint32, min: (...values: readonly import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint32>[]) => import("ts-type-forge").PositiveUint32, mul: (x: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint32>, y: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint32>) => import("ts-type-forge").PositiveUint32, pow: (x: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint32>, y: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint32>) => import("ts-type-forge").PositiveUint32, randomNonZero: (min?: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint32> | undefined, max?: import("ts-type-forge").WithSmallInt<import("ts-type-forge").PositiveUint32> | undefined) => import("ts-type-forge").PositiveUint32;
|
|
2
|
+
//# sourceMappingURL=non-zero-uint32.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-zero-uint32.d.mts","sourceRoot":"","sources":["../../../src/number/operators/non-zero-uint32.mts"],"names":[],"mappings":"AAUA,eAAO,MACL,SAAS,UACT,SAAS,KACT,GAAG,gNACH,UAAU,yDACV,EAAE,8DACF,GAAG,kJACH,GAAG,kJACH,GAAG,gNACH,GAAG,gNACH,aAAa,4OAWJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TsDataForgeInternals } from '../refined-number-utils.mjs';
|
|
2
|
+
export const { MAX_VALUE, MIN_VALUE, add, fromNumber, is, max, min, mul, pow, randomNonZero, } = TsDataForgeInternals.RefinedNumberUtils.operatorsForInteger({
|
|
3
|
+
integerOrSafeInteger: 'SafeInteger',
|
|
4
|
+
nonZero: true,
|
|
5
|
+
MIN_VALUE: 1,
|
|
6
|
+
MAX_VALUE: 2 ** 32 - 1,
|
|
7
|
+
typeNameInMessage: 'a non-zero integer in [1, 2^32)',
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=non-zero-uint32.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-zero-uint32.mjs","sourceRoot":"","sources":["../../../src/number/operators/non-zero-uint32.mts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,CAAC,MAAM,EACX,SAAS,EACT,SAAS,EACT,GAAG,EACH,UAAU,EACV,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,aAAa,GACd,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;IACA,oBAAoB,EAAE,aAAa;IACnC,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;IACtB,iBAAiB,EAAE,iCAAiC;CAC5C,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The operators of `PositiveFiniteNumber` other than `isPositiveFiniteNumber`
|
|
3
|
+
* and `asPositiveFiniteNumber`, which
|
|
4
|
+
* `../branded-types/positive-finite-number.mts` reads. Generated by
|
|
5
|
+
* `gen:branded-number`; `renderModule` in
|
|
6
|
+
* `scripts/gen-branded-number/render.mts` says why they are in a module of
|
|
7
|
+
* their own.
|
|
8
|
+
*/
|
|
9
|
+
import type { PositiveFiniteNumber } from 'ts-type-forge';
|
|
10
|
+
export declare const MIN_VALUE: number, add: (x: PositiveFiniteNumber, y: PositiveFiniteNumber) => PositiveFiniteNumber, div: (x: PositiveFiniteNumber, y: number & {
|
|
11
|
+
readonly "!=0": true;
|
|
12
|
+
readonly "<=0": false;
|
|
13
|
+
readonly "> -2^16": true;
|
|
14
|
+
readonly "> -2^32": true;
|
|
15
|
+
readonly ">= -2^15": true;
|
|
16
|
+
readonly ">= -2^31": true;
|
|
17
|
+
readonly ">=0": true;
|
|
18
|
+
readonly Finite: true;
|
|
19
|
+
readonly NaNValue: false;
|
|
20
|
+
} & Readonly<{
|
|
21
|
+
'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
|
|
22
|
+
}>) => PositiveFiniteNumber, fromNumber: (x: number) => PositiveFiniteNumber, is: (a: number) => a is PositiveFiniteNumber, max: (...values: readonly PositiveFiniteNumber[]) => PositiveFiniteNumber, min: (...values: readonly PositiveFiniteNumber[]) => PositiveFiniteNumber, mul: (x: PositiveFiniteNumber, y: PositiveFiniteNumber) => PositiveFiniteNumber, pow: (x: PositiveFiniteNumber, y: PositiveFiniteNumber) => PositiveFiniteNumber, random: (min?: PositiveFiniteNumber | undefined, max?: PositiveFiniteNumber | undefined) => PositiveFiniteNumber, sub: (x: PositiveFiniteNumber, y: PositiveFiniteNumber) => PositiveFiniteNumber;
|
|
23
|
+
//# sourceMappingURL=positive-finite-number.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positive-finite-number.d.mts","sourceRoot":"","sources":["../../../src/number/operators/positive-finite-number.mts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAG1D,eAAO,MACL,SAAS,UACT,GAAG,8EACH,GAAG;;;;;;;;;;;;6BACH,UAAU,uCACV,EAAE,4CACF,GAAG,wEACH,GAAG,wEACH,GAAG,8EACH,GAAG,8EACH,MAAM,4GACN,GAAG,4EASM,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TsDataForgeInternals } from '../refined-number-utils.mjs';
|
|
2
|
+
export const { MIN_VALUE, add, div, fromNumber, is, max, min, mul, pow, random, sub, } = TsDataForgeInternals.RefinedNumberUtils.operatorsForFloat({
|
|
3
|
+
MIN_VALUE: Number.MIN_VALUE,
|
|
4
|
+
MAX_VALUE: Number.MAX_VALUE,
|
|
5
|
+
typeNameInMessage: 'a positive finite number',
|
|
6
|
+
});
|
|
7
|
+
//# sourceMappingURL=positive-finite-number.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positive-finite-number.mjs","sourceRoot":"","sources":["../../../src/number/operators/positive-finite-number.mts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,CAAC,MAAM,EACX,SAAS,EACT,GAAG,EACH,GAAG,EACH,UAAU,EACV,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,iBAAiB,CAI3D;IACA,SAAS,EAAE,MAAM,CAAC,SAAS;IAC3B,SAAS,EAAE,MAAM,CAAC,SAAS;IAC3B,iBAAiB,EAAE,0BAA0B;CACrC,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The operators of `PositiveInt` other than `isPositiveInt` and
|
|
3
|
+
* `asPositiveInt`, which `../branded-types/positive-int.mts` reads. Generated
|
|
4
|
+
* by `gen:branded-number`; `renderModule` in
|
|
5
|
+
* `scripts/gen-branded-number/render.mts` says why they are in a module of
|
|
6
|
+
* their own.
|
|
7
|
+
*/
|
|
8
|
+
import type { PositiveInt } from 'ts-type-forge';
|
|
9
|
+
export declare const MIN_VALUE: 1, add: (x: import("ts-type-forge").WithSmallInt<PositiveInt>, y: import("ts-type-forge").WithSmallInt<PositiveInt>) => PositiveInt, div: (x: import("ts-type-forge").WithSmallInt<PositiveInt>, y: import("ts-type-forge").RelaxedExclude<-40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39, -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0> | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
10
|
+
readonly "!=0": true;
|
|
11
|
+
readonly "<=0": false;
|
|
12
|
+
readonly "> -2^16": true;
|
|
13
|
+
readonly "> -2^32": true;
|
|
14
|
+
readonly ">= -2^15": true;
|
|
15
|
+
readonly ">= -2^31": true;
|
|
16
|
+
readonly ">=0": true;
|
|
17
|
+
readonly Finite: true;
|
|
18
|
+
readonly Int: true;
|
|
19
|
+
readonly NaNValue: false;
|
|
20
|
+
} & Readonly<{
|
|
21
|
+
'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
|
|
22
|
+
}>>) => PositiveInt, fromNumber: (x: number) => PositiveInt, is: (a: number) => a is PositiveInt, max: (...values: readonly import("ts-type-forge").WithSmallInt<PositiveInt>[]) => PositiveInt, min: (...values: readonly import("ts-type-forge").WithSmallInt<PositiveInt>[]) => PositiveInt, mul: (x: import("ts-type-forge").WithSmallInt<PositiveInt>, y: import("ts-type-forge").WithSmallInt<PositiveInt>) => PositiveInt, pow: (x: import("ts-type-forge").WithSmallInt<PositiveInt>, y: import("ts-type-forge").WithSmallInt<PositiveInt>) => PositiveInt, random: (min?: import("ts-type-forge").WithSmallInt<PositiveInt> | undefined, max?: import("ts-type-forge").WithSmallInt<PositiveInt> | undefined) => PositiveInt, sub: (x: import("ts-type-forge").WithSmallInt<PositiveInt>, y: import("ts-type-forge").WithSmallInt<PositiveInt>) => PositiveInt;
|
|
23
|
+
//# sourceMappingURL=positive-int.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positive-int.d.mts","sourceRoot":"","sources":["../../../src/number/operators/positive-int.mts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjD,eAAO,MACL,SAAS,KACT,GAAG,+HACH,GAAG;;;;;;;;;;;;;qBACH,UAAU,8BACV,EAAE,mCACF,GAAG,4FACH,GAAG,4FACH,GAAG,+HACH,GAAG,+HACH,MAAM,6JACN,GAAG,6HAUM,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TsDataForgeInternals } from '../refined-number-utils.mjs';
|
|
2
|
+
export const { MIN_VALUE, add, div, fromNumber, is, max, min, mul, pow, random, sub, } = TsDataForgeInternals.RefinedNumberUtils.operatorsForInteger({
|
|
3
|
+
integerOrSafeInteger: 'Integer',
|
|
4
|
+
MIN_VALUE: 1,
|
|
5
|
+
MAX_VALUE: Number.MAX_VALUE,
|
|
6
|
+
typeNameInMessage: 'a positive integer',
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=positive-int.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positive-int.mjs","sourceRoot":"","sources":["../../../src/number/operators/positive-int.mts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,CAAC,MAAM,EACX,SAAS,EACT,GAAG,EACH,GAAG,EACH,UAAU,EACV,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;IACA,oBAAoB,EAAE,SAAS;IAC/B,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC,SAAS;IAC3B,iBAAiB,EAAE,oBAAoB;CAC/B,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The operators of `PositiveInt16` other than `isPositiveInt16` and
|
|
3
|
+
* `asPositiveInt16`, which `../branded-types/positive-int16.mts` reads.
|
|
4
|
+
* Generated by `gen:branded-number`; `renderModule` in
|
|
5
|
+
* `scripts/gen-branded-number/render.mts` says why they are in a module of
|
|
6
|
+
* their own.
|
|
7
|
+
*/
|
|
8
|
+
import type { PositiveInt16 } from 'ts-type-forge';
|
|
9
|
+
export declare const MAX_VALUE: number, MIN_VALUE: 1, add: (x: import("ts-type-forge").WithSmallInt<PositiveInt16>, y: import("ts-type-forge").WithSmallInt<PositiveInt16>) => PositiveInt16, div: (x: import("ts-type-forge").WithSmallInt<PositiveInt16>, y: import("ts-type-forge").RelaxedExclude<-40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39, -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0> | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
10
|
+
readonly "!=0": true;
|
|
11
|
+
readonly "< 2^15": true;
|
|
12
|
+
readonly "< 2^16": true;
|
|
13
|
+
readonly "< 2^31": true;
|
|
14
|
+
readonly "< 2^32": true;
|
|
15
|
+
readonly "<=0": false;
|
|
16
|
+
readonly "> -2^16": true;
|
|
17
|
+
readonly "> -2^32": true;
|
|
18
|
+
readonly ">= -2^15": true;
|
|
19
|
+
readonly ">= -2^31": true;
|
|
20
|
+
readonly ">=0": true;
|
|
21
|
+
readonly Finite: true;
|
|
22
|
+
readonly Int: true;
|
|
23
|
+
readonly NaNValue: false;
|
|
24
|
+
readonly SafeInt: true;
|
|
25
|
+
} & Readonly<{
|
|
26
|
+
'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
|
|
27
|
+
}>>) => PositiveInt16, fromNumber: (x: number) => PositiveInt16, is: (a: number) => a is PositiveInt16, max: (...values: readonly import("ts-type-forge").WithSmallInt<PositiveInt16>[]) => PositiveInt16, min: (...values: readonly import("ts-type-forge").WithSmallInt<PositiveInt16>[]) => PositiveInt16, mul: (x: import("ts-type-forge").WithSmallInt<PositiveInt16>, y: import("ts-type-forge").WithSmallInt<PositiveInt16>) => PositiveInt16, pow: (x: import("ts-type-forge").WithSmallInt<PositiveInt16>, y: import("ts-type-forge").WithSmallInt<PositiveInt16>) => PositiveInt16, random: (min?: import("ts-type-forge").WithSmallInt<PositiveInt16> | undefined, max?: import("ts-type-forge").WithSmallInt<PositiveInt16> | undefined) => PositiveInt16, sub: (x: import("ts-type-forge").WithSmallInt<PositiveInt16>, y: import("ts-type-forge").WithSmallInt<PositiveInt16>) => PositiveInt16;
|
|
28
|
+
//# sourceMappingURL=positive-int16.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positive-int16.d.mts","sourceRoot":"","sources":["../../../src/number/operators/positive-int16.mts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnD,eAAO,MACL,SAAS,UACT,SAAS,KACT,GAAG,qIACH,GAAG;;;;;;;;;;;;;;;;;;uBACH,UAAU,gCACV,EAAE,qCACF,GAAG,gGACH,GAAG,gGACH,GAAG,qIACH,GAAG,qIACH,MAAM,mKACN,GAAG,mIAUM,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TsDataForgeInternals } from '../refined-number-utils.mjs';
|
|
2
|
+
export const { MAX_VALUE, MIN_VALUE, add, div, fromNumber, is, max, min, mul, pow, random, sub, } = TsDataForgeInternals.RefinedNumberUtils.operatorsForInteger({
|
|
3
|
+
integerOrSafeInteger: 'SafeInteger',
|
|
4
|
+
MIN_VALUE: 1,
|
|
5
|
+
MAX_VALUE: 2 ** 15 - 1,
|
|
6
|
+
typeNameInMessage: 'a positive integer in [1, 2^15)',
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=positive-int16.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positive-int16.mjs","sourceRoot":"","sources":["../../../src/number/operators/positive-int16.mts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,CAAC,MAAM,EACX,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,UAAU,EACV,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;IACA,oBAAoB,EAAE,aAAa;IACnC,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;IACtB,iBAAiB,EAAE,iCAAiC;CAC5C,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The operators of `PositiveInt32` other than `isPositiveInt32` and
|
|
3
|
+
* `asPositiveInt32`, which `../branded-types/positive-int32.mts` reads.
|
|
4
|
+
* Generated by `gen:branded-number`; `renderModule` in
|
|
5
|
+
* `scripts/gen-branded-number/render.mts` says why they are in a module of
|
|
6
|
+
* their own.
|
|
7
|
+
*/
|
|
8
|
+
import type { PositiveInt32 } from 'ts-type-forge';
|
|
9
|
+
export declare const MAX_VALUE: number, MIN_VALUE: 1, add: (x: import("ts-type-forge").WithSmallInt<PositiveInt32>, y: import("ts-type-forge").WithSmallInt<PositiveInt32>) => PositiveInt32, div: (x: import("ts-type-forge").WithSmallInt<PositiveInt32>, y: import("ts-type-forge").RelaxedExclude<-40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39, -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0> | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
10
|
+
readonly "!=0": true;
|
|
11
|
+
readonly "< 2^31": true;
|
|
12
|
+
readonly "< 2^32": true;
|
|
13
|
+
readonly "<=0": false;
|
|
14
|
+
readonly "> -2^16": true;
|
|
15
|
+
readonly "> -2^32": true;
|
|
16
|
+
readonly ">= -2^15": true;
|
|
17
|
+
readonly ">= -2^31": true;
|
|
18
|
+
readonly ">=0": true;
|
|
19
|
+
readonly Finite: true;
|
|
20
|
+
readonly Int: true;
|
|
21
|
+
readonly NaNValue: false;
|
|
22
|
+
readonly SafeInt: true;
|
|
23
|
+
} & Readonly<{
|
|
24
|
+
'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
|
|
25
|
+
}>>) => PositiveInt32, fromNumber: (x: number) => PositiveInt32, is: (a: number) => a is PositiveInt32, max: (...values: readonly import("ts-type-forge").WithSmallInt<PositiveInt32>[]) => PositiveInt32, min: (...values: readonly import("ts-type-forge").WithSmallInt<PositiveInt32>[]) => PositiveInt32, mul: (x: import("ts-type-forge").WithSmallInt<PositiveInt32>, y: import("ts-type-forge").WithSmallInt<PositiveInt32>) => PositiveInt32, pow: (x: import("ts-type-forge").WithSmallInt<PositiveInt32>, y: import("ts-type-forge").WithSmallInt<PositiveInt32>) => PositiveInt32, random: (min?: import("ts-type-forge").WithSmallInt<PositiveInt32> | undefined, max?: import("ts-type-forge").WithSmallInt<PositiveInt32> | undefined) => PositiveInt32, sub: (x: import("ts-type-forge").WithSmallInt<PositiveInt32>, y: import("ts-type-forge").WithSmallInt<PositiveInt32>) => PositiveInt32;
|
|
26
|
+
//# sourceMappingURL=positive-int32.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positive-int32.d.mts","sourceRoot":"","sources":["../../../src/number/operators/positive-int32.mts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnD,eAAO,MACL,SAAS,UACT,SAAS,KACT,GAAG,qIACH,GAAG;;;;;;;;;;;;;;;;uBACH,UAAU,gCACV,EAAE,qCACF,GAAG,gGACH,GAAG,gGACH,GAAG,qIACH,GAAG,qIACH,MAAM,mKACN,GAAG,mIAUM,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TsDataForgeInternals } from '../refined-number-utils.mjs';
|
|
2
|
+
export const { MAX_VALUE, MIN_VALUE, add, div, fromNumber, is, max, min, mul, pow, random, sub, } = TsDataForgeInternals.RefinedNumberUtils.operatorsForInteger({
|
|
3
|
+
integerOrSafeInteger: 'SafeInteger',
|
|
4
|
+
MIN_VALUE: 1,
|
|
5
|
+
MAX_VALUE: 2 ** 31 - 1,
|
|
6
|
+
typeNameInMessage: 'a positive integer in [1, 2^31)',
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=positive-int32.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positive-int32.mjs","sourceRoot":"","sources":["../../../src/number/operators/positive-int32.mts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,CAAC,MAAM,EACX,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,UAAU,EACV,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;IACA,oBAAoB,EAAE,aAAa;IACnC,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;IACtB,iBAAiB,EAAE,iCAAiC;CAC5C,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The operators of `PositiveSafeInt` other than `isPositiveSafeInt` and
|
|
3
|
+
* `asPositiveSafeInt`, which `../branded-types/positive-safe-int.mts` reads.
|
|
4
|
+
* Generated by `gen:branded-number`; `renderModule` in
|
|
5
|
+
* `scripts/gen-branded-number/render.mts` says why they are in a module of
|
|
6
|
+
* their own.
|
|
7
|
+
*/
|
|
8
|
+
import type { PositiveSafeInt, SafeUint } from 'ts-type-forge';
|
|
9
|
+
export declare const MAX_VALUE: SafeUint, MIN_VALUE: 1, add: (x: import("ts-type-forge").WithSmallInt<PositiveSafeInt>, y: import("ts-type-forge").WithSmallInt<PositiveSafeInt>) => PositiveSafeInt, div: (x: import("ts-type-forge").WithSmallInt<PositiveSafeInt>, y: import("ts-type-forge").RelaxedExclude<-40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39, -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0> | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
10
|
+
readonly "!=0": true;
|
|
11
|
+
readonly "<=0": false;
|
|
12
|
+
readonly "> -2^16": true;
|
|
13
|
+
readonly "> -2^32": true;
|
|
14
|
+
readonly ">= -2^15": true;
|
|
15
|
+
readonly ">= -2^31": true;
|
|
16
|
+
readonly ">=0": true;
|
|
17
|
+
readonly Finite: true;
|
|
18
|
+
readonly Int: true;
|
|
19
|
+
readonly NaNValue: false;
|
|
20
|
+
readonly SafeInt: true;
|
|
21
|
+
} & Readonly<{
|
|
22
|
+
'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
|
|
23
|
+
}>>) => PositiveSafeInt, fromNumber: (x: number) => PositiveSafeInt, is: (a: number) => a is PositiveSafeInt, max: (...values: readonly import("ts-type-forge").WithSmallInt<PositiveSafeInt>[]) => PositiveSafeInt, min: (...values: readonly import("ts-type-forge").WithSmallInt<PositiveSafeInt>[]) => PositiveSafeInt, mul: (x: import("ts-type-forge").WithSmallInt<PositiveSafeInt>, y: import("ts-type-forge").WithSmallInt<PositiveSafeInt>) => PositiveSafeInt, pow: (x: import("ts-type-forge").WithSmallInt<PositiveSafeInt>, y: import("ts-type-forge").WithSmallInt<PositiveSafeInt>) => PositiveSafeInt, random: (min?: import("ts-type-forge").WithSmallInt<PositiveSafeInt> | undefined, max?: import("ts-type-forge").WithSmallInt<PositiveSafeInt> | undefined) => PositiveSafeInt, sub: (x: import("ts-type-forge").WithSmallInt<PositiveSafeInt>, y: import("ts-type-forge").WithSmallInt<PositiveSafeInt>) => PositiveSafeInt;
|
|
24
|
+
//# sourceMappingURL=positive-safe-int.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positive-safe-int.d.mts","sourceRoot":"","sources":["../../../src/number/operators/positive-safe-int.mts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG/D,eAAO,MACL,SAAS,YACT,SAAS,KACT,GAAG,2IACH,GAAG;;;;;;;;;;;;;;yBACH,UAAU,kCACV,EAAE,uCACF,GAAG,oGACH,GAAG,oGACH,GAAG,2IACH,GAAG,2IACH,MAAM,yKACN,GAAG,yIAWM,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TsDataForgeInternals } from '../refined-number-utils.mjs';
|
|
2
|
+
export const { MAX_VALUE, MIN_VALUE, add, div, fromNumber, is, max, min, mul, pow, random, sub, } = TsDataForgeInternals.RefinedNumberUtils.operatorsForInteger({
|
|
3
|
+
integerOrSafeInteger: 'SafeInteger',
|
|
4
|
+
MIN_VALUE: 1,
|
|
5
|
+
|
|
6
|
+
MAX_VALUE: Number.MAX_SAFE_INTEGER,
|
|
7
|
+
typeNameInMessage: 'a positive safe integer',
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=positive-safe-int.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positive-safe-int.mjs","sourceRoot":"","sources":["../../../src/number/operators/positive-safe-int.mts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,CAAC,MAAM,EACX,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,UAAU,EACV,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;IACA,oBAAoB,EAAE,aAAa;IACnC,SAAS,EAAE,CAAC;IACZ,yGAAyG;IACzG,SAAS,EAAE,MAAM,CAAC,gBAA4B;IAC9C,iBAAiB,EAAE,yBAAyB;CACpC,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The operators of `PositiveUint16` other than `isPositiveUint16` and
|
|
3
|
+
* `asPositiveUint16`, which `../branded-types/positive-uint16.mts` reads.
|
|
4
|
+
* Generated by `gen:branded-number`; `renderModule` in
|
|
5
|
+
* `scripts/gen-branded-number/render.mts` says why they are in a module of
|
|
6
|
+
* their own.
|
|
7
|
+
*/
|
|
8
|
+
import type { PositiveUint16 } from 'ts-type-forge';
|
|
9
|
+
export declare const MAX_VALUE: number, MIN_VALUE: 1, add: (x: import("ts-type-forge").WithSmallInt<PositiveUint16>, y: import("ts-type-forge").WithSmallInt<PositiveUint16>) => PositiveUint16, div: (x: import("ts-type-forge").WithSmallInt<PositiveUint16>, y: import("ts-type-forge").RelaxedExclude<-40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39, -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0> | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
10
|
+
readonly "!=0": true;
|
|
11
|
+
readonly "< 2^16": true;
|
|
12
|
+
readonly "< 2^31": true;
|
|
13
|
+
readonly "< 2^32": true;
|
|
14
|
+
readonly "<=0": false;
|
|
15
|
+
readonly "> -2^16": true;
|
|
16
|
+
readonly "> -2^32": true;
|
|
17
|
+
readonly ">= -2^15": true;
|
|
18
|
+
readonly ">= -2^31": true;
|
|
19
|
+
readonly ">=0": true;
|
|
20
|
+
readonly Finite: true;
|
|
21
|
+
readonly Int: true;
|
|
22
|
+
readonly NaNValue: false;
|
|
23
|
+
readonly SafeInt: true;
|
|
24
|
+
} & Readonly<{
|
|
25
|
+
'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
|
|
26
|
+
}>>) => PositiveUint16, fromNumber: (x: number) => PositiveUint16, is: (a: number) => a is PositiveUint16, max: (...values: readonly import("ts-type-forge").WithSmallInt<PositiveUint16>[]) => PositiveUint16, min: (...values: readonly import("ts-type-forge").WithSmallInt<PositiveUint16>[]) => PositiveUint16, mul: (x: import("ts-type-forge").WithSmallInt<PositiveUint16>, y: import("ts-type-forge").WithSmallInt<PositiveUint16>) => PositiveUint16, pow: (x: import("ts-type-forge").WithSmallInt<PositiveUint16>, y: import("ts-type-forge").WithSmallInt<PositiveUint16>) => PositiveUint16, random: (min?: import("ts-type-forge").WithSmallInt<PositiveUint16> | undefined, max?: import("ts-type-forge").WithSmallInt<PositiveUint16> | undefined) => PositiveUint16, sub: (x: import("ts-type-forge").WithSmallInt<PositiveUint16>, y: import("ts-type-forge").WithSmallInt<PositiveUint16>) => PositiveUint16;
|
|
27
|
+
//# sourceMappingURL=positive-uint16.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positive-uint16.d.mts","sourceRoot":"","sources":["../../../src/number/operators/positive-uint16.mts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGpD,eAAO,MACL,SAAS,UACT,SAAS,KACT,GAAG,wIACH,GAAG;;;;;;;;;;;;;;;;;wBACH,UAAU,iCACV,EAAE,sCACF,GAAG,kGACH,GAAG,kGACH,GAAG,wIACH,GAAG,wIACH,MAAM,sKACN,GAAG,sIAUM,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TsDataForgeInternals } from '../refined-number-utils.mjs';
|
|
2
|
+
export const { MAX_VALUE, MIN_VALUE, add, div, fromNumber, is, max, min, mul, pow, random, sub, } = TsDataForgeInternals.RefinedNumberUtils.operatorsForInteger({
|
|
3
|
+
integerOrSafeInteger: 'SafeInteger',
|
|
4
|
+
MIN_VALUE: 1,
|
|
5
|
+
MAX_VALUE: 2 ** 16 - 1,
|
|
6
|
+
typeNameInMessage: 'a positive integer in [1, 2^16)',
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=positive-uint16.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positive-uint16.mjs","sourceRoot":"","sources":["../../../src/number/operators/positive-uint16.mts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,CAAC,MAAM,EACX,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,UAAU,EACV,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;IACA,oBAAoB,EAAE,aAAa;IACnC,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;IACtB,iBAAiB,EAAE,iCAAiC;CAC5C,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The operators of `PositiveUint32` other than `isPositiveUint32` and
|
|
3
|
+
* `asPositiveUint32`, which `../branded-types/positive-uint32.mts` reads.
|
|
4
|
+
* Generated by `gen:branded-number`; `renderModule` in
|
|
5
|
+
* `scripts/gen-branded-number/render.mts` says why they are in a module of
|
|
6
|
+
* their own.
|
|
7
|
+
*/
|
|
8
|
+
import type { PositiveUint32 } from 'ts-type-forge';
|
|
9
|
+
export declare const MAX_VALUE: number, MIN_VALUE: 1, add: (x: import("ts-type-forge").WithSmallInt<PositiveUint32>, y: import("ts-type-forge").WithSmallInt<PositiveUint32>) => PositiveUint32, div: (x: import("ts-type-forge").WithSmallInt<PositiveUint32>, y: import("ts-type-forge").RelaxedExclude<-40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39, -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0> | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
10
|
+
readonly "!=0": true;
|
|
11
|
+
readonly "< 2^32": true;
|
|
12
|
+
readonly "<=0": false;
|
|
13
|
+
readonly "> -2^16": true;
|
|
14
|
+
readonly "> -2^32": true;
|
|
15
|
+
readonly ">= -2^15": true;
|
|
16
|
+
readonly ">= -2^31": true;
|
|
17
|
+
readonly ">=0": true;
|
|
18
|
+
readonly Finite: true;
|
|
19
|
+
readonly Int: true;
|
|
20
|
+
readonly NaNValue: false;
|
|
21
|
+
readonly SafeInt: true;
|
|
22
|
+
} & Readonly<{
|
|
23
|
+
'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
|
|
24
|
+
}>>) => PositiveUint32, fromNumber: (x: number) => PositiveUint32, is: (a: number) => a is PositiveUint32, max: (...values: readonly import("ts-type-forge").WithSmallInt<PositiveUint32>[]) => PositiveUint32, min: (...values: readonly import("ts-type-forge").WithSmallInt<PositiveUint32>[]) => PositiveUint32, mul: (x: import("ts-type-forge").WithSmallInt<PositiveUint32>, y: import("ts-type-forge").WithSmallInt<PositiveUint32>) => PositiveUint32, pow: (x: import("ts-type-forge").WithSmallInt<PositiveUint32>, y: import("ts-type-forge").WithSmallInt<PositiveUint32>) => PositiveUint32, random: (min?: import("ts-type-forge").WithSmallInt<PositiveUint32> | undefined, max?: import("ts-type-forge").WithSmallInt<PositiveUint32> | undefined) => PositiveUint32, sub: (x: import("ts-type-forge").WithSmallInt<PositiveUint32>, y: import("ts-type-forge").WithSmallInt<PositiveUint32>) => PositiveUint32;
|
|
25
|
+
//# sourceMappingURL=positive-uint32.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positive-uint32.d.mts","sourceRoot":"","sources":["../../../src/number/operators/positive-uint32.mts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGpD,eAAO,MACL,SAAS,UACT,SAAS,KACT,GAAG,wIACH,GAAG;;;;;;;;;;;;;;;wBACH,UAAU,iCACV,EAAE,sCACF,GAAG,kGACH,GAAG,kGACH,GAAG,wIACH,GAAG,wIACH,MAAM,sKACN,GAAG,sIAUM,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TsDataForgeInternals } from '../refined-number-utils.mjs';
|
|
2
|
+
export const { MAX_VALUE, MIN_VALUE, add, div, fromNumber, is, max, min, mul, pow, random, sub, } = TsDataForgeInternals.RefinedNumberUtils.operatorsForInteger({
|
|
3
|
+
integerOrSafeInteger: 'SafeInteger',
|
|
4
|
+
MIN_VALUE: 1,
|
|
5
|
+
MAX_VALUE: 2 ** 32 - 1,
|
|
6
|
+
typeNameInMessage: 'a positive integer in [1, 2^32)',
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=positive-uint32.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positive-uint32.mjs","sourceRoot":"","sources":["../../../src/number/operators/positive-uint32.mts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,CAAC,MAAM,EACX,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,UAAU,EACV,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;IACA,oBAAoB,EAAE,aAAa;IACnC,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;IACtB,iBAAiB,EAAE,iCAAiC;CAC5C,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The operators of `SafeInt` other than `isSafeInt` and `asSafeInt`, which
|
|
3
|
+
* `../branded-types/safe-int.mts` reads. Generated by `gen:branded-number`;
|
|
4
|
+
* `renderModule` in `scripts/gen-branded-number/render.mts` says why they are
|
|
5
|
+
* in a module of their own.
|
|
6
|
+
*/
|
|
7
|
+
import type { SafeInt, SafeUint } from 'ts-type-forge';
|
|
8
|
+
export declare const MAX_VALUE: SafeUint, MIN_VALUE: SafeInt, abs: (x: import("ts-type-forge").WithSmallInt<SafeInt>) => import("ts-type-forge").IntersectBrand<SafeInt, import("ts-type-forge").NonNegativeNumber>, add: (x: import("ts-type-forge").WithSmallInt<SafeInt>, y: import("ts-type-forge").WithSmallInt<SafeInt>) => SafeInt, div: (x: import("ts-type-forge").WithSmallInt<SafeInt>, y: import("ts-type-forge").RelaxedExclude<-40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39, 0> | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
9
|
+
readonly "!=0": true;
|
|
10
|
+
readonly Finite: true;
|
|
11
|
+
readonly Int: true;
|
|
12
|
+
readonly NaNValue: false;
|
|
13
|
+
readonly SafeInt: true;
|
|
14
|
+
} & Readonly<{
|
|
15
|
+
'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
|
|
16
|
+
}>>) => SafeInt, fromNumber: (x: number) => SafeInt, is: (a: number) => a is SafeInt, max: (...values: readonly import("ts-type-forge").WithSmallInt<SafeInt>[]) => SafeInt, min: (...values: readonly import("ts-type-forge").WithSmallInt<SafeInt>[]) => SafeInt, mul: (x: import("ts-type-forge").WithSmallInt<SafeInt>, y: import("ts-type-forge").WithSmallInt<SafeInt>) => SafeInt, pow: (x: import("ts-type-forge").WithSmallInt<SafeInt>, y: import("ts-type-forge").WithSmallInt<SafeInt>) => SafeInt, random: (min?: import("ts-type-forge").WithSmallInt<SafeInt> | undefined, max?: import("ts-type-forge").WithSmallInt<SafeInt> | undefined) => SafeInt, sub: (x: import("ts-type-forge").WithSmallInt<SafeInt>, y: import("ts-type-forge").WithSmallInt<SafeInt>) => SafeInt;
|
|
17
|
+
//# sourceMappingURL=safe-int.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe-int.d.mts","sourceRoot":"","sources":["../../../src/number/operators/safe-int.mts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGvD,eAAO,MACL,SAAS,YACT,SAAS,WACT,GAAG,oJACH,GAAG,mHACH,GAAG;;;;;;;;iBACH,UAAU,0BACV,EAAE,+BACF,GAAG,oFACH,GAAG,oFACH,GAAG,mHACH,GAAG,mHACH,MAAM,iJACN,GAAG,iHAYM,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TsDataForgeInternals } from '../refined-number-utils.mjs';
|
|
2
|
+
export const { MAX_VALUE, MIN_VALUE, abs, add, div, fromNumber, is, max, min, mul, pow, random, sub, } = TsDataForgeInternals.RefinedNumberUtils.operatorsForInteger({
|
|
3
|
+
integerOrSafeInteger: 'SafeInteger',
|
|
4
|
+
|
|
5
|
+
MIN_VALUE: Number.MIN_SAFE_INTEGER,
|
|
6
|
+
|
|
7
|
+
MAX_VALUE: Number.MAX_SAFE_INTEGER,
|
|
8
|
+
typeNameInMessage: 'a safe integer',
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=safe-int.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe-int.mjs","sourceRoot":"","sources":["../../../src/number/operators/safe-int.mts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,CAAC,MAAM,EACX,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,GAAG,EACH,UAAU,EACV,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;IACA,oBAAoB,EAAE,aAAa;IACnC,yGAAyG;IACzG,SAAS,EAAE,MAAM,CAAC,gBAA2B;IAC7C,yGAAyG;IACzG,SAAS,EAAE,MAAM,CAAC,gBAA4B;IAC9C,iBAAiB,EAAE,gBAAgB;CAC3B,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The operators of `SafeUint` other than `isSafeUint` and `asSafeUint`, which
|
|
3
|
+
* `../branded-types/safe-uint.mts` reads. Generated by `gen:branded-number`;
|
|
4
|
+
* `renderModule` in `scripts/gen-branded-number/render.mts` says why they are
|
|
5
|
+
* in a module of their own.
|
|
6
|
+
*/
|
|
7
|
+
import type { SafeUint } from 'ts-type-forge';
|
|
8
|
+
export declare const MAX_VALUE: SafeUint, MIN_VALUE: 0, add: (x: import("ts-type-forge").WithSmallInt<SafeUint>, y: import("ts-type-forge").WithSmallInt<SafeUint>) => SafeUint, div: (x: import("ts-type-forge").WithSmallInt<SafeUint>, y: import("ts-type-forge").RelaxedExclude<-40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39, -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0> | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
9
|
+
readonly "!=0": true;
|
|
10
|
+
readonly "> -2^16": true;
|
|
11
|
+
readonly "> -2^32": true;
|
|
12
|
+
readonly ">= -2^15": true;
|
|
13
|
+
readonly ">= -2^31": true;
|
|
14
|
+
readonly ">=0": true;
|
|
15
|
+
readonly Finite: true;
|
|
16
|
+
readonly Int: true;
|
|
17
|
+
readonly NaNValue: false;
|
|
18
|
+
readonly SafeInt: true;
|
|
19
|
+
} & Readonly<{
|
|
20
|
+
'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
|
|
21
|
+
}>>) => SafeUint, fromNumber: (x: number) => SafeUint, is: (a: number) => a is SafeUint, max: (...values: readonly import("ts-type-forge").WithSmallInt<SafeUint>[]) => SafeUint, min: (...values: readonly import("ts-type-forge").WithSmallInt<SafeUint>[]) => SafeUint, mul: (x: import("ts-type-forge").WithSmallInt<SafeUint>, y: import("ts-type-forge").WithSmallInt<SafeUint>) => SafeUint, pow: (x: import("ts-type-forge").WithSmallInt<SafeUint>, y: import("ts-type-forge").WithSmallInt<SafeUint>) => SafeUint, random: (min?: import("ts-type-forge").WithSmallInt<SafeUint> | undefined, max?: import("ts-type-forge").WithSmallInt<SafeUint> | undefined) => SafeUint, sub: (x: import("ts-type-forge").WithSmallInt<SafeUint>, y: import("ts-type-forge").WithSmallInt<SafeUint>) => SafeUint;
|
|
22
|
+
//# sourceMappingURL=safe-uint.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe-uint.d.mts","sourceRoot":"","sources":["../../../src/number/operators/safe-uint.mts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG9C,eAAO,MACL,SAAS,YACT,SAAS,KACT,GAAG,sHACH,GAAG;;;;;;;;;;;;;kBACH,UAAU,2BACV,EAAE,gCACF,GAAG,sFACH,GAAG,sFACH,GAAG,sHACH,GAAG,sHACH,MAAM,oJACN,GAAG,oHAWM,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TsDataForgeInternals } from '../refined-number-utils.mjs';
|
|
2
|
+
export const { MAX_VALUE, MIN_VALUE, add, div, fromNumber, is, max, min, mul, pow, random, sub, } = TsDataForgeInternals.RefinedNumberUtils.operatorsForInteger({
|
|
3
|
+
integerOrSafeInteger: 'SafeInteger',
|
|
4
|
+
MIN_VALUE: 0,
|
|
5
|
+
|
|
6
|
+
MAX_VALUE: Number.MAX_SAFE_INTEGER,
|
|
7
|
+
typeNameInMessage: 'a non-negative safe integer',
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=safe-uint.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe-uint.mjs","sourceRoot":"","sources":["../../../src/number/operators/safe-uint.mts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,CAAC,MAAM,EACX,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,UAAU,EACV,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;IACA,oBAAoB,EAAE,aAAa;IACnC,SAAS,EAAE,CAAC;IACZ,yGAAyG;IACzG,SAAS,EAAE,MAAM,CAAC,gBAA4B;IAC9C,iBAAiB,EAAE,6BAA6B;CACxC,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const MIN_VALUE: 0, add: (x: import("ts-type-forge").WithSmallInt<import("ts-type-forge").NonNegativeInt>, y: import("ts-type-forge").WithSmallInt<import("ts-type-forge").NonNegativeInt>) => import("ts-type-forge").NonNegativeInt, div: (x: import("ts-type-forge").WithSmallInt<import("ts-type-forge").NonNegativeInt>, y: import("ts-type-forge").RelaxedExclude<-40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39, -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0> | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
2
|
+
readonly "!=0": true;
|
|
3
|
+
readonly "> -2^16": true;
|
|
4
|
+
readonly "> -2^32": true;
|
|
5
|
+
readonly ">= -2^15": true;
|
|
6
|
+
readonly ">= -2^31": true;
|
|
7
|
+
readonly ">=0": true;
|
|
8
|
+
readonly Finite: true;
|
|
9
|
+
readonly Int: true;
|
|
10
|
+
readonly NaNValue: false;
|
|
11
|
+
} & Readonly<{
|
|
12
|
+
'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
|
|
13
|
+
}>>) => import("ts-type-forge").NonNegativeInt, fromNumber: (x: number) => import("ts-type-forge").NonNegativeInt, is: (a: number) => a is import("ts-type-forge").NonNegativeInt, max: (...values: readonly import("ts-type-forge").WithSmallInt<import("ts-type-forge").NonNegativeInt>[]) => import("ts-type-forge").NonNegativeInt, min: (...values: readonly import("ts-type-forge").WithSmallInt<import("ts-type-forge").NonNegativeInt>[]) => import("ts-type-forge").NonNegativeInt, mul: (x: import("ts-type-forge").WithSmallInt<import("ts-type-forge").NonNegativeInt>, y: import("ts-type-forge").WithSmallInt<import("ts-type-forge").NonNegativeInt>) => import("ts-type-forge").NonNegativeInt, pow: (x: import("ts-type-forge").WithSmallInt<import("ts-type-forge").NonNegativeInt>, y: import("ts-type-forge").WithSmallInt<import("ts-type-forge").NonNegativeInt>) => import("ts-type-forge").NonNegativeInt, random: (min?: import("ts-type-forge").WithSmallInt<import("ts-type-forge").NonNegativeInt> | undefined, max?: import("ts-type-forge").WithSmallInt<import("ts-type-forge").NonNegativeInt> | undefined) => import("ts-type-forge").NonNegativeInt, sub: (x: import("ts-type-forge").WithSmallInt<import("ts-type-forge").NonNegativeInt>, y: import("ts-type-forge").WithSmallInt<import("ts-type-forge").NonNegativeInt>) => import("ts-type-forge").NonNegativeInt;
|
|
14
|
+
//# sourceMappingURL=uint.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uint.d.mts","sourceRoot":"","sources":["../../../src/number/operators/uint.mts"],"names":[],"mappings":"AASA,eAAO,MACL,SAAS,KACT,GAAG,gNACH,GAAG;;;;;;;;;;;;gDACH,UAAU,yDACV,EAAE,8DACF,GAAG,kJACH,GAAG,kJACH,GAAG,gNACH,GAAG,gNACH,MAAM,8OACN,GAAG,8MAUM,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TsDataForgeInternals } from '../refined-number-utils.mjs';
|
|
2
|
+
export const { MIN_VALUE, add, div, fromNumber, is, max, min, mul, pow, random, sub, } = TsDataForgeInternals.RefinedNumberUtils.operatorsForInteger({
|
|
3
|
+
integerOrSafeInteger: 'Integer',
|
|
4
|
+
MIN_VALUE: 0,
|
|
5
|
+
MAX_VALUE: Number.MAX_VALUE,
|
|
6
|
+
typeNameInMessage: 'a non-negative integer',
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=uint.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uint.mjs","sourceRoot":"","sources":["../../../src/number/operators/uint.mts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,CAAC,MAAM,EACX,SAAS,EACT,GAAG,EACH,GAAG,EACH,UAAU,EACV,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;IACA,oBAAoB,EAAE,SAAS;IAC/B,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC,SAAS;IAC3B,iBAAiB,EAAE,wBAAwB;CACnC,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The operators of `Uint16` other than `isUint16` and `asUint16`, which
|
|
3
|
+
* `../branded-types/uint16.mts` reads. Generated by `gen:branded-number`;
|
|
4
|
+
* `renderModule` in `scripts/gen-branded-number/render.mts` says why they are
|
|
5
|
+
* in a module of their own.
|
|
6
|
+
*/
|
|
7
|
+
import type { Uint16 } from 'ts-type-forge';
|
|
8
|
+
export declare const MAX_VALUE: number, MIN_VALUE: 0, add: (x: import("ts-type-forge").WithSmallInt<Uint16>, y: import("ts-type-forge").WithSmallInt<Uint16>) => Uint16, div: (x: import("ts-type-forge").WithSmallInt<Uint16>, y: import("ts-type-forge").RelaxedExclude<-40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39, -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0> | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
9
|
+
readonly "!=0": true;
|
|
10
|
+
readonly "< 2^16": true;
|
|
11
|
+
readonly "< 2^31": true;
|
|
12
|
+
readonly "< 2^32": true;
|
|
13
|
+
readonly "> -2^16": true;
|
|
14
|
+
readonly "> -2^32": true;
|
|
15
|
+
readonly ">= -2^15": true;
|
|
16
|
+
readonly ">= -2^31": true;
|
|
17
|
+
readonly ">=0": true;
|
|
18
|
+
readonly Finite: true;
|
|
19
|
+
readonly Int: true;
|
|
20
|
+
readonly NaNValue: false;
|
|
21
|
+
readonly SafeInt: true;
|
|
22
|
+
} & Readonly<{
|
|
23
|
+
'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
|
|
24
|
+
}>>) => Uint16, fromNumber: (x: number) => Uint16, is: (a: number) => a is Uint16, max: (...values: readonly import("ts-type-forge").WithSmallInt<Uint16>[]) => Uint16, min: (...values: readonly import("ts-type-forge").WithSmallInt<Uint16>[]) => Uint16, mul: (x: import("ts-type-forge").WithSmallInt<Uint16>, y: import("ts-type-forge").WithSmallInt<Uint16>) => Uint16, pow: (x: import("ts-type-forge").WithSmallInt<Uint16>, y: import("ts-type-forge").WithSmallInt<Uint16>) => Uint16, random: (min?: import("ts-type-forge").WithSmallInt<Uint16> | undefined, max?: import("ts-type-forge").WithSmallInt<Uint16> | undefined) => Uint16, sub: (x: import("ts-type-forge").WithSmallInt<Uint16>, y: import("ts-type-forge").WithSmallInt<Uint16>) => Uint16;
|
|
25
|
+
//# sourceMappingURL=uint16.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uint16.d.mts","sourceRoot":"","sources":["../../../src/number/operators/uint16.mts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAG5C,eAAO,MACL,SAAS,UACT,SAAS,KACT,GAAG,gHACH,GAAG;;;;;;;;;;;;;;;;gBACH,UAAU,yBACV,EAAE,8BACF,GAAG,kFACH,GAAG,kFACH,GAAG,gHACH,GAAG,gHACH,MAAM,8IACN,GAAG,8GAUM,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TsDataForgeInternals } from '../refined-number-utils.mjs';
|
|
2
|
+
export const { MAX_VALUE, MIN_VALUE, add, div, fromNumber, is, max, min, mul, pow, random, sub, } = TsDataForgeInternals.RefinedNumberUtils.operatorsForInteger({
|
|
3
|
+
integerOrSafeInteger: 'SafeInteger',
|
|
4
|
+
MIN_VALUE: 0,
|
|
5
|
+
MAX_VALUE: 2 ** 16 - 1,
|
|
6
|
+
typeNameInMessage: 'a non-negative integer less than 2^16',
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=uint16.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uint16.mjs","sourceRoot":"","sources":["../../../src/number/operators/uint16.mts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,CAAC,MAAM,EACX,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,UAAU,EACV,EAAE,EACF,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;IACA,oBAAoB,EAAE,aAAa;IACnC,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;IACtB,iBAAiB,EAAE,uCAAuC;CAClD,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The operators of `Uint32` other than `isUint32` and `asUint32`, which
|
|
3
|
+
* `../branded-types/uint32.mts` reads. Generated by `gen:branded-number`;
|
|
4
|
+
* `renderModule` in `scripts/gen-branded-number/render.mts` says why they are
|
|
5
|
+
* in a module of their own.
|
|
6
|
+
*/
|
|
7
|
+
import type { Uint32 } from 'ts-type-forge';
|
|
8
|
+
export declare const MAX_VALUE: number, MIN_VALUE: 0, add: (x: import("ts-type-forge").WithSmallInt<Uint32>, y: import("ts-type-forge").WithSmallInt<Uint32>) => Uint32, div: (x: import("ts-type-forge").WithSmallInt<Uint32>, y: import("ts-type-forge").RelaxedExclude<-40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39, -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0> | import("ts-type-forge").NormalizeBrandUnion<number & {
|
|
9
|
+
readonly "!=0": true;
|
|
10
|
+
readonly "< 2^32": true;
|
|
11
|
+
readonly "> -2^16": true;
|
|
12
|
+
readonly "> -2^32": true;
|
|
13
|
+
readonly ">= -2^15": true;
|
|
14
|
+
readonly ">= -2^31": true;
|
|
15
|
+
readonly ">=0": true;
|
|
16
|
+
readonly Finite: true;
|
|
17
|
+
readonly Int: true;
|
|
18
|
+
readonly NaNValue: false;
|
|
19
|
+
readonly SafeInt: true;
|
|
20
|
+
} & Readonly<{
|
|
21
|
+
'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
|
|
22
|
+
}>>) => Uint32, fromNumber: (x: number) => Uint32, is: (a: number) => a is Uint32, max: (...values: readonly import("ts-type-forge").WithSmallInt<Uint32>[]) => Uint32, min: (...values: readonly import("ts-type-forge").WithSmallInt<Uint32>[]) => Uint32, mul: (x: import("ts-type-forge").WithSmallInt<Uint32>, y: import("ts-type-forge").WithSmallInt<Uint32>) => Uint32, pow: (x: import("ts-type-forge").WithSmallInt<Uint32>, y: import("ts-type-forge").WithSmallInt<Uint32>) => Uint32, random: (min?: import("ts-type-forge").WithSmallInt<Uint32> | undefined, max?: import("ts-type-forge").WithSmallInt<Uint32> | undefined) => Uint32, sub: (x: import("ts-type-forge").WithSmallInt<Uint32>, y: import("ts-type-forge").WithSmallInt<Uint32>) => Uint32;
|
|
23
|
+
//# sourceMappingURL=uint32.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uint32.d.mts","sourceRoot":"","sources":["../../../src/number/operators/uint32.mts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAG5C,eAAO,MACL,SAAS,UACT,SAAS,KACT,GAAG,gHACH,GAAG;;;;;;;;;;;;;;gBACH,UAAU,yBACV,EAAE,8BACF,GAAG,kFACH,GAAG,kFACH,GAAG,gHACH,GAAG,gHACH,MAAM,8IACN,GAAG,8GAUM,CAAC"}
|