ts-data-forge 6.13.1 → 7.0.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.
Files changed (174) hide show
  1. package/README.md +2 -2
  2. package/dist/array/impl/array-utils-iterators.mjs +6 -0
  3. package/dist/array/impl/array-utils-iterators.mjs.map +1 -1
  4. package/dist/array/impl/array-utils-modification.mjs +6 -0
  5. package/dist/array/impl/array-utils-modification.mjs.map +1 -1
  6. package/dist/array/impl/array-utils-reducing-value.mjs +6 -0
  7. package/dist/array/impl/array-utils-reducing-value.mjs.map +1 -1
  8. package/dist/array/impl/array-utils-search.mjs +6 -0
  9. package/dist/array/impl/array-utils-search.mjs.map +1 -1
  10. package/dist/array/impl/array-utils-slice-clamped.mjs +6 -0
  11. package/dist/array/impl/array-utils-slice-clamped.mjs.map +1 -1
  12. package/dist/array/impl/array-utils-slicing.mjs +6 -0
  13. package/dist/array/impl/array-utils-slicing.mjs.map +1 -1
  14. package/dist/array/impl/array-utils-transformation.mjs +6 -0
  15. package/dist/array/impl/array-utils-transformation.mjs.map +1 -1
  16. package/dist/array/impl/array-utils-validation.mjs +6 -0
  17. package/dist/array/impl/array-utils-validation.mjs.map +1 -1
  18. package/dist/collections/imap-mapped.mjs +6 -0
  19. package/dist/collections/imap-mapped.mjs.map +1 -1
  20. package/dist/collections/imap.mjs +6 -0
  21. package/dist/collections/imap.mjs.map +1 -1
  22. package/dist/collections/iset-mapped.mjs +6 -0
  23. package/dist/collections/iset-mapped.mjs.map +1 -1
  24. package/dist/collections/iset.mjs +6 -0
  25. package/dist/collections/iset.mjs.map +1 -1
  26. package/dist/collections/queue.mjs +6 -0
  27. package/dist/collections/queue.mjs.map +1 -1
  28. package/dist/collections/stack.mjs +6 -0
  29. package/dist/collections/stack.mjs.map +1 -1
  30. package/dist/entry-point.mjs +6 -0
  31. package/dist/entry-point.mjs.map +1 -1
  32. package/dist/index.mjs +6 -0
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/iterator/range.mjs +6 -0
  35. package/dist/iterator/range.mjs.map +1 -1
  36. package/dist/json/json.mjs +6 -0
  37. package/dist/json/json.mjs.map +1 -1
  38. package/dist/number/branded-types/finite-number.d.mts +1 -1
  39. package/dist/number/branded-types/index.d.mts +6 -0
  40. package/dist/number/branded-types/index.d.mts.map +1 -1
  41. package/dist/number/branded-types/index.mjs +6 -0
  42. package/dist/number/branded-types/index.mjs.map +1 -1
  43. package/dist/number/branded-types/int.d.mts +1 -2
  44. package/dist/number/branded-types/int.d.mts.map +1 -1
  45. package/dist/number/branded-types/int16.d.mts +2 -3
  46. package/dist/number/branded-types/int16.d.mts.map +1 -1
  47. package/dist/number/branded-types/int32.d.mts +2 -3
  48. package/dist/number/branded-types/int32.d.mts.map +1 -1
  49. package/dist/number/branded-types/negative-finite-number.d.mts +143 -0
  50. package/dist/number/branded-types/negative-finite-number.d.mts.map +1 -0
  51. package/dist/number/branded-types/negative-finite-number.mjs +156 -0
  52. package/dist/number/branded-types/negative-finite-number.mjs.map +1 -0
  53. package/dist/number/branded-types/negative-int.d.mts +120 -0
  54. package/dist/number/branded-types/negative-int.d.mts.map +1 -0
  55. package/dist/number/branded-types/negative-int.mjs +125 -0
  56. package/dist/number/branded-types/negative-int.mjs.map +1 -0
  57. package/dist/number/branded-types/negative-safe-int.d.mts +132 -0
  58. package/dist/number/branded-types/negative-safe-int.d.mts.map +1 -0
  59. package/dist/number/branded-types/negative-safe-int.mjs +136 -0
  60. package/dist/number/branded-types/negative-safe-int.mjs.map +1 -0
  61. package/dist/number/branded-types/non-negative-finite-number.d.mts +1 -1
  62. package/dist/number/branded-types/non-negative-int16.d.mts +1 -1
  63. package/dist/number/branded-types/non-negative-int32.d.mts +1 -1
  64. package/dist/number/branded-types/non-positive-finite-number.d.mts +130 -0
  65. package/dist/number/branded-types/non-positive-finite-number.d.mts.map +1 -0
  66. package/dist/number/branded-types/non-positive-finite-number.mjs +134 -0
  67. package/dist/number/branded-types/non-positive-finite-number.mjs.map +1 -0
  68. package/dist/number/branded-types/non-positive-int.d.mts +224 -0
  69. package/dist/number/branded-types/non-positive-int.d.mts.map +1 -0
  70. package/dist/number/branded-types/non-positive-int.mjs +222 -0
  71. package/dist/number/branded-types/non-positive-int.mjs.map +1 -0
  72. package/dist/number/branded-types/non-positive-safe-int.d.mts +119 -0
  73. package/dist/number/branded-types/non-positive-safe-int.d.mts.map +1 -0
  74. package/dist/number/branded-types/non-positive-safe-int.mjs +116 -0
  75. package/dist/number/branded-types/non-positive-safe-int.mjs.map +1 -0
  76. package/dist/number/branded-types/non-zero-finite-number.d.mts +5 -17
  77. package/dist/number/branded-types/non-zero-finite-number.d.mts.map +1 -1
  78. package/dist/number/branded-types/non-zero-finite-number.mjs +5 -17
  79. package/dist/number/branded-types/non-zero-finite-number.mjs.map +1 -1
  80. package/dist/number/branded-types/non-zero-int.d.mts +5 -33
  81. package/dist/number/branded-types/non-zero-int.d.mts.map +1 -1
  82. package/dist/number/branded-types/non-zero-int.mjs +5 -25
  83. package/dist/number/branded-types/non-zero-int.mjs.map +1 -1
  84. package/dist/number/branded-types/non-zero-int16.d.mts +6 -43
  85. package/dist/number/branded-types/non-zero-int16.d.mts.map +1 -1
  86. package/dist/number/branded-types/non-zero-int16.mjs +5 -25
  87. package/dist/number/branded-types/non-zero-int16.mjs.map +1 -1
  88. package/dist/number/branded-types/non-zero-int32.d.mts +6 -39
  89. package/dist/number/branded-types/non-zero-int32.d.mts.map +1 -1
  90. package/dist/number/branded-types/non-zero-int32.mjs +5 -25
  91. package/dist/number/branded-types/non-zero-int32.mjs.map +1 -1
  92. package/dist/number/branded-types/non-zero-safe-int.d.mts +5 -37
  93. package/dist/number/branded-types/non-zero-safe-int.d.mts.map +1 -1
  94. package/dist/number/branded-types/non-zero-safe-int.mjs +5 -28
  95. package/dist/number/branded-types/non-zero-safe-int.mjs.map +1 -1
  96. package/dist/number/branded-types/non-zero-uint16.d.mts +6 -33
  97. package/dist/number/branded-types/non-zero-uint16.d.mts.map +1 -1
  98. package/dist/number/branded-types/non-zero-uint16.mjs +5 -17
  99. package/dist/number/branded-types/non-zero-uint16.mjs.map +1 -1
  100. package/dist/number/branded-types/non-zero-uint32.d.mts +6 -31
  101. package/dist/number/branded-types/non-zero-uint32.d.mts.map +1 -1
  102. package/dist/number/branded-types/non-zero-uint32.mjs +5 -17
  103. package/dist/number/branded-types/non-zero-uint32.mjs.map +1 -1
  104. package/dist/number/branded-types/positive-finite-number.d.mts +4 -2
  105. package/dist/number/branded-types/positive-finite-number.d.mts.map +1 -1
  106. package/dist/number/branded-types/positive-int.d.mts +4 -2
  107. package/dist/number/branded-types/positive-int.d.mts.map +1 -1
  108. package/dist/number/branded-types/positive-int16.d.mts +4 -2
  109. package/dist/number/branded-types/positive-int16.d.mts.map +1 -1
  110. package/dist/number/branded-types/positive-int32.d.mts +4 -2
  111. package/dist/number/branded-types/positive-int32.d.mts.map +1 -1
  112. package/dist/number/branded-types/positive-safe-int.d.mts +4 -2
  113. package/dist/number/branded-types/positive-safe-int.d.mts.map +1 -1
  114. package/dist/number/branded-types/positive-uint16.d.mts +4 -2
  115. package/dist/number/branded-types/positive-uint16.d.mts.map +1 -1
  116. package/dist/number/branded-types/positive-uint32.d.mts +4 -2
  117. package/dist/number/branded-types/positive-uint32.d.mts.map +1 -1
  118. package/dist/number/branded-types/safe-int.d.mts +1 -2
  119. package/dist/number/branded-types/safe-int.d.mts.map +1 -1
  120. package/dist/number/branded-types/safe-uint.d.mts +1 -1
  121. package/dist/number/branded-types/uint.d.mts +1 -1
  122. package/dist/number/branded-types/uint16.d.mts +1 -1
  123. package/dist/number/branded-types/uint32.d.mts +1 -1
  124. package/dist/number/index.d.mts +1 -0
  125. package/dist/number/index.d.mts.map +1 -1
  126. package/dist/number/index.mjs +6 -0
  127. package/dist/number/index.mjs.map +1 -1
  128. package/dist/number/num-arithmetic-types.d.mts +74 -0
  129. package/dist/number/num-arithmetic-types.d.mts.map +1 -0
  130. package/dist/number/num-arithmetic-types.mjs +2 -0
  131. package/dist/number/num-arithmetic-types.mjs.map +1 -0
  132. package/dist/number/num.d.mts +53 -9
  133. package/dist/number/num.d.mts.map +1 -1
  134. package/dist/number/num.mjs +64 -12
  135. package/dist/number/num.mjs.map +1 -1
  136. package/dist/number/refined-number-utils.d.mts +12 -9
  137. package/dist/number/refined-number-utils.d.mts.map +1 -1
  138. package/dist/number/refined-number-utils.mjs.map +1 -1
  139. package/dist/object/object.mjs +6 -0
  140. package/dist/object/object.mjs.map +1 -1
  141. package/package.json +2 -2
  142. package/src/number/branded-types/index.mts +6 -0
  143. package/src/number/branded-types/negative-finite-number.mts +210 -0
  144. package/src/number/branded-types/negative-finite-number.test.mts +172 -0
  145. package/src/number/branded-types/negative-int.mts +160 -0
  146. package/src/number/branded-types/negative-int.test.mts +146 -0
  147. package/src/number/branded-types/negative-safe-int.mts +173 -0
  148. package/src/number/branded-types/negative-safe-int.test.mts +120 -0
  149. package/src/number/branded-types/non-positive-finite-number.mts +191 -0
  150. package/src/number/branded-types/non-positive-finite-number.test.mts +286 -0
  151. package/src/number/branded-types/non-positive-int.mts +251 -0
  152. package/src/number/branded-types/non-positive-int.test.mts +197 -0
  153. package/src/number/branded-types/non-positive-safe-int.mts +147 -0
  154. package/src/number/branded-types/non-positive-safe-int.test.mts +223 -0
  155. package/src/number/branded-types/non-zero-finite-number.mts +14 -22
  156. package/src/number/branded-types/non-zero-finite-number.test.mts +0 -12
  157. package/src/number/branded-types/non-zero-int.mts +10 -32
  158. package/src/number/branded-types/non-zero-int.test.mts +0 -20
  159. package/src/number/branded-types/non-zero-int16.mts +8 -32
  160. package/src/number/branded-types/non-zero-int16.test.mts +0 -30
  161. package/src/number/branded-types/non-zero-int32.mts +8 -32
  162. package/src/number/branded-types/non-zero-int32.test.mts +0 -30
  163. package/src/number/branded-types/non-zero-safe-int.mts +8 -35
  164. package/src/number/branded-types/non-zero-safe-int.test.mts +0 -32
  165. package/src/number/branded-types/non-zero-uint16.mts +8 -22
  166. package/src/number/branded-types/non-zero-uint16.test.mts +0 -16
  167. package/src/number/branded-types/non-zero-uint32.mts +8 -22
  168. package/src/number/branded-types/non-zero-uint32.test.mts +0 -16
  169. package/src/number/index.mts +1 -0
  170. package/src/number/num-arithmetic-types.mts +269 -0
  171. package/src/number/num-arithmetic-types.test.mts +130 -0
  172. package/src/number/num-arithmetic.test.mts +102 -0
  173. package/src/number/num.mts +96 -15
  174. package/src/number/refined-number-utils.mts +19 -9
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,9 +2,15 @@ import '../number/branded-types/finite-number.mjs';
2
2
  import '../number/branded-types/int.mjs';
3
3
  import '../number/branded-types/int16.mjs';
4
4
  import '../number/branded-types/int32.mjs';
5
+ import '../number/branded-types/negative-finite-number.mjs';
6
+ import '../number/branded-types/negative-int.mjs';
7
+ import '../number/branded-types/negative-safe-int.mjs';
5
8
  import '../number/branded-types/non-negative-finite-number.mjs';
6
9
  import '../number/branded-types/non-negative-int16.mjs';
7
10
  import '../number/branded-types/non-negative-int32.mjs';
11
+ import '../number/branded-types/non-positive-finite-number.mjs';
12
+ import '../number/branded-types/non-positive-int.mjs';
13
+ import '../number/branded-types/non-positive-safe-int.mjs';
8
14
  import '../number/branded-types/non-zero-finite-number.mjs';
9
15
  import '../number/branded-types/non-zero-int.mjs';
10
16
  import '../number/branded-types/non-zero-int16.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"range.mjs","sources":["../../src/iterator/range.mts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAsFiB,KAAK,CACpB,GAAG,IA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IAAI,GAAG,CAAC,GAAG,KAAK,GAAG,GAAG,GAAG,KAAK,GAAG,GAAG,EACpC,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,EAC3C;AACA,gBAAA,MAAM,KAAK;YACb;QACF;;AAEJ;;;;"}
@@ -2,9 +2,15 @@ import '../number/branded-types/finite-number.mjs';
2
2
  import '../number/branded-types/int.mjs';
3
3
  import '../number/branded-types/int16.mjs';
4
4
  import '../number/branded-types/int32.mjs';
5
+ import '../number/branded-types/negative-finite-number.mjs';
6
+ import '../number/branded-types/negative-int.mjs';
7
+ import '../number/branded-types/negative-safe-int.mjs';
5
8
  import '../number/branded-types/non-negative-finite-number.mjs';
6
9
  import '../number/branded-types/non-negative-int16.mjs';
7
10
  import '../number/branded-types/non-negative-int32.mjs';
11
+ import '../number/branded-types/non-positive-finite-number.mjs';
12
+ import '../number/branded-types/non-positive-int.mjs';
13
+ import '../number/branded-types/non-positive-safe-int.mjs';
8
14
  import '../number/branded-types/non-zero-finite-number.mjs';
9
15
  import '../number/branded-types/non-zero-int.mjs';
10
16
  import '../number/branded-types/non-zero-int16.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"json.mjs","sources":["../../src/json/json.mts"],"sourcesContent":[null],"names":["Result.ok","Result.err","Arr.uniq"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA;;;;AAIG;AACG,IAAW;AAAjB,CAAA,UAAiB,IAAI,EAAA;AACnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDG;AACU,IAAA,IAAA,CAAA,KAAK,GAAG,CACnB,IAAY,EACZ,OAAmE,KACtC;AAC7B,QAAA,IAAI;YACF,OAAOA,EAAS,CACd,IAAI,CAAC,KAAK,CACR,IAAI;;YAEJ,OAAkE,CACnE,CACF;QACH;QAAE,OAAO,KAAc,EAAE;AACvB,YAAA,MAAM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;YACF;QACF;IACF;AACF,CAAC;AAED;;;;;;;;;;;AAWG;AACH,MAAM,QAAQ,GAAG,CAAC,GAAkB,KAAuB;IACzD,MAAM,QAAQ,GAAa,EAAE;AAE7B,IAAA,YAAY,CAAC,GAAG,EAAE,QAAQ,CAAC;AAE3B,IAAA,OAAO,QAAQ;AACjB,CAAC;;;;"}
@@ -58,7 +58,7 @@ export declare const FiniteNumber: {
58
58
  * @param x - The finite number to get the absolute value of
59
59
  * @returns The absolute value as a FiniteNumber
60
60
  */
61
- readonly abs: (x: TtfImported_FiniteNumber) => TsDataForgeInternals.RefinedNumberUtils.ToNonNegative<TtfImported_FiniteNumber>;
61
+ readonly abs: (x: TtfImported_FiniteNumber) => import("ts-type-forge").IntersectBrand<TtfImported_FiniteNumber, import("ts-type-forge").NonNegativeNumber>;
62
62
  /**
63
63
  * Returns the minimum value from a list of finite numbers.
64
64
  *
@@ -2,9 +2,15 @@ export * from './finite-number.mjs';
2
2
  export * from './int.mjs';
3
3
  export * from './int16.mjs';
4
4
  export * from './int32.mjs';
5
+ export * from './negative-finite-number.mjs';
6
+ export * from './negative-int.mjs';
7
+ export * from './negative-safe-int.mjs';
5
8
  export * from './non-negative-finite-number.mjs';
6
9
  export * from './non-negative-int16.mjs';
7
10
  export * from './non-negative-int32.mjs';
11
+ export * from './non-positive-finite-number.mjs';
12
+ export * from './non-positive-int.mjs';
13
+ export * from './non-positive-safe-int.mjs';
8
14
  export * from './non-zero-finite-number.mjs';
9
15
  export * from './non-zero-int.mjs';
10
16
  export * from './non-zero-int16.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/index.mts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/index.mts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
@@ -2,9 +2,15 @@ export { FiniteNumber, asFiniteNumber, isFiniteNumber } from './finite-number.mj
2
2
  export { Int, asInt, isInt } from './int.mjs';
3
3
  export { Int16, asInt16, isInt16 } from './int16.mjs';
4
4
  export { Int32, asInt32, isInt32 } from './int32.mjs';
5
+ export { NegativeFiniteNumber, asNegativeFiniteNumber, isNegativeFiniteNumber } from './negative-finite-number.mjs';
6
+ export { NegativeInt, asNegativeInt, isNegativeInt } from './negative-int.mjs';
7
+ export { NegativeSafeInt, asNegativeSafeInt, isNegativeSafeInt } from './negative-safe-int.mjs';
5
8
  export { NonNegativeFiniteNumber, asNonNegativeFiniteNumber, isNonNegativeFiniteNumber } from './non-negative-finite-number.mjs';
6
9
  export { NonNegativeInt16, asNonNegativeInt16, isNonNegativeInt16 } from './non-negative-int16.mjs';
7
10
  export { NonNegativeInt32, asNonNegativeInt32, isNonNegativeInt32 } from './non-negative-int32.mjs';
11
+ export { NonPositiveFiniteNumber, asNonPositiveFiniteNumber, isNonPositiveFiniteNumber } from './non-positive-finite-number.mjs';
12
+ export { NonPositiveInt, asNonPositiveInt, isNonPositiveInt } from './non-positive-int.mjs';
13
+ export { NonPositiveSafeInt, asNonPositiveSafeInt, isNonPositiveSafeInt } from './non-positive-safe-int.mjs';
8
14
  export { NonZeroFiniteNumber, asNonZeroFiniteNumber, isNonZeroFiniteNumber } from './non-zero-finite-number.mjs';
9
15
  export { NonZeroInt, asNonZeroInt, isNonZeroInt } from './non-zero-int.mjs';
10
16
  export { NonZeroInt16, asNonZeroInt16, isNonZeroInt16 } from './non-zero-int16.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,4 @@
1
1
  import { type Int as TtfImported_Int } from 'ts-type-forge';
2
- import { TsDataForgeInternals } from '../refined-number-utils.mjs';
3
2
  export type Int = TtfImported_Int;
4
3
  /**
5
4
  * Type guard that checks if a value is an integer.
@@ -102,7 +101,7 @@ export declare const Int: {
102
101
  * @param a - The integer value
103
102
  * @returns The absolute value as a non-negative Int
104
103
  */
105
- readonly abs: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int>) => TsDataForgeInternals.RefinedNumberUtils.ToNonNegative<TtfImported_Int>;
104
+ readonly abs: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int>) => import("ts-type-forge").IntersectBrand<TtfImported_Int, import("ts-type-forge").NonNegativeNumber>;
106
105
  /**
107
106
  * Returns the minimum value from a list of integers.
108
107
  *
@@ -1 +1 @@
1
- {"version":3,"file":"int.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/int.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,MAAM,GAAG,GAAG,eAAe,CAAC;AA6BlC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,KAAK,qCAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,KAAK;;;;;;MAAW,CAAC;AAE9B;;;;;;;;;;GAUG;AACH,eAAO,MAAM,GAAG;IACd;;;;;;;;;;;;;;;;OAgBG;;IAGH;;;;;;;;;;;;;;;;;;;;;OAqBG;;IAGH;;;;;;;;;;;;;OAaG;;IAGH;;;;;;;;;;;;;OAaG;;IAGH;;;;;;;;;;;;;;;;;;;;;;;OAuBG;;IAGH;;;;;;;;;;;;;;;;;;OAkBG;;IAGH;;;;;;;;;;;;;;OAcG;;IAGH;;;;;;;;;;;;;;OAcG;;IAGH;;;;;;;;;;;;;;OAcG;;IAGH;;;;;;;;;;;;;;;;;;;;;OAqBG;;;;;;;;;CAEK,CAAC"}
1
+ {"version":3,"file":"int.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/int.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAI5D,MAAM,MAAM,GAAG,GAAG,eAAe,CAAC;AA6BlC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,KAAK,qCAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,KAAK;;;;;;MAAW,CAAC;AAE9B;;;;;;;;;;GAUG;AACH,eAAO,MAAM,GAAG;IACd;;;;;;;;;;;;;;;;OAgBG;;IAGH;;;;;;;;;;;;;;;;;;;;;OAqBG;;IAGH;;;;;;;;;;;;;OAaG;;IAGH;;;;;;;;;;;;;OAaG;;IAGH;;;;;;;;;;;;;;;;;;;;;;;OAuBG;;IAGH;;;;;;;;;;;;;;;;;;OAkBG;;IAGH;;;;;;;;;;;;;;OAcG;;IAGH;;;;;;;;;;;;;;OAcG;;IAGH;;;;;;;;;;;;;;OAcG;;IAGH;;;;;;;;;;;;;;;;;;;;;OAqBG;;;;;;;;;CAEK,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { type Int16 as TtfImported_Int16 } from 'ts-type-forge';
2
- import { TsDataForgeInternals } from '../refined-number-utils.mjs';
3
2
  export type Int16 = TtfImported_Int16;
4
3
  /**
5
4
  * Checks if a number is an Int16 (16-bit signed integer in the range [-2^15,
@@ -66,7 +65,7 @@ export declare const Int16: {
66
65
  * @param a The Int16 value.
67
66
  * @returns The absolute value as an Int16, clamped to valid range.
68
67
  */
69
- readonly abs: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int16>) => TsDataForgeInternals.RefinedNumberUtils.ToNonNegative<TtfImported_Int16>;
68
+ readonly abs: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int16>) => import("ts-type-forge").IntersectBrand<TtfImported_Int16, import("ts-type-forge").NonNegativeNumber>;
70
69
  /**
71
70
  * Returns the smaller of two Int16 values.
72
71
  *
@@ -139,11 +138,11 @@ export declare const Int16: {
139
138
  readonly NaNValue: false;
140
139
  readonly Finite: true;
141
140
  readonly Int: true;
142
- readonly "!=0": true;
143
141
  readonly "> -2^16": true;
144
142
  readonly "> -2^32": true;
145
143
  readonly ">= -2^15": true;
146
144
  readonly ">= -2^31": true;
145
+ readonly "!=0": true;
147
146
  readonly "< 2^15": true;
148
147
  readonly "< 2^16": true;
149
148
  readonly "< 2^31": true;
@@ -1 +1 @@
1
- {"version":3,"file":"int16.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/int16.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC;AAgCtC;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,uCAAK,CAAC;AAE1B;;;;;;GAMG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;MAAW,CAAC;AAEhC;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK;IAChB;;;;;OAKG;;IAGH;;;;OAIG;;IAGH;;;;OAIG;;IAGH;;;;;OAKG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;OAKG;;IAGH;;;;OAIG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;;;;;;;;;;;;;;;;;CAEK,CAAC"}
1
+ {"version":3,"file":"int16.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/int16.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAIhE,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC;AAgCtC;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,uCAAK,CAAC;AAE1B;;;;;;GAMG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;MAAW,CAAC;AAEhC;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK;IAChB;;;;;OAKG;;IAGH;;;;OAIG;;IAGH;;;;OAIG;;IAGH;;;;;OAKG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;OAKG;;IAGH;;;;OAIG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;;;;;;;;;;;;;;;;;CAEK,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { type Int32 as TtfImported_Int32 } from 'ts-type-forge';
2
- import { TsDataForgeInternals } from '../refined-number-utils.mjs';
3
2
  export type Int32 = TtfImported_Int32;
4
3
  /**
5
4
  * Checks if a number is an Int32 (32-bit signed integer in the range [-2^31,
@@ -62,7 +61,7 @@ export declare const Int32: {
62
61
  * @param a The Int32 value.
63
62
  * @returns The absolute value as an Int32, clamped to valid range.
64
63
  */
65
- readonly abs: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int32>) => TsDataForgeInternals.RefinedNumberUtils.ToNonNegative<TtfImported_Int32>;
64
+ readonly abs: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int32>) => import("ts-type-forge").IntersectBrand<TtfImported_Int32, import("ts-type-forge").NonNegativeNumber>;
66
65
  /**
67
66
  * Returns the smaller of two Int32 values.
68
67
  *
@@ -135,9 +134,9 @@ export declare const Int32: {
135
134
  readonly NaNValue: false;
136
135
  readonly Finite: true;
137
136
  readonly Int: true;
138
- readonly "!=0": true;
139
137
  readonly "> -2^32": true;
140
138
  readonly ">= -2^31": true;
139
+ readonly "!=0": true;
141
140
  readonly "< 2^31": true;
142
141
  readonly "< 2^32": true;
143
142
  readonly SafeInt: true;
@@ -1 +1 @@
1
- {"version":3,"file":"int32.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/int32.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC;AAgCtC;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,uCAAK,CAAC;AAE1B;;;;;;GAMG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;MAAW,CAAC;AAEhC;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK;IAChB;;;;;OAKG;;IAGH;;;;OAIG;;IAGH;;;;OAIG;;IAGH;;;;;OAKG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;OAKG;;IAGH;;;;OAIG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;;;;;;;;;;;;;CAEK,CAAC"}
1
+ {"version":3,"file":"int32.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/int32.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAIhE,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC;AAgCtC;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,uCAAK,CAAC;AAE1B;;;;;;GAMG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;MAAW,CAAC;AAEhC;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK;IAChB;;;;;OAKG;;IAGH;;;;OAIG;;IAGH;;;;OAIG;;IAGH;;;;;OAKG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;OAKG;;IAGH;;;;OAIG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;;;;;;;;;;;;;CAEK,CAAC"}
@@ -0,0 +1,143 @@
1
+ import { type NegativeFiniteNumber as TtfImported_NegativeFiniteNumber } from 'ts-type-forge';
2
+ import { TsDataForgeInternals } from '../refined-number-utils.mjs';
3
+ import { PositiveFiniteNumber } from './positive-finite-number.mjs';
4
+ export type NegativeFiniteNumber = TtfImported_NegativeFiniteNumber;
5
+ type ElementType = NegativeFiniteNumber;
6
+ /**
7
+ * Checks if a number is a NegativeFiniteNumber (a finite number `< 0`).
8
+ *
9
+ * @param value The value to check.
10
+ * @returns `true` if the value is a NegativeFiniteNumber, `false` otherwise.
11
+ */
12
+ export declare const isNegativeFiniteNumber: (a: number) => a is TtfImported_NegativeFiniteNumber;
13
+ /**
14
+ * Casts a number to a NegativeFiniteNumber type.
15
+ *
16
+ * @param value The value to cast.
17
+ * @returns The value as a NegativeFiniteNumber type.
18
+ * @throws {TypeError} If the value is not a negative finite number.
19
+ */
20
+ export declare const asNegativeFiniteNumber: <N extends number>(x: N) => number & {
21
+ readonly NaNValue: false;
22
+ readonly Finite: true;
23
+ readonly ">=0": false;
24
+ readonly "!=0": true;
25
+ readonly "<=0": true;
26
+ readonly "< 2^15": true;
27
+ readonly "< 2^16": true;
28
+ readonly "< 2^31": true;
29
+ readonly "< 2^32": true;
30
+ } & Readonly<{
31
+ 'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
32
+ }> & N;
33
+ /**
34
+ * Namespace providing type-safe arithmetic operations for negative finite
35
+ * numbers.
36
+ *
37
+ * All operations keep results finite (excluding NaN and Infinity). Operations
38
+ * that stay within the negative finite numbers clamp their results to the valid
39
+ * range, while operations whose result leaves the set (`mul`, `div`, `abs`) are
40
+ * typed to reflect the actual sign of the result.
41
+ */
42
+ export declare const NegativeFiniteNumber: {
43
+ /**
44
+ * Type guard to check if a value is a NegativeFiniteNumber.
45
+ *
46
+ * @param value The value to check.
47
+ * @returns `true` if the value is a negative finite number, `false`
48
+ * otherwise.
49
+ */
50
+ readonly is: (a: number) => a is TtfImported_NegativeFiniteNumber;
51
+ /**
52
+ * The maximum value for a negative finite number.
53
+ *
54
+ * @readonly
55
+ */
56
+ readonly MAX_VALUE: number;
57
+ /**
58
+ * Returns the absolute value of a negative finite number.
59
+ *
60
+ * @param a The negative finite number.
61
+ * @returns The absolute value as a PositiveFiniteNumber.
62
+ */
63
+ readonly abs: (x: ElementType) => PositiveFiniteNumber;
64
+ /**
65
+ * Returns the smaller of two NegativeFiniteNumber values.
66
+ *
67
+ * @param a The first NegativeFiniteNumber.
68
+ * @param b The second NegativeFiniteNumber.
69
+ * @returns The minimum value as a NegativeFiniteNumber.
70
+ */
71
+ readonly min: (...values: readonly TtfImported_NegativeFiniteNumber[]) => TtfImported_NegativeFiniteNumber;
72
+ /**
73
+ * Returns the larger of two NegativeFiniteNumber values.
74
+ *
75
+ * @param a The first NegativeFiniteNumber.
76
+ * @param b The second NegativeFiniteNumber.
77
+ * @returns The maximum value as a NegativeFiniteNumber.
78
+ */
79
+ readonly max: (...values: readonly TtfImported_NegativeFiniteNumber[]) => TtfImported_NegativeFiniteNumber;
80
+ /**
81
+ * Clamps a number to the negative finite range.
82
+ *
83
+ * @param value The number to clamp.
84
+ * @returns The value clamped to `(-∞, 0)` as a NegativeFiniteNumber.
85
+ */
86
+ readonly clamp: (x: number) => TtfImported_NegativeFiniteNumber;
87
+ /**
88
+ * Rounds down a NegativeFiniteNumber to the nearest integer.
89
+ *
90
+ * @param x The NegativeFiniteNumber to round down.
91
+ * @returns The floor value as a NegativeInt (always `<= -1`).
92
+ */
93
+ readonly floor: (x: ElementType) => TsDataForgeInternals.RefinedNumberUtils.ToInt<ElementType>;
94
+ /**
95
+ * Rounds up a NegativeFiniteNumber to the nearest integer.
96
+ *
97
+ * @param x The NegativeFiniteNumber to round up.
98
+ * @returns The ceiling value as a NonPositiveInt (can be 0).
99
+ */
100
+ readonly ceil: (x: ElementType) => TsDataForgeInternals.RefinedNumberUtils.RemoveNonZeroBrandKey<TsDataForgeInternals.RefinedNumberUtils.ToInt<ElementType>>;
101
+ /**
102
+ * Rounds a NegativeFiniteNumber to the nearest integer.
103
+ *
104
+ * @param x The NegativeFiniteNumber to round.
105
+ * @returns The rounded value as a NonPositiveInt (can be 0 if x > -0.5).
106
+ */
107
+ readonly round: (x: ElementType) => TsDataForgeInternals.RefinedNumberUtils.RemoveNonZeroBrandKey<TsDataForgeInternals.RefinedNumberUtils.ToInt<ElementType>>;
108
+ /**
109
+ * Generates a random NegativeFiniteNumber value.
110
+ *
111
+ * @returns A random negative finite number.
112
+ */
113
+ readonly random: (min?: TtfImported_NegativeFiniteNumber | undefined, max?: TtfImported_NegativeFiniteNumber | undefined) => TtfImported_NegativeFiniteNumber;
114
+ /**
115
+ * Raises a NegativeFiniteNumber to the power of another NegativeFiniteNumber.
116
+ *
117
+ * @param a The base NegativeFiniteNumber.
118
+ * @param b The exponent NegativeFiniteNumber.
119
+ * @returns `a ** b` clamped to `(-∞, 0)` as a NegativeFiniteNumber.
120
+ */
121
+ readonly pow: (x: TtfImported_NegativeFiniteNumber, y: TtfImported_NegativeFiniteNumber) => TtfImported_NegativeFiniteNumber;
122
+ /**
123
+ * Adds two NegativeFiniteNumber values.
124
+ *
125
+ * @param a The first NegativeFiniteNumber.
126
+ * @param b The second NegativeFiniteNumber.
127
+ * @returns `a + b` as a NegativeFiniteNumber.
128
+ */
129
+ readonly add: (x: TtfImported_NegativeFiniteNumber, y: TtfImported_NegativeFiniteNumber) => TtfImported_NegativeFiniteNumber;
130
+ /**
131
+ * Subtracts one NegativeFiniteNumber from another.
132
+ *
133
+ * The mathematical result can be positive, so it is clamped to the negative
134
+ * finite range (maximum `-Number.MIN_VALUE`).
135
+ *
136
+ * @param a The minuend NegativeFiniteNumber.
137
+ * @param b The subtrahend NegativeFiniteNumber.
138
+ * @returns `a - b` clamped to `(-∞, 0)` as a NegativeFiniteNumber.
139
+ */
140
+ readonly sub: (x: TtfImported_NegativeFiniteNumber, y: TtfImported_NegativeFiniteNumber) => TtfImported_NegativeFiniteNumber;
141
+ };
142
+ export {};
143
+ //# sourceMappingURL=negative-finite-number.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"negative-finite-number.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/negative-finite-number.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,IAAI,gCAAgC,EAAE,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,MAAM,MAAM,oBAAoB,GAAG,gCAAgC,CAAC;AAEpE,KAAK,WAAW,GAAG,oBAAoB,CAAC;AAkExC;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,sDAAK,CAAC;AAEzC;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;MAAW,CAAC;AAE/C;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB;IAC/B;;;;;;OAMG;;IAGH;;;;OAIG;;IAGH;;;;;OAKG;sBA/EW,WAAW,KAAG,oBAAoB;IAkFhD;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;OAKG;;IAGH;;;;;OAKG;wBA7GA,WAAW,KACb,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,CAAC,WAAW,CAAC;IA+G3D;;;;;OAKG;uBA/GA,WAAW,KACb,oBAAoB,CAAC,kBAAkB,CAAC,qBAAqB,CAC9D,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,CAAC,WAAW,CAAC,CAC3D;IA+GC;;;;;OAKG;wBA7GA,WAAW,KACb,oBAAoB,CAAC,kBAAkB,CAAC,qBAAqB,CAC9D,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,CAAC,WAAW,CAAC,CAC3D;IA6GC;;;;OAIG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;;;;OASG;;CAEK,CAAC"}
@@ -0,0 +1,156 @@
1
+ import { TsDataForgeInternals } from '../refined-number-utils.mjs';
2
+ import { PositiveFiniteNumber } from './positive-finite-number.mjs';
3
+
4
+ const typeNameInMessage = 'a negative finite number';
5
+ const { MAX_VALUE, add, castType, clamp, is, max: max_, min: min_, pow, random, sub, } = TsDataForgeInternals.RefinedNumberUtils.operatorsForFloat({
6
+ nonZero: true,
7
+ MIN_VALUE: -Number.MAX_VALUE,
8
+ MAX_VALUE: -Number.MIN_VALUE,
9
+ typeNameInMessage,
10
+ });
11
+ /**
12
+ * Returns the absolute value of a negative finite number.
13
+ *
14
+ * The absolute value of a negative finite number is always a positive finite
15
+ * number, so the result is typed as a {@link PositiveFiniteNumber}.
16
+ *
17
+ * @param x - The negative finite number.
18
+ * @returns `|x|` as a PositiveFiniteNumber.
19
+ */
20
+ const abs = (x) => PositiveFiniteNumber.clamp(Math.abs(x));
21
+ const floor = (x) =>
22
+ // eslint-disable-next-line total-functions/no-unsafe-type-assertion
23
+ Math.floor(x);
24
+ const ceil = (x) =>
25
+ // eslint-disable-next-line total-functions/no-unsafe-type-assertion
26
+ Math.ceil(x);
27
+ const round = (x) =>
28
+ // eslint-disable-next-line total-functions/no-unsafe-type-assertion
29
+ Math.round(x);
30
+ /**
31
+ * Checks if a number is a NegativeFiniteNumber (a finite number `< 0`).
32
+ *
33
+ * @param value The value to check.
34
+ * @returns `true` if the value is a NegativeFiniteNumber, `false` otherwise.
35
+ */
36
+ const isNegativeFiniteNumber = is;
37
+ /**
38
+ * Casts a number to a NegativeFiniteNumber type.
39
+ *
40
+ * @param value The value to cast.
41
+ * @returns The value as a NegativeFiniteNumber type.
42
+ * @throws {TypeError} If the value is not a negative finite number.
43
+ */
44
+ const asNegativeFiniteNumber = castType;
45
+ /**
46
+ * Namespace providing type-safe arithmetic operations for negative finite
47
+ * numbers.
48
+ *
49
+ * All operations keep results finite (excluding NaN and Infinity). Operations
50
+ * that stay within the negative finite numbers clamp their results to the valid
51
+ * range, while operations whose result leaves the set (`mul`, `div`, `abs`) are
52
+ * typed to reflect the actual sign of the result.
53
+ */
54
+ const NegativeFiniteNumber = {
55
+ /**
56
+ * Type guard to check if a value is a NegativeFiniteNumber.
57
+ *
58
+ * @param value The value to check.
59
+ * @returns `true` if the value is a negative finite number, `false`
60
+ * otherwise.
61
+ */
62
+ is,
63
+ /**
64
+ * The maximum value for a negative finite number.
65
+ *
66
+ * @readonly
67
+ */
68
+ MAX_VALUE,
69
+ /**
70
+ * Returns the absolute value of a negative finite number.
71
+ *
72
+ * @param a The negative finite number.
73
+ * @returns The absolute value as a PositiveFiniteNumber.
74
+ */
75
+ abs,
76
+ /**
77
+ * Returns the smaller of two NegativeFiniteNumber values.
78
+ *
79
+ * @param a The first NegativeFiniteNumber.
80
+ * @param b The second NegativeFiniteNumber.
81
+ * @returns The minimum value as a NegativeFiniteNumber.
82
+ */
83
+ min: min_,
84
+ /**
85
+ * Returns the larger of two NegativeFiniteNumber values.
86
+ *
87
+ * @param a The first NegativeFiniteNumber.
88
+ * @param b The second NegativeFiniteNumber.
89
+ * @returns The maximum value as a NegativeFiniteNumber.
90
+ */
91
+ max: max_,
92
+ /**
93
+ * Clamps a number to the negative finite range.
94
+ *
95
+ * @param value The number to clamp.
96
+ * @returns The value clamped to `(-∞, 0)` as a NegativeFiniteNumber.
97
+ */
98
+ clamp,
99
+ /**
100
+ * Rounds down a NegativeFiniteNumber to the nearest integer.
101
+ *
102
+ * @param x The NegativeFiniteNumber to round down.
103
+ * @returns The floor value as a NegativeInt (always `<= -1`).
104
+ */
105
+ floor,
106
+ /**
107
+ * Rounds up a NegativeFiniteNumber to the nearest integer.
108
+ *
109
+ * @param x The NegativeFiniteNumber to round up.
110
+ * @returns The ceiling value as a NonPositiveInt (can be 0).
111
+ */
112
+ ceil,
113
+ /**
114
+ * Rounds a NegativeFiniteNumber to the nearest integer.
115
+ *
116
+ * @param x The NegativeFiniteNumber to round.
117
+ * @returns The rounded value as a NonPositiveInt (can be 0 if x > -0.5).
118
+ */
119
+ round,
120
+ /**
121
+ * Generates a random NegativeFiniteNumber value.
122
+ *
123
+ * @returns A random negative finite number.
124
+ */
125
+ random,
126
+ /**
127
+ * Raises a NegativeFiniteNumber to the power of another NegativeFiniteNumber.
128
+ *
129
+ * @param a The base NegativeFiniteNumber.
130
+ * @param b The exponent NegativeFiniteNumber.
131
+ * @returns `a ** b` clamped to `(-∞, 0)` as a NegativeFiniteNumber.
132
+ */
133
+ pow,
134
+ /**
135
+ * Adds two NegativeFiniteNumber values.
136
+ *
137
+ * @param a The first NegativeFiniteNumber.
138
+ * @param b The second NegativeFiniteNumber.
139
+ * @returns `a + b` as a NegativeFiniteNumber.
140
+ */
141
+ add,
142
+ /**
143
+ * Subtracts one NegativeFiniteNumber from another.
144
+ *
145
+ * The mathematical result can be positive, so it is clamped to the negative
146
+ * finite range (maximum `-Number.MIN_VALUE`).
147
+ *
148
+ * @param a The minuend NegativeFiniteNumber.
149
+ * @param b The subtrahend NegativeFiniteNumber.
150
+ * @returns `a - b` clamped to `(-∞, 0)` as a NegativeFiniteNumber.
151
+ */
152
+ sub,
153
+ };
154
+
155
+ export { NegativeFiniteNumber, asNegativeFiniteNumber, isNegativeFiniteNumber };
156
+ //# sourceMappingURL=negative-finite-number.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"negative-finite-number.mjs","sources":["../../../src/number/branded-types/negative-finite-number.mts"],"sourcesContent":[null],"names":[],"mappings":";;;AAQA,MAAM,iBAAiB,GAAG,0BAA0B;AAEpD,MAAM,EACJ,SAAS,EACT,GAAG,EACH,QAAQ,EACR,KAAK,EAC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1,120 @@
1
+ import { type NegativeInt as TtfImported_NegativeInt, type WithSmallInt } from 'ts-type-forge';
2
+ import { PositiveInt } from './positive-int.mjs';
3
+ export type NegativeInt = TtfImported_NegativeInt;
4
+ type ElementType = NegativeInt;
5
+ /**
6
+ * Checks if a number is a NegativeInt (a negative integer `<= -1`).
7
+ *
8
+ * @param value The value to check.
9
+ * @returns `true` if the value is a NegativeInt, `false` otherwise.
10
+ */
11
+ export declare const isNegativeInt: (a: number) => a is TtfImported_NegativeInt;
12
+ /**
13
+ * Casts a number to a NegativeInt type.
14
+ *
15
+ * @param value The value to cast.
16
+ * @returns The value as a NegativeInt type.
17
+ * @throws {TypeError} If the value is not a negative integer.
18
+ */
19
+ export declare const asNegativeInt: <N extends number>(x: N) => number & {
20
+ readonly NaNValue: false;
21
+ readonly Finite: true;
22
+ readonly Int: true;
23
+ readonly ">=0": false;
24
+ readonly "!=0": true;
25
+ readonly "<=0": true;
26
+ readonly "< 2^15": true;
27
+ readonly "< 2^16": true;
28
+ readonly "< 2^31": true;
29
+ readonly "< 2^32": true;
30
+ } & Readonly<{
31
+ 'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
32
+ }> & N;
33
+ /**
34
+ * Namespace providing type-safe arithmetic operations for negative integers.
35
+ *
36
+ * NegativeInt represents integers that are strictly less than zero (`<= -1`).
37
+ * Operations that stay within the negative integers (such as `add`) clamp their
38
+ * results to the valid range, while operations whose result leaves the set
39
+ * (`mul`, `div`, `abs`) are typed to reflect the actual sign of the result.
40
+ */
41
+ export declare const NegativeInt: {
42
+ /**
43
+ * Type guard to check if a value is a NegativeInt.
44
+ *
45
+ * @param value The value to check.
46
+ * @returns `true` if the value is a negative integer, `false` otherwise.
47
+ */
48
+ readonly is: (a: number) => a is TtfImported_NegativeInt;
49
+ /**
50
+ * The maximum value for a negative integer.
51
+ *
52
+ * @readonly
53
+ */
54
+ readonly MAX_VALUE: -1;
55
+ /**
56
+ * Returns the absolute value of a negative integer.
57
+ *
58
+ * @param a The negative integer.
59
+ * @returns The absolute value as a PositiveInt.
60
+ */
61
+ readonly abs: (x: WithSmallInt<ElementType>) => PositiveInt;
62
+ /**
63
+ * Returns the smaller of two negative integers.
64
+ *
65
+ * @param a The first negative integer.
66
+ * @param b The second negative integer.
67
+ * @returns The minimum value as a NegativeInt.
68
+ */
69
+ readonly min: (...values: readonly WithSmallInt<TtfImported_NegativeInt>[]) => TtfImported_NegativeInt;
70
+ /**
71
+ * Returns the larger of two negative integers.
72
+ *
73
+ * @param a The first negative integer.
74
+ * @param b The second negative integer.
75
+ * @returns The maximum value as a NegativeInt.
76
+ */
77
+ readonly max: (...values: readonly WithSmallInt<TtfImported_NegativeInt>[]) => TtfImported_NegativeInt;
78
+ /**
79
+ * Clamps a number to the negative integer range.
80
+ *
81
+ * @param value The number to clamp.
82
+ * @returns The value clamped to `[-∞, -1]` as a NegativeInt.
83
+ */
84
+ readonly clamp: (x: number) => TtfImported_NegativeInt;
85
+ /**
86
+ * Generates a random NegativeInt value within the valid range.
87
+ *
88
+ * @returns A random negative integer.
89
+ */
90
+ readonly random: (min?: WithSmallInt<TtfImported_NegativeInt> | undefined, max?: WithSmallInt<TtfImported_NegativeInt> | undefined) => TtfImported_NegativeInt;
91
+ /**
92
+ * Raises a negative integer to the power of another negative integer.
93
+ *
94
+ * @param a The base negative integer.
95
+ * @param b The exponent negative integer.
96
+ * @returns `a ** b` clamped to the negative integer range.
97
+ */
98
+ readonly pow: (x: WithSmallInt<TtfImported_NegativeInt>, y: WithSmallInt<TtfImported_NegativeInt>) => TtfImported_NegativeInt;
99
+ /**
100
+ * Adds two negative integers.
101
+ *
102
+ * @param a The first negative integer.
103
+ * @param b The second negative integer.
104
+ * @returns `a + b` as a NegativeInt.
105
+ */
106
+ readonly add: (x: WithSmallInt<TtfImported_NegativeInt>, y: WithSmallInt<TtfImported_NegativeInt>) => TtfImported_NegativeInt;
107
+ /**
108
+ * Subtracts one negative integer from another.
109
+ *
110
+ * The mathematical result can be positive, so it is clamped to the negative
111
+ * integer range (maximum `-1`).
112
+ *
113
+ * @param a The minuend negative integer.
114
+ * @param b The subtrahend negative integer.
115
+ * @returns `a - b` clamped to the negative integer range.
116
+ */
117
+ readonly sub: (x: WithSmallInt<TtfImported_NegativeInt>, y: WithSmallInt<TtfImported_NegativeInt>) => TtfImported_NegativeInt;
118
+ };
119
+ export {};
120
+ //# sourceMappingURL=negative-int.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"negative-int.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/negative-int.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,IAAI,uBAAuB,EAC3C,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,WAAW,GAAG,uBAAuB,CAAC;AAElD,KAAK,WAAW,GAAG,WAAW,CAAC;AAuC/B;;;;;GAKG;AACH,eAAO,MAAM,aAAa,6CAAK,CAAC;AAEhC;;;;;;GAMG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;MAAW,CAAC;AAEtC;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW;IACtB;;;;;OAKG;;IAGH;;;;OAIG;;IAGH;;;;;OAKG;sBAjDW,YAAY,CAAC,WAAW,CAAC,KAAG,WAAW;IAoDrD;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;OAKG;;IAGH;;;;OAIG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;;;;OASG;;CAEK,CAAC"}