ts-data-forge 6.9.2 → 6.9.3

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 (604) hide show
  1. package/dist/array/impl/array-utils-creation.d.mts +2 -0
  2. package/dist/array/impl/array-utils-creation.d.mts.map +1 -1
  3. package/dist/array/impl/array-utils-creation.mjs.map +1 -1
  4. package/dist/array/impl/array-utils-element-access.d.mts +3 -0
  5. package/dist/array/impl/array-utils-element-access.d.mts.map +1 -1
  6. package/dist/array/impl/array-utils-element-access.mjs.map +1 -1
  7. package/dist/array/impl/array-utils-iterators.d.mts +1 -0
  8. package/dist/array/impl/array-utils-iterators.d.mts.map +1 -1
  9. package/dist/array/impl/array-utils-iterators.mjs.map +1 -1
  10. package/dist/array/impl/array-utils-modification.d.mts +2 -0
  11. package/dist/array/impl/array-utils-modification.d.mts.map +1 -1
  12. package/dist/array/impl/array-utils-modification.mjs.map +1 -1
  13. package/dist/array/impl/array-utils-reducing-value.d.mts +3 -0
  14. package/dist/array/impl/array-utils-reducing-value.d.mts.map +1 -1
  15. package/dist/array/impl/array-utils-reducing-value.mjs.map +1 -1
  16. package/dist/array/impl/array-utils-search.d.mts +2 -0
  17. package/dist/array/impl/array-utils-search.d.mts.map +1 -1
  18. package/dist/array/impl/array-utils-search.mjs.map +1 -1
  19. package/dist/array/impl/array-utils-set-op.d.mts +1 -0
  20. package/dist/array/impl/array-utils-set-op.d.mts.map +1 -1
  21. package/dist/array/impl/array-utils-set-op.mjs.map +1 -1
  22. package/dist/array/impl/array-utils-size.d.mts +2 -0
  23. package/dist/array/impl/array-utils-size.d.mts.map +1 -1
  24. package/dist/array/impl/array-utils-size.mjs +0 -19
  25. package/dist/array/impl/array-utils-size.mjs.map +1 -1
  26. package/dist/array/impl/array-utils-slice-clamped.d.mts +1 -0
  27. package/dist/array/impl/array-utils-slice-clamped.d.mts.map +1 -1
  28. package/dist/array/impl/array-utils-slice-clamped.mjs.map +1 -1
  29. package/dist/array/impl/array-utils-slicing.d.mts +2 -0
  30. package/dist/array/impl/array-utils-slicing.d.mts.map +1 -1
  31. package/dist/array/impl/array-utils-slicing.mjs.map +1 -1
  32. package/dist/array/impl/array-utils-transformation.d.mts +2 -0
  33. package/dist/array/impl/array-utils-transformation.d.mts.map +1 -1
  34. package/dist/array/impl/array-utils-transformation.mjs.map +1 -1
  35. package/dist/array/impl/array-utils-validation.d.mts +2 -0
  36. package/dist/array/impl/array-utils-validation.d.mts.map +1 -1
  37. package/dist/array/impl/array-utils-validation.mjs.map +1 -1
  38. package/dist/collections/imap-mapped.d.mts +2 -0
  39. package/dist/collections/imap-mapped.d.mts.map +1 -1
  40. package/dist/collections/imap-mapped.mjs.map +1 -1
  41. package/dist/collections/imap.d.mts +3 -0
  42. package/dist/collections/imap.d.mts.map +1 -1
  43. package/dist/collections/imap.mjs.map +1 -1
  44. package/dist/collections/iset-mapped.d.mts +2 -0
  45. package/dist/collections/iset-mapped.d.mts.map +1 -1
  46. package/dist/collections/iset-mapped.mjs.map +1 -1
  47. package/dist/collections/iset.d.mts +2 -0
  48. package/dist/collections/iset.d.mts.map +1 -1
  49. package/dist/collections/iset.mjs +0 -1
  50. package/dist/collections/iset.mjs.map +1 -1
  51. package/dist/collections/queue.d.mts +2 -0
  52. package/dist/collections/queue.d.mts.map +1 -1
  53. package/dist/collections/queue.mjs.map +1 -1
  54. package/dist/collections/stack.d.mts +2 -0
  55. package/dist/collections/stack.d.mts.map +1 -1
  56. package/dist/collections/stack.mjs.map +1 -1
  57. package/dist/expect-type.d.mts +1 -0
  58. package/dist/expect-type.d.mts.map +1 -1
  59. package/dist/expect-type.mjs.map +1 -1
  60. package/dist/functional/match.d.mts +1 -0
  61. package/dist/functional/match.d.mts.map +1 -1
  62. package/dist/functional/match.mjs.map +1 -1
  63. package/dist/functional/optional/impl/optional-expect-to-be.d.mts +1 -0
  64. package/dist/functional/optional/impl/optional-expect-to-be.d.mts.map +1 -1
  65. package/dist/functional/optional/impl/optional-expect-to-be.mjs.map +1 -1
  66. package/dist/functional/optional/impl/optional-filter.d.mts +1 -0
  67. package/dist/functional/optional/impl/optional-filter.d.mts.map +1 -1
  68. package/dist/functional/optional/impl/optional-filter.mjs.map +1 -1
  69. package/dist/functional/optional/impl/optional-flat-map.d.mts +1 -0
  70. package/dist/functional/optional/impl/optional-flat-map.d.mts.map +1 -1
  71. package/dist/functional/optional/impl/optional-flat-map.mjs.map +1 -1
  72. package/dist/functional/optional/impl/optional-from-nullable.d.mts +1 -0
  73. package/dist/functional/optional/impl/optional-from-nullable.d.mts.map +1 -1
  74. package/dist/functional/optional/impl/optional-from-nullable.mjs.map +1 -1
  75. package/dist/functional/optional/impl/optional-is-none.d.mts +1 -0
  76. package/dist/functional/optional/impl/optional-is-none.d.mts.map +1 -1
  77. package/dist/functional/optional/impl/optional-is-none.mjs.map +1 -1
  78. package/dist/functional/optional/impl/optional-is-optional.d.mts +1 -0
  79. package/dist/functional/optional/impl/optional-is-optional.d.mts.map +1 -1
  80. package/dist/functional/optional/impl/optional-is-optional.mjs.map +1 -1
  81. package/dist/functional/optional/impl/optional-is-some.d.mts +1 -0
  82. package/dist/functional/optional/impl/optional-is-some.d.mts.map +1 -1
  83. package/dist/functional/optional/impl/optional-is-some.mjs.map +1 -1
  84. package/dist/functional/optional/impl/optional-map.d.mts +1 -0
  85. package/dist/functional/optional/impl/optional-map.d.mts.map +1 -1
  86. package/dist/functional/optional/impl/optional-map.mjs.map +1 -1
  87. package/dist/functional/optional/impl/optional-none.d.mts +1 -0
  88. package/dist/functional/optional/impl/optional-none.d.mts.map +1 -1
  89. package/dist/functional/optional/impl/optional-none.mjs.map +1 -1
  90. package/dist/functional/optional/impl/optional-or-else.d.mts +1 -0
  91. package/dist/functional/optional/impl/optional-or-else.d.mts.map +1 -1
  92. package/dist/functional/optional/impl/optional-or-else.mjs.map +1 -1
  93. package/dist/functional/optional/impl/optional-some.d.mts +1 -0
  94. package/dist/functional/optional/impl/optional-some.d.mts.map +1 -1
  95. package/dist/functional/optional/impl/optional-some.mjs.map +1 -1
  96. package/dist/functional/optional/impl/optional-to-nullable.d.mts +1 -0
  97. package/dist/functional/optional/impl/optional-to-nullable.d.mts.map +1 -1
  98. package/dist/functional/optional/impl/optional-to-nullable.mjs.map +1 -1
  99. package/dist/functional/optional/impl/optional-unwrap-or.d.mts +1 -0
  100. package/dist/functional/optional/impl/optional-unwrap-or.d.mts.map +1 -1
  101. package/dist/functional/optional/impl/optional-unwrap-or.mjs.map +1 -1
  102. package/dist/functional/optional/impl/optional-unwrap-throw.d.mts +1 -0
  103. package/dist/functional/optional/impl/optional-unwrap-throw.d.mts.map +1 -1
  104. package/dist/functional/optional/impl/optional-unwrap-throw.mjs.map +1 -1
  105. package/dist/functional/optional/impl/optional-unwrap.d.mts +2 -0
  106. package/dist/functional/optional/impl/optional-unwrap.d.mts.map +1 -1
  107. package/dist/functional/optional/impl/optional-unwrap.mjs.map +1 -1
  108. package/dist/functional/optional/impl/optional-zip.d.mts +2 -0
  109. package/dist/functional/optional/impl/optional-zip.d.mts.map +1 -1
  110. package/dist/functional/optional/impl/optional-zip.mjs +1 -0
  111. package/dist/functional/optional/impl/optional-zip.mjs.map +1 -1
  112. package/dist/functional/optional/impl/tag.d.mts +1 -0
  113. package/dist/functional/optional/impl/tag.d.mts.map +1 -1
  114. package/dist/functional/optional/impl/tag.mjs +0 -1
  115. package/dist/functional/optional/impl/tag.mjs.map +1 -1
  116. package/dist/functional/optional/impl/types.d.mts +2 -0
  117. package/dist/functional/optional/impl/types.d.mts.map +1 -1
  118. package/dist/functional/optional/index.d.mts +1 -1
  119. package/dist/functional/optional/index.d.mts.map +1 -1
  120. package/dist/functional/optional/optional.d.mts +16 -0
  121. package/dist/functional/optional/optional.d.mts.map +1 -0
  122. package/dist/functional/optional/optional.mjs +3 -0
  123. package/dist/functional/optional/optional.mjs.map +1 -0
  124. package/dist/functional/pipe.d.mts +2 -1
  125. package/dist/functional/pipe.d.mts.map +1 -1
  126. package/dist/functional/pipe.mjs.map +1 -1
  127. package/dist/functional/result/impl/result-err.d.mts +1 -0
  128. package/dist/functional/result/impl/result-err.d.mts.map +1 -1
  129. package/dist/functional/result/impl/result-err.mjs.map +1 -1
  130. package/dist/functional/result/impl/result-expect-to-be.d.mts +1 -0
  131. package/dist/functional/result/impl/result-expect-to-be.d.mts.map +1 -1
  132. package/dist/functional/result/impl/result-expect-to-be.mjs.map +1 -1
  133. package/dist/functional/result/impl/result-flat-map.d.mts +1 -0
  134. package/dist/functional/result/impl/result-flat-map.d.mts.map +1 -1
  135. package/dist/functional/result/impl/result-flat-map.mjs.map +1 -1
  136. package/dist/functional/result/impl/result-fold.d.mts +1 -0
  137. package/dist/functional/result/impl/result-fold.d.mts.map +1 -1
  138. package/dist/functional/result/impl/result-fold.mjs.map +1 -1
  139. package/dist/functional/result/impl/result-from-promise.d.mts +1 -0
  140. package/dist/functional/result/impl/result-from-promise.d.mts.map +1 -1
  141. package/dist/functional/result/impl/result-from-promise.mjs.map +1 -1
  142. package/dist/functional/result/impl/result-from-throwable.d.mts +1 -0
  143. package/dist/functional/result/impl/result-from-throwable.d.mts.map +1 -1
  144. package/dist/functional/result/impl/result-from-throwable.mjs.map +1 -1
  145. package/dist/functional/result/impl/result-is-err.d.mts +1 -0
  146. package/dist/functional/result/impl/result-is-err.d.mts.map +1 -1
  147. package/dist/functional/result/impl/result-is-err.mjs.map +1 -1
  148. package/dist/functional/result/impl/result-is-ok.d.mts +1 -0
  149. package/dist/functional/result/impl/result-is-ok.d.mts.map +1 -1
  150. package/dist/functional/result/impl/result-is-ok.mjs.map +1 -1
  151. package/dist/functional/result/impl/result-is-result.d.mts +1 -0
  152. package/dist/functional/result/impl/result-is-result.d.mts.map +1 -1
  153. package/dist/functional/result/impl/result-is-result.mjs.map +1 -1
  154. package/dist/functional/result/impl/result-map-err.d.mts +1 -0
  155. package/dist/functional/result/impl/result-map-err.d.mts.map +1 -1
  156. package/dist/functional/result/impl/result-map-err.mjs.map +1 -1
  157. package/dist/functional/result/impl/result-map.d.mts +1 -0
  158. package/dist/functional/result/impl/result-map.d.mts.map +1 -1
  159. package/dist/functional/result/impl/result-map.mjs.map +1 -1
  160. package/dist/functional/result/impl/result-ok.d.mts +1 -0
  161. package/dist/functional/result/impl/result-ok.d.mts.map +1 -1
  162. package/dist/functional/result/impl/result-ok.mjs.map +1 -1
  163. package/dist/functional/result/impl/result-or-else.d.mts +1 -0
  164. package/dist/functional/result/impl/result-or-else.d.mts.map +1 -1
  165. package/dist/functional/result/impl/result-or-else.mjs.map +1 -1
  166. package/dist/functional/result/impl/result-swap.d.mts +1 -0
  167. package/dist/functional/result/impl/result-swap.d.mts.map +1 -1
  168. package/dist/functional/result/impl/result-swap.mjs.map +1 -1
  169. package/dist/functional/result/impl/result-to-optional.d.mts +2 -0
  170. package/dist/functional/result/impl/result-to-optional.d.mts.map +1 -1
  171. package/dist/functional/result/impl/result-to-optional.mjs.map +1 -1
  172. package/dist/functional/result/impl/result-unwrap-err-or.d.mts +1 -0
  173. package/dist/functional/result/impl/result-unwrap-err-or.d.mts.map +1 -1
  174. package/dist/functional/result/impl/result-unwrap-err-or.mjs.map +1 -1
  175. package/dist/functional/result/impl/result-unwrap-err-throw.d.mts +1 -0
  176. package/dist/functional/result/impl/result-unwrap-err-throw.d.mts.map +1 -1
  177. package/dist/functional/result/impl/result-unwrap-err-throw.mjs.map +1 -1
  178. package/dist/functional/result/impl/result-unwrap-err.d.mts +1 -0
  179. package/dist/functional/result/impl/result-unwrap-err.d.mts.map +1 -1
  180. package/dist/functional/result/impl/result-unwrap-err.mjs.map +1 -1
  181. package/dist/functional/result/impl/result-unwrap-ok-or.d.mts +1 -0
  182. package/dist/functional/result/impl/result-unwrap-ok-or.d.mts.map +1 -1
  183. package/dist/functional/result/impl/result-unwrap-ok-or.mjs.map +1 -1
  184. package/dist/functional/result/impl/result-unwrap-ok.d.mts +2 -0
  185. package/dist/functional/result/impl/result-unwrap-ok.d.mts.map +1 -1
  186. package/dist/functional/result/impl/result-unwrap-ok.mjs.map +1 -1
  187. package/dist/functional/result/impl/result-unwrap-throw.d.mts +1 -0
  188. package/dist/functional/result/impl/result-unwrap-throw.d.mts.map +1 -1
  189. package/dist/functional/result/impl/result-unwrap-throw.mjs.map +1 -1
  190. package/dist/functional/result/impl/result-zip.d.mts +1 -0
  191. package/dist/functional/result/impl/result-zip.d.mts.map +1 -1
  192. package/dist/functional/result/impl/result-zip.mjs.map +1 -1
  193. package/dist/functional/result/impl/tag.d.mts +1 -0
  194. package/dist/functional/result/impl/tag.d.mts.map +1 -1
  195. package/dist/functional/result/impl/tag.mjs +0 -1
  196. package/dist/functional/result/impl/tag.mjs.map +1 -1
  197. package/dist/functional/result/impl/types.d.mts +2 -0
  198. package/dist/functional/result/impl/types.d.mts.map +1 -1
  199. package/dist/functional/result/index.d.mts +1 -1
  200. package/dist/functional/result/index.d.mts.map +1 -1
  201. package/dist/functional/result/result.d.mts +16 -0
  202. package/dist/functional/result/result.d.mts.map +1 -0
  203. package/dist/functional/result/result.mjs +3 -0
  204. package/dist/functional/result/result.mjs.map +1 -0
  205. package/dist/functional/ternary-result/impl/tag.d.mts +1 -0
  206. package/dist/functional/ternary-result/impl/tag.d.mts.map +1 -1
  207. package/dist/functional/ternary-result/impl/tag.mjs +0 -1
  208. package/dist/functional/ternary-result/impl/tag.mjs.map +1 -1
  209. package/dist/functional/ternary-result/impl/ternary-result-err.d.mts +1 -0
  210. package/dist/functional/ternary-result/impl/ternary-result-err.d.mts.map +1 -1
  211. package/dist/functional/ternary-result/impl/ternary-result-err.mjs.map +1 -1
  212. package/dist/functional/ternary-result/impl/ternary-result-expect-to-be.d.mts +1 -0
  213. package/dist/functional/ternary-result/impl/ternary-result-expect-to-be.d.mts.map +1 -1
  214. package/dist/functional/ternary-result/impl/ternary-result-expect-to-be.mjs.map +1 -1
  215. package/dist/functional/ternary-result/impl/ternary-result-flat-map.d.mts +1 -0
  216. package/dist/functional/ternary-result/impl/ternary-result-flat-map.d.mts.map +1 -1
  217. package/dist/functional/ternary-result/impl/ternary-result-flat-map.mjs.map +1 -1
  218. package/dist/functional/ternary-result/impl/ternary-result-fold.d.mts +1 -0
  219. package/dist/functional/ternary-result/impl/ternary-result-fold.d.mts.map +1 -1
  220. package/dist/functional/ternary-result/impl/ternary-result-fold.mjs.map +1 -1
  221. package/dist/functional/ternary-result/impl/ternary-result-from-promise.d.mts +1 -0
  222. package/dist/functional/ternary-result/impl/ternary-result-from-promise.d.mts.map +1 -1
  223. package/dist/functional/ternary-result/impl/ternary-result-from-promise.mjs.map +1 -1
  224. package/dist/functional/ternary-result/impl/ternary-result-from-throwable.d.mts +1 -0
  225. package/dist/functional/ternary-result/impl/ternary-result-from-throwable.d.mts.map +1 -1
  226. package/dist/functional/ternary-result/impl/ternary-result-from-throwable.mjs.map +1 -1
  227. package/dist/functional/ternary-result/impl/ternary-result-is-err.d.mts +1 -0
  228. package/dist/functional/ternary-result/impl/ternary-result-is-err.d.mts.map +1 -1
  229. package/dist/functional/ternary-result/impl/ternary-result-is-err.mjs.map +1 -1
  230. package/dist/functional/ternary-result/impl/ternary-result-is-ok.d.mts +1 -0
  231. package/dist/functional/ternary-result/impl/ternary-result-is-ok.d.mts.map +1 -1
  232. package/dist/functional/ternary-result/impl/ternary-result-is-ok.mjs.map +1 -1
  233. package/dist/functional/ternary-result/impl/ternary-result-is-ternary-result.d.mts +1 -0
  234. package/dist/functional/ternary-result/impl/ternary-result-is-ternary-result.d.mts.map +1 -1
  235. package/dist/functional/ternary-result/impl/ternary-result-is-ternary-result.mjs.map +1 -1
  236. package/dist/functional/ternary-result/impl/ternary-result-is-warn.d.mts +1 -0
  237. package/dist/functional/ternary-result/impl/ternary-result-is-warn.d.mts.map +1 -1
  238. package/dist/functional/ternary-result/impl/ternary-result-is-warn.mjs.map +1 -1
  239. package/dist/functional/ternary-result/impl/ternary-result-map-err.d.mts +1 -0
  240. package/dist/functional/ternary-result/impl/ternary-result-map-err.d.mts.map +1 -1
  241. package/dist/functional/ternary-result/impl/ternary-result-map-err.mjs.map +1 -1
  242. package/dist/functional/ternary-result/impl/ternary-result-map-warn.d.mts +1 -0
  243. package/dist/functional/ternary-result/impl/ternary-result-map-warn.d.mts.map +1 -1
  244. package/dist/functional/ternary-result/impl/ternary-result-map-warn.mjs.map +1 -1
  245. package/dist/functional/ternary-result/impl/ternary-result-map.d.mts +1 -0
  246. package/dist/functional/ternary-result/impl/ternary-result-map.d.mts.map +1 -1
  247. package/dist/functional/ternary-result/impl/ternary-result-map.mjs.map +1 -1
  248. package/dist/functional/ternary-result/impl/ternary-result-ok.d.mts +1 -0
  249. package/dist/functional/ternary-result/impl/ternary-result-ok.d.mts.map +1 -1
  250. package/dist/functional/ternary-result/impl/ternary-result-ok.mjs.map +1 -1
  251. package/dist/functional/ternary-result/impl/ternary-result-or-else.d.mts +1 -0
  252. package/dist/functional/ternary-result/impl/ternary-result-or-else.d.mts.map +1 -1
  253. package/dist/functional/ternary-result/impl/ternary-result-or-else.mjs.map +1 -1
  254. package/dist/functional/ternary-result/impl/ternary-result-to-optional.d.mts +2 -0
  255. package/dist/functional/ternary-result/impl/ternary-result-to-optional.d.mts.map +1 -1
  256. package/dist/functional/ternary-result/impl/ternary-result-to-optional.mjs.map +1 -1
  257. package/dist/functional/ternary-result/impl/ternary-result-unwrap-err-or.d.mts +1 -0
  258. package/dist/functional/ternary-result/impl/ternary-result-unwrap-err-or.d.mts.map +1 -1
  259. package/dist/functional/ternary-result/impl/ternary-result-unwrap-err-or.mjs.map +1 -1
  260. package/dist/functional/ternary-result/impl/ternary-result-unwrap-err-throw.d.mts +1 -0
  261. package/dist/functional/ternary-result/impl/ternary-result-unwrap-err-throw.d.mts.map +1 -1
  262. package/dist/functional/ternary-result/impl/ternary-result-unwrap-err-throw.mjs.map +1 -1
  263. package/dist/functional/ternary-result/impl/ternary-result-unwrap-err.d.mts +1 -0
  264. package/dist/functional/ternary-result/impl/ternary-result-unwrap-err.d.mts.map +1 -1
  265. package/dist/functional/ternary-result/impl/ternary-result-unwrap-err.mjs.map +1 -1
  266. package/dist/functional/ternary-result/impl/ternary-result-unwrap-ok-or.d.mts +1 -0
  267. package/dist/functional/ternary-result/impl/ternary-result-unwrap-ok-or.d.mts.map +1 -1
  268. package/dist/functional/ternary-result/impl/ternary-result-unwrap-ok-or.mjs.map +1 -1
  269. package/dist/functional/ternary-result/impl/ternary-result-unwrap-ok.d.mts +1 -0
  270. package/dist/functional/ternary-result/impl/ternary-result-unwrap-ok.d.mts.map +1 -1
  271. package/dist/functional/ternary-result/impl/ternary-result-unwrap-ok.mjs.map +1 -1
  272. package/dist/functional/ternary-result/impl/ternary-result-unwrap-throw.d.mts +1 -0
  273. package/dist/functional/ternary-result/impl/ternary-result-unwrap-throw.d.mts.map +1 -1
  274. package/dist/functional/ternary-result/impl/ternary-result-unwrap-throw.mjs.map +1 -1
  275. package/dist/functional/ternary-result/impl/ternary-result-unwrap-warn-or.d.mts +1 -0
  276. package/dist/functional/ternary-result/impl/ternary-result-unwrap-warn-or.d.mts.map +1 -1
  277. package/dist/functional/ternary-result/impl/ternary-result-unwrap-warn-or.mjs.map +1 -1
  278. package/dist/functional/ternary-result/impl/ternary-result-unwrap-warn-throw.d.mts +1 -0
  279. package/dist/functional/ternary-result/impl/ternary-result-unwrap-warn-throw.d.mts.map +1 -1
  280. package/dist/functional/ternary-result/impl/ternary-result-unwrap-warn-throw.mjs.map +1 -1
  281. package/dist/functional/ternary-result/impl/ternary-result-unwrap-warn.d.mts +1 -0
  282. package/dist/functional/ternary-result/impl/ternary-result-unwrap-warn.d.mts.map +1 -1
  283. package/dist/functional/ternary-result/impl/ternary-result-unwrap-warn.mjs.map +1 -1
  284. package/dist/functional/ternary-result/impl/ternary-result-warn.d.mts +1 -0
  285. package/dist/functional/ternary-result/impl/ternary-result-warn.d.mts.map +1 -1
  286. package/dist/functional/ternary-result/impl/ternary-result-warn.mjs.map +1 -1
  287. package/dist/functional/ternary-result/impl/ternary-result-zip.d.mts +1 -0
  288. package/dist/functional/ternary-result/impl/ternary-result-zip.d.mts.map +1 -1
  289. package/dist/functional/ternary-result/impl/ternary-result-zip.mjs.map +1 -1
  290. package/dist/functional/ternary-result/impl/types.d.mts +1 -0
  291. package/dist/functional/ternary-result/impl/types.d.mts.map +1 -1
  292. package/dist/functional/ternary-result/impl/variant-name.d.mts +1 -0
  293. package/dist/functional/ternary-result/impl/variant-name.d.mts.map +1 -1
  294. package/dist/functional/ternary-result/impl/variant-name.mjs.map +1 -1
  295. package/dist/functional/ternary-result/index.d.mts +1 -1
  296. package/dist/functional/ternary-result/index.d.mts.map +1 -1
  297. package/dist/functional/ternary-result/ternary-result.d.mts +40 -0
  298. package/dist/functional/ternary-result/ternary-result.d.mts.map +1 -0
  299. package/dist/functional/ternary-result/ternary-result.mjs +3 -0
  300. package/dist/functional/ternary-result/ternary-result.mjs.map +1 -0
  301. package/dist/guard/has-key.d.mts +1 -0
  302. package/dist/guard/has-key.d.mts.map +1 -1
  303. package/dist/guard/has-key.mjs.map +1 -1
  304. package/dist/guard/is-non-empty-string.d.mts +1 -0
  305. package/dist/guard/is-non-empty-string.d.mts.map +1 -1
  306. package/dist/guard/is-non-empty-string.mjs.map +1 -1
  307. package/dist/guard/is-primitive.d.mts +1 -0
  308. package/dist/guard/is-primitive.d.mts.map +1 -1
  309. package/dist/guard/is-primitive.mjs.map +1 -1
  310. package/dist/guard/is-record.d.mts +1 -0
  311. package/dist/guard/is-record.d.mts.map +1 -1
  312. package/dist/guard/is-record.mjs.map +1 -1
  313. package/dist/guard/is-type.d.mts +1 -0
  314. package/dist/guard/is-type.d.mts.map +1 -1
  315. package/dist/guard/is-type.mjs.map +1 -1
  316. package/dist/guard/key-is-in.d.mts +1 -0
  317. package/dist/guard/key-is-in.d.mts.map +1 -1
  318. package/dist/guard/key-is-in.mjs.map +1 -1
  319. package/dist/iterator/range.d.mts +2 -0
  320. package/dist/iterator/range.d.mts.map +1 -1
  321. package/dist/iterator/range.mjs.map +1 -1
  322. package/dist/json/json.d.mts +2 -0
  323. package/dist/json/json.d.mts.map +1 -1
  324. package/dist/json/json.mjs.map +1 -1
  325. package/dist/number/branded-types/finite-number.d.mts +15 -13
  326. package/dist/number/branded-types/finite-number.d.mts.map +1 -1
  327. package/dist/number/branded-types/finite-number.mjs.map +1 -1
  328. package/dist/number/branded-types/int.d.mts +15 -13
  329. package/dist/number/branded-types/int.d.mts.map +1 -1
  330. package/dist/number/branded-types/int.mjs.map +1 -1
  331. package/dist/number/branded-types/int16.d.mts +19 -17
  332. package/dist/number/branded-types/int16.d.mts.map +1 -1
  333. package/dist/number/branded-types/int16.mjs.map +1 -1
  334. package/dist/number/branded-types/int32.d.mts +19 -17
  335. package/dist/number/branded-types/int32.d.mts.map +1 -1
  336. package/dist/number/branded-types/int32.mjs.map +1 -1
  337. package/dist/number/branded-types/non-negative-finite-number.d.mts +16 -14
  338. package/dist/number/branded-types/non-negative-finite-number.d.mts.map +1 -1
  339. package/dist/number/branded-types/non-negative-finite-number.mjs.map +1 -1
  340. package/dist/number/branded-types/non-negative-int16.d.mts +18 -16
  341. package/dist/number/branded-types/non-negative-int16.d.mts.map +1 -1
  342. package/dist/number/branded-types/non-negative-int16.mjs.map +1 -1
  343. package/dist/number/branded-types/non-negative-int32.d.mts +18 -16
  344. package/dist/number/branded-types/non-negative-int32.d.mts.map +1 -1
  345. package/dist/number/branded-types/non-negative-int32.mjs.map +1 -1
  346. package/dist/number/branded-types/non-zero-finite-number.d.mts +16 -14
  347. package/dist/number/branded-types/non-zero-finite-number.d.mts.map +1 -1
  348. package/dist/number/branded-types/non-zero-finite-number.mjs.map +1 -1
  349. package/dist/number/branded-types/non-zero-int.d.mts +16 -14
  350. package/dist/number/branded-types/non-zero-int.d.mts.map +1 -1
  351. package/dist/number/branded-types/non-zero-int.mjs.map +1 -1
  352. package/dist/number/branded-types/non-zero-int16.d.mts +19 -17
  353. package/dist/number/branded-types/non-zero-int16.d.mts.map +1 -1
  354. package/dist/number/branded-types/non-zero-int16.mjs.map +1 -1
  355. package/dist/number/branded-types/non-zero-int32.d.mts +19 -17
  356. package/dist/number/branded-types/non-zero-int32.d.mts.map +1 -1
  357. package/dist/number/branded-types/non-zero-int32.mjs.map +1 -1
  358. package/dist/number/branded-types/non-zero-safe-int.d.mts +17 -15
  359. package/dist/number/branded-types/non-zero-safe-int.d.mts.map +1 -1
  360. package/dist/number/branded-types/non-zero-safe-int.mjs.map +1 -1
  361. package/dist/number/branded-types/non-zero-uint16.d.mts +18 -16
  362. package/dist/number/branded-types/non-zero-uint16.d.mts.map +1 -1
  363. package/dist/number/branded-types/non-zero-uint16.mjs.map +1 -1
  364. package/dist/number/branded-types/non-zero-uint32.d.mts +18 -16
  365. package/dist/number/branded-types/non-zero-uint32.d.mts.map +1 -1
  366. package/dist/number/branded-types/non-zero-uint32.mjs.map +1 -1
  367. package/dist/number/branded-types/positive-finite-number.d.mts +16 -14
  368. package/dist/number/branded-types/positive-finite-number.d.mts.map +1 -1
  369. package/dist/number/branded-types/positive-finite-number.mjs.map +1 -1
  370. package/dist/number/branded-types/positive-int.d.mts +18 -16
  371. package/dist/number/branded-types/positive-int.d.mts.map +1 -1
  372. package/dist/number/branded-types/positive-int.mjs.map +1 -1
  373. package/dist/number/branded-types/positive-int16.d.mts +18 -16
  374. package/dist/number/branded-types/positive-int16.d.mts.map +1 -1
  375. package/dist/number/branded-types/positive-int16.mjs.map +1 -1
  376. package/dist/number/branded-types/positive-int32.d.mts +18 -16
  377. package/dist/number/branded-types/positive-int32.d.mts.map +1 -1
  378. package/dist/number/branded-types/positive-int32.mjs.map +1 -1
  379. package/dist/number/branded-types/positive-safe-int.d.mts +18 -16
  380. package/dist/number/branded-types/positive-safe-int.d.mts.map +1 -1
  381. package/dist/number/branded-types/positive-safe-int.mjs.map +1 -1
  382. package/dist/number/branded-types/positive-uint16.d.mts +18 -16
  383. package/dist/number/branded-types/positive-uint16.d.mts.map +1 -1
  384. package/dist/number/branded-types/positive-uint16.mjs.map +1 -1
  385. package/dist/number/branded-types/positive-uint32.d.mts +18 -16
  386. package/dist/number/branded-types/positive-uint32.d.mts.map +1 -1
  387. package/dist/number/branded-types/positive-uint32.mjs.map +1 -1
  388. package/dist/number/branded-types/safe-int.d.mts +17 -15
  389. package/dist/number/branded-types/safe-int.d.mts.map +1 -1
  390. package/dist/number/branded-types/safe-int.mjs.map +1 -1
  391. package/dist/number/branded-types/safe-uint.d.mts +19 -17
  392. package/dist/number/branded-types/safe-uint.d.mts.map +1 -1
  393. package/dist/number/branded-types/safe-uint.mjs.map +1 -1
  394. package/dist/number/branded-types/uint.d.mts +18 -16
  395. package/dist/number/branded-types/uint.d.mts.map +1 -1
  396. package/dist/number/branded-types/uint.mjs.map +1 -1
  397. package/dist/number/branded-types/uint16.d.mts +18 -16
  398. package/dist/number/branded-types/uint16.d.mts.map +1 -1
  399. package/dist/number/branded-types/uint16.mjs.map +1 -1
  400. package/dist/number/branded-types/uint32.d.mts +18 -16
  401. package/dist/number/branded-types/uint32.d.mts.map +1 -1
  402. package/dist/number/branded-types/uint32.mjs.map +1 -1
  403. package/dist/number/enum/int8.d.mts +2 -0
  404. package/dist/number/enum/int8.d.mts.map +1 -1
  405. package/dist/number/enum/int8.mjs.map +1 -1
  406. package/dist/number/enum/uint8.d.mts +2 -0
  407. package/dist/number/enum/uint8.d.mts.map +1 -1
  408. package/dist/number/enum/uint8.mjs.map +1 -1
  409. package/dist/number/num.d.mts +2 -0
  410. package/dist/number/num.d.mts.map +1 -1
  411. package/dist/number/num.mjs.map +1 -1
  412. package/dist/number/refined-number-utils.d.mts +1 -0
  413. package/dist/number/refined-number-utils.d.mts.map +1 -1
  414. package/dist/number/refined-number-utils.mjs.map +1 -1
  415. package/dist/object/object.d.mts +1 -0
  416. package/dist/object/object.d.mts.map +1 -1
  417. package/dist/object/object.mjs.map +1 -1
  418. package/dist/others/cast-mutable.d.mts +1 -0
  419. package/dist/others/cast-mutable.d.mts.map +1 -1
  420. package/dist/others/cast-mutable.mjs +3 -1
  421. package/dist/others/cast-mutable.mjs.map +1 -1
  422. package/dist/others/cast-readonly.d.mts +1 -0
  423. package/dist/others/cast-readonly.d.mts.map +1 -1
  424. package/dist/others/cast-readonly.mjs +3 -1
  425. package/dist/others/cast-readonly.mjs.map +1 -1
  426. package/dist/others/memoize-function.d.mts +1 -0
  427. package/dist/others/memoize-function.d.mts.map +1 -1
  428. package/dist/others/memoize-function.mjs.map +1 -1
  429. package/dist/promise/promise.d.mts +1 -0
  430. package/dist/promise/promise.d.mts.map +1 -1
  431. package/dist/types.d.mts +1 -2
  432. package/dist/types.d.mts.map +1 -0
  433. package/dist/types.mjs +2 -0
  434. package/dist/types.mjs.map +1 -0
  435. package/package.json +15 -15
  436. package/src/array/impl/array-utils-creation.mts +19 -0
  437. package/src/array/impl/array-utils-creation.test.mts +2 -0
  438. package/src/array/impl/array-utils-element-access.mts +7 -0
  439. package/src/array/impl/array-utils-element-access.test.mts +2 -0
  440. package/src/array/impl/array-utils-iterators.mts +1 -0
  441. package/src/array/impl/array-utils-iterators.test.mts +1 -0
  442. package/src/array/impl/array-utils-modification.mts +11 -0
  443. package/src/array/impl/array-utils-modification.test.mts +1 -0
  444. package/src/array/impl/array-utils-overload-type-error.test.mts +1 -0
  445. package/src/array/impl/array-utils-reducing-value.mts +7 -0
  446. package/src/array/impl/array-utils-reducing-value.test.mts +2 -0
  447. package/src/array/impl/array-utils-search.mts +5 -0
  448. package/src/array/impl/array-utils-search.test.mts +1 -0
  449. package/src/array/impl/array-utils-set-op.mts +2 -0
  450. package/src/array/impl/array-utils-size.mts +7 -0
  451. package/src/array/impl/array-utils-slice-clamped.mts +1 -0
  452. package/src/array/impl/array-utils-slicing.mts +2 -0
  453. package/src/array/impl/array-utils-transformation.mts +17 -0
  454. package/src/array/impl/array-utils-transformation.test.mts +1 -0
  455. package/src/array/impl/array-utils-validation.mts +8 -0
  456. package/src/array/impl/array-utils-validation.test.mts +1 -0
  457. package/src/collections/imap-mapped.mts +1 -0
  458. package/src/collections/imap-mapped.test.mts +1 -0
  459. package/src/collections/imap.mts +2 -0
  460. package/src/collections/iset-mapped.mts +2 -0
  461. package/src/collections/iset.mts +2 -1
  462. package/src/collections/iset.test.mts +4 -2
  463. package/src/collections/queue.mts +1 -0
  464. package/src/collections/stack.mts +1 -0
  465. package/src/collections/stack.test.mts +1 -0
  466. package/src/expect-type.mts +2 -0
  467. package/src/functional/match.mts +7 -0
  468. package/src/functional/match.test.mts +1 -0
  469. package/src/functional/optional/impl/optional-expect-to-be.mts +1 -0
  470. package/src/functional/optional/impl/optional-filter.mts +1 -0
  471. package/src/functional/optional/impl/optional-flat-map.mts +1 -0
  472. package/src/functional/optional/impl/optional-from-nullable.mts +1 -0
  473. package/src/functional/optional/impl/optional-is-none.mts +1 -0
  474. package/src/functional/optional/impl/optional-is-optional.mts +1 -0
  475. package/src/functional/optional/impl/optional-is-some.mts +1 -0
  476. package/src/functional/optional/impl/optional-map.mts +1 -0
  477. package/src/functional/optional/impl/optional-none.mts +1 -0
  478. package/src/functional/optional/impl/optional-or-else.mts +1 -0
  479. package/src/functional/optional/impl/optional-some.mts +1 -0
  480. package/src/functional/optional/impl/optional-to-nullable.mts +1 -0
  481. package/src/functional/optional/impl/optional-unwrap-or.mts +1 -0
  482. package/src/functional/optional/impl/optional-unwrap-throw.mts +1 -0
  483. package/src/functional/optional/impl/optional-unwrap.mts +2 -0
  484. package/src/functional/optional/impl/optional-zip.mts +2 -0
  485. package/src/functional/optional/impl/tag.mts +2 -0
  486. package/src/functional/optional/impl/types.mts +3 -0
  487. package/src/functional/optional/index.mts +1 -1
  488. package/src/functional/optional/optional.mts +19 -0
  489. package/src/functional/optional.test.mts +1 -0
  490. package/src/functional/pipe.mts +2 -1
  491. package/src/functional/pipe.test.mts +1 -0
  492. package/src/functional/result/impl/result-err.mts +1 -0
  493. package/src/functional/result/impl/result-expect-to-be.mts +1 -0
  494. package/src/functional/result/impl/result-flat-map.mts +2 -0
  495. package/src/functional/result/impl/result-fold.mts +1 -0
  496. package/src/functional/result/impl/result-from-promise.mts +2 -0
  497. package/src/functional/result/impl/result-from-throwable.mts +1 -0
  498. package/src/functional/result/impl/result-is-err.mts +1 -0
  499. package/src/functional/result/impl/result-is-ok.mts +1 -0
  500. package/src/functional/result/impl/result-is-result.mts +1 -0
  501. package/src/functional/result/impl/result-map-err.mts +2 -0
  502. package/src/functional/result/impl/result-map.mts +2 -0
  503. package/src/functional/result/impl/result-ok.mts +1 -0
  504. package/src/functional/result/impl/result-or-else.mts +1 -0
  505. package/src/functional/result/impl/result-swap.mts +1 -0
  506. package/src/functional/result/impl/result-to-optional.mts +1 -0
  507. package/src/functional/result/impl/result-unwrap-err-or.mts +1 -0
  508. package/src/functional/result/impl/result-unwrap-err-throw.mts +1 -0
  509. package/src/functional/result/impl/result-unwrap-err.mts +1 -0
  510. package/src/functional/result/impl/result-unwrap-ok-or.mts +1 -0
  511. package/src/functional/result/impl/result-unwrap-ok.mts +2 -0
  512. package/src/functional/result/impl/result-unwrap-throw.mts +1 -0
  513. package/src/functional/result/impl/result-zip.mts +1 -0
  514. package/src/functional/result/impl/tag.mts +2 -0
  515. package/src/functional/result/impl/types.mts +3 -0
  516. package/src/functional/result/index.mts +1 -1
  517. package/src/functional/result/result.mts +19 -0
  518. package/src/functional/result.test.mts +1 -0
  519. package/src/functional/ternary-result/impl/tag.mts +6 -0
  520. package/src/functional/ternary-result/impl/ternary-result-err.mts +1 -0
  521. package/src/functional/ternary-result/impl/ternary-result-expect-to-be.mts +4 -0
  522. package/src/functional/ternary-result/impl/ternary-result-flat-map.mts +5 -0
  523. package/src/functional/ternary-result/impl/ternary-result-fold.mts +4 -0
  524. package/src/functional/ternary-result/impl/ternary-result-from-promise.mts +1 -0
  525. package/src/functional/ternary-result/impl/ternary-result-from-throwable.mts +1 -0
  526. package/src/functional/ternary-result/impl/ternary-result-is-err.mts +1 -0
  527. package/src/functional/ternary-result/impl/ternary-result-is-ok.mts +1 -0
  528. package/src/functional/ternary-result/impl/ternary-result-is-ternary-result.mts +1 -0
  529. package/src/functional/ternary-result/impl/ternary-result-is-warn.mts +1 -0
  530. package/src/functional/ternary-result/impl/ternary-result-map-err.mts +4 -0
  531. package/src/functional/ternary-result/impl/ternary-result-map-warn.mts +4 -0
  532. package/src/functional/ternary-result/impl/ternary-result-map.mts +5 -0
  533. package/src/functional/ternary-result/impl/ternary-result-ok.mts +1 -0
  534. package/src/functional/ternary-result/impl/ternary-result-or-else.mts +4 -0
  535. package/src/functional/ternary-result/impl/ternary-result-to-optional.mts +1 -0
  536. package/src/functional/ternary-result/impl/ternary-result-unwrap-err-or.mts +4 -0
  537. package/src/functional/ternary-result/impl/ternary-result-unwrap-err-throw.mts +1 -0
  538. package/src/functional/ternary-result/impl/ternary-result-unwrap-err.mts +1 -0
  539. package/src/functional/ternary-result/impl/ternary-result-unwrap-ok-or.mts +4 -0
  540. package/src/functional/ternary-result/impl/ternary-result-unwrap-ok.mts +4 -0
  541. package/src/functional/ternary-result/impl/ternary-result-unwrap-throw.mts +1 -0
  542. package/src/functional/ternary-result/impl/ternary-result-unwrap-warn-or.mts +4 -0
  543. package/src/functional/ternary-result/impl/ternary-result-unwrap-warn-throw.mts +1 -0
  544. package/src/functional/ternary-result/impl/ternary-result-unwrap-warn.mts +1 -0
  545. package/src/functional/ternary-result/impl/ternary-result-warn.mts +1 -0
  546. package/src/functional/ternary-result/impl/ternary-result-zip.mts +1 -0
  547. package/src/functional/ternary-result/impl/types.mts +7 -0
  548. package/src/functional/ternary-result/impl/variant-name.mts +1 -0
  549. package/src/functional/ternary-result/index.mts +1 -1
  550. package/src/functional/ternary-result/ternary-result.mts +54 -0
  551. package/src/guard/has-key.mts +2 -0
  552. package/src/guard/has-key.test.mts +4 -0
  553. package/src/guard/is-non-empty-string.mts +2 -0
  554. package/src/guard/is-non-null-object.test.mts +1 -0
  555. package/src/guard/is-primitive.mts +1 -0
  556. package/src/guard/is-record.mts +1 -0
  557. package/src/guard/is-record.test.mts +1 -0
  558. package/src/guard/is-type.mts +2 -0
  559. package/src/guard/key-is-in.mts +2 -0
  560. package/src/guard/key-is-in.test.mts +2 -0
  561. package/src/iterator/range.mts +6 -0
  562. package/src/json/json.mts +5 -0
  563. package/src/number/branded-types/finite-number.mts +7 -0
  564. package/src/number/branded-types/int.mts +3 -0
  565. package/src/number/branded-types/int16.mts +3 -0
  566. package/src/number/branded-types/int32.mts +3 -0
  567. package/src/number/branded-types/non-negative-finite-number.mts +6 -0
  568. package/src/number/branded-types/non-negative-int16.mts +3 -0
  569. package/src/number/branded-types/non-negative-int32.mts +3 -0
  570. package/src/number/branded-types/non-zero-finite-number.mts +8 -0
  571. package/src/number/branded-types/non-zero-int.mts +3 -0
  572. package/src/number/branded-types/non-zero-int16.mts +3 -0
  573. package/src/number/branded-types/non-zero-int32.mts +3 -0
  574. package/src/number/branded-types/non-zero-safe-int.mts +7 -0
  575. package/src/number/branded-types/non-zero-uint16.mts +3 -0
  576. package/src/number/branded-types/non-zero-uint32.mts +3 -0
  577. package/src/number/branded-types/positive-finite-number.mts +7 -0
  578. package/src/number/branded-types/positive-int.mts +3 -0
  579. package/src/number/branded-types/positive-int16.mts +3 -0
  580. package/src/number/branded-types/positive-int32.mts +3 -0
  581. package/src/number/branded-types/positive-safe-int.mts +6 -0
  582. package/src/number/branded-types/positive-uint16.mts +3 -0
  583. package/src/number/branded-types/positive-uint32.mts +3 -0
  584. package/src/number/branded-types/safe-int.mts +6 -0
  585. package/src/number/branded-types/safe-uint.mts +3 -0
  586. package/src/number/branded-types/uint.mts +3 -0
  587. package/src/number/branded-types/uint16.mts +3 -0
  588. package/src/number/branded-types/uint32.mts +3 -0
  589. package/src/number/enum/int8.mts +7 -0
  590. package/src/number/enum/uint8.mts +3 -0
  591. package/src/number/num.mts +18 -0
  592. package/src/number/num.test.mts +1 -0
  593. package/src/number/refined-number-utils.mts +15 -0
  594. package/src/object/object.mts +13 -0
  595. package/src/object/object.test.mts +5 -0
  596. package/src/others/cast-mutable.mts +3 -0
  597. package/src/others/cast-readonly.mts +3 -0
  598. package/src/others/debounce-function.test.mts +0 -2
  599. package/src/others/fast-deep-equal.test.mts +1 -1
  600. package/src/others/map-nullable.test.mts +1 -0
  601. package/src/others/memoize-function.mts +2 -0
  602. package/src/types.mts +131 -0
  603. package/dist/globals.d.mts +0 -194
  604. package/src/globals.d.mts +0 -194
@@ -1,4 +1,6 @@
1
+ import { type Int16 as TtfImported_Int16 } from 'ts-type-forge';
1
2
  import { TsDataForgeInternals } from '../refined-number-utils.mjs';
3
+ export type Int16 = TtfImported_Int16;
2
4
  /**
3
5
  * Checks if a number is an Int16 (16-bit signed integer in the range [-2^15,
4
6
  * 2^15)).
@@ -6,7 +8,7 @@ import { TsDataForgeInternals } from '../refined-number-utils.mjs';
6
8
  * @param value The value to check.
7
9
  * @returns `true` if the value is an Int16, `false` otherwise.
8
10
  */
9
- export declare const isInt16: (a: number) => a is Int16;
11
+ export declare const isInt16: (a: number) => a is TtfImported_Int16;
10
12
  /**
11
13
  * Casts a number to an Int16 type.
12
14
  *
@@ -16,6 +18,8 @@ export declare const isInt16: (a: number) => a is Int16;
16
18
  */
17
19
  export declare const asInt16: <N extends number>(x: N) => number & {
18
20
  readonly NaNValue: false;
21
+ readonly Finite: true;
22
+ readonly Int: true;
19
23
  readonly "> -2^16": true;
20
24
  readonly "> -2^32": true;
21
25
  readonly ">= -2^15": true;
@@ -24,8 +28,6 @@ export declare const asInt16: <N extends number>(x: N) => number & {
24
28
  readonly "< 2^16": true;
25
29
  readonly "< 2^31": true;
26
30
  readonly "< 2^32": true;
27
- readonly Finite: true;
28
- readonly Int: true;
29
31
  readonly SafeInt: true;
30
32
  } & Readonly<{
31
33
  'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
@@ -45,7 +47,7 @@ export declare const Int16: {
45
47
  * @param value The value to check.
46
48
  * @returns `true` if the value is a 16-bit signed integer, `false` otherwise.
47
49
  */
48
- readonly is: (a: number) => a is Int16;
50
+ readonly is: (a: number) => a is TtfImported_Int16;
49
51
  /**
50
52
  * The minimum value for a 16-bit signed integer.
51
53
  *
@@ -64,7 +66,7 @@ export declare const Int16: {
64
66
  * @param a The Int16 value.
65
67
  * @returns The absolute value as an Int16, clamped to valid range.
66
68
  */
67
- readonly abs: (x: WithSmallInt<Int16, 40>) => TsDataForgeInternals.RefinedNumberUtils.ToNonNegative<Int16>;
69
+ readonly abs: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int16>) => TsDataForgeInternals.RefinedNumberUtils.ToNonNegative<TtfImported_Int16>;
68
70
  /**
69
71
  * Returns the smaller of two Int16 values.
70
72
  *
@@ -72,7 +74,7 @@ export declare const Int16: {
72
74
  * @param b The second Int16.
73
75
  * @returns The minimum value as an Int16.
74
76
  */
75
- readonly min: (...values: readonly WithSmallInt<Int16, 40>[]) => Int16;
77
+ readonly min: (...values: readonly import("ts-type-forge").WithSmallInt<TtfImported_Int16>[]) => TtfImported_Int16;
76
78
  /**
77
79
  * Returns the larger of two Int16 values.
78
80
  *
@@ -80,20 +82,20 @@ export declare const Int16: {
80
82
  * @param b The second Int16.
81
83
  * @returns The maximum value as an Int16.
82
84
  */
83
- readonly max: (...values: readonly WithSmallInt<Int16, 40>[]) => Int16;
85
+ readonly max: (...values: readonly import("ts-type-forge").WithSmallInt<TtfImported_Int16>[]) => TtfImported_Int16;
84
86
  /**
85
87
  * Clamps a number to the Int16 range.
86
88
  *
87
89
  * @param value The number to clamp.
88
90
  * @returns The value clamped to [-32768, 32767] as an Int16.
89
91
  */
90
- readonly clamp: (x: number) => Int16;
92
+ readonly clamp: (x: number) => TtfImported_Int16;
91
93
  /**
92
94
  * Generates a random Int16 value within the valid range.
93
95
  *
94
96
  * @returns A random Int16 between MIN_VALUE and MAX_VALUE.
95
97
  */
96
- readonly random: (min?: WithSmallInt<Int16, 40> | undefined, max?: WithSmallInt<Int16, 40> | undefined) => Int16;
98
+ readonly random: (min?: import("ts-type-forge").WithSmallInt<TtfImported_Int16> | undefined, max?: import("ts-type-forge").WithSmallInt<TtfImported_Int16> | undefined) => TtfImported_Int16;
97
99
  /**
98
100
  * Raises an Int16 to the power of another Int16.
99
101
  *
@@ -101,7 +103,7 @@ export declare const Int16: {
101
103
  * @param b The exponent Int16.
102
104
  * @returns `a ** b` clamped to [-32768, 32767] as an Int16.
103
105
  */
104
- readonly pow: (x: WithSmallInt<Int16, 40>, y: WithSmallInt<Int16, 40>) => Int16;
106
+ readonly pow: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int16>, y: import("ts-type-forge").WithSmallInt<TtfImported_Int16>) => TtfImported_Int16;
105
107
  /**
106
108
  * Adds two Int16 values.
107
109
  *
@@ -109,7 +111,7 @@ export declare const Int16: {
109
111
  * @param b The second Int16.
110
112
  * @returns `a + b` clamped to [-32768, 32767] as an Int16.
111
113
  */
112
- readonly add: (x: WithSmallInt<Int16, 40>, y: WithSmallInt<Int16, 40>) => Int16;
114
+ readonly add: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int16>, y: import("ts-type-forge").WithSmallInt<TtfImported_Int16>) => TtfImported_Int16;
113
115
  /**
114
116
  * Subtracts one Int16 from another.
115
117
  *
@@ -117,7 +119,7 @@ export declare const Int16: {
117
119
  * @param b The subtrahend Int16.
118
120
  * @returns `a - b` clamped to [-32768, 32767] as an Int16.
119
121
  */
120
- readonly sub: (x: WithSmallInt<Int16, 40>, y: WithSmallInt<Int16, 40>) => Int16;
122
+ readonly sub: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int16>, y: import("ts-type-forge").WithSmallInt<TtfImported_Int16>) => TtfImported_Int16;
121
123
  /**
122
124
  * Multiplies two Int16 values.
123
125
  *
@@ -125,7 +127,7 @@ export declare const Int16: {
125
127
  * @param b The second Int16.
126
128
  * @returns `a * b` clamped to [-32768, 32767] as an Int16.
127
129
  */
128
- readonly mul: (x: WithSmallInt<Int16, 40>, y: WithSmallInt<Int16, 40>) => Int16;
130
+ readonly mul: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int16>, y: import("ts-type-forge").WithSmallInt<TtfImported_Int16>) => TtfImported_Int16;
129
131
  /**
130
132
  * Divides one Int16 by another using floor division.
131
133
  *
@@ -133,8 +135,10 @@ export declare const Int16: {
133
135
  * @param b The divisor Int16.
134
136
  * @returns `⌊a / b⌋` clamped to [-32768, 32767] as an Int16.
135
137
  */
136
- readonly div: (x: WithSmallInt<Int16, 40>, y: 1 | 2 | 3 | 32 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 24 | 14 | 34 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 33 | 35 | 36 | 37 | 38 | 39 | -1 | -2 | -3 | -32 | -4 | -5 | -6 | -7 | -8 | -9 | -11 | -10 | -24 | -14 | -34 | -12 | -13 | -15 | -16 | -17 | -18 | -19 | -20 | -21 | -22 | -23 | -25 | -26 | -27 | -28 | -29 | -30 | -31 | -33 | -35 | -36 | -37 | -38 | -39 | -40 | NormalizeBrandUnion<number & {
138
+ readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int16>, y: 1 | 2 | 3 | 32 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -1 | -2 | -3 | -32 | -40 | -4 | -5 | -6 | -7 | -8 | -9 | -11 | -10 | -20 | -30 | -12 | -13 | -14 | -15 | -16 | -17 | -18 | -19 | -21 | -22 | -23 | -24 | -25 | -26 | -27 | -28 | -29 | -31 | -33 | -34 | -35 | -36 | -37 | -38 | -39 | import("ts-type-forge").NormalizeBrandUnion<number & {
137
139
  readonly NaNValue: false;
140
+ readonly Finite: true;
141
+ readonly Int: true;
138
142
  readonly "!=0": true;
139
143
  readonly "> -2^16": true;
140
144
  readonly "> -2^32": true;
@@ -144,11 +148,9 @@ export declare const Int16: {
144
148
  readonly "< 2^16": true;
145
149
  readonly "< 2^31": true;
146
150
  readonly "< 2^32": true;
147
- readonly Finite: true;
148
- readonly Int: true;
149
151
  readonly SafeInt: true;
150
152
  } & Readonly<{
151
153
  'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
152
- }>>) => Int16;
154
+ }>>) => TtfImported_Int16;
153
155
  };
154
156
  //# sourceMappingURL=int16.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"int16.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/int16.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAgCnE;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,2BAAK,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;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 +1 @@
1
- {"version":3,"file":"int16.mjs","sources":["../../../src/number/branded-types/int16.mts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA,MAAM,iBAAiB,GAAG,6BAA6B;AAEvD,MAAM,EACJ,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,QAAQ,EACR,KAAK,EACL,GAAG,EACH,EAAE,EACF,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,IAAI,EACT,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;AACA,IAAA,oBAAoB,EAAE,aAAa;AACnC,IAAA,SAAS,EAAE,MAAU;AACrB,IAAA,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;IACtB,iBAAiB;AACT,CAAA,CAAC;AAEX;;;;;;AAMG;AACI,MAAM,OAAO,GAAG;AAEvB;;;;;;AAMG;AACI,MAAM,OAAO,GAAG;AAEvB;;;;;;;AAOG;AACI,MAAM,KAAK,GAAG;AACnB;;;;;AAKG;IACH,EAAE;AAEF;;;;AAIG;IACH,SAAS;AAET;;;;AAIG;IACH,SAAS;AAET;;;;;AAKG;IACH,GAAG;AAEH;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;AAKG;IACH,KAAK;AAEL;;;;AAIG;IACH,MAAM;AAEN;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;;;;;"}
1
+ {"version":3,"file":"int16.mjs","sources":["../../../src/number/branded-types/int16.mts"],"sourcesContent":[null],"names":[],"mappings":";;AAQA,MAAM,iBAAiB,GAAG,6BAA6B;AAEvD,MAAM,EACJ,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,QAAQ,EACR,KAAK,EACL,GAAG,EACH,EAAE,EACF,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,IAAI,EACT,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;AACA,IAAA,oBAAoB,EAAE,aAAa;AACnC,IAAA,SAAS,EAAE,MAAU;AACrB,IAAA,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;IACtB,iBAAiB;AACT,CAAA,CAAC;AAEX;;;;;;AAMG;AACI,MAAM,OAAO,GAAG;AAEvB;;;;;;AAMG;AACI,MAAM,OAAO,GAAG;AAEvB;;;;;;;AAOG;AACI,MAAM,KAAK,GAAG;AACnB;;;;;AAKG;IACH,EAAE;AAEF;;;;AAIG;IACH,SAAS;AAET;;;;AAIG;IACH,SAAS;AAET;;;;;AAKG;IACH,GAAG;AAEH;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;AAKG;IACH,KAAK;AAEL;;;;AAIG;IACH,MAAM;AAEN;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;;;;;"}
@@ -1,4 +1,6 @@
1
+ import { type Int32 as TtfImported_Int32 } from 'ts-type-forge';
1
2
  import { TsDataForgeInternals } from '../refined-number-utils.mjs';
3
+ export type Int32 = TtfImported_Int32;
2
4
  /**
3
5
  * Checks if a number is an Int32 (32-bit signed integer in the range [-2^31,
4
6
  * 2^31)).
@@ -6,7 +8,7 @@ import { TsDataForgeInternals } from '../refined-number-utils.mjs';
6
8
  * @param value The value to check.
7
9
  * @returns `true` if the value is an Int32, `false` otherwise.
8
10
  */
9
- export declare const isInt32: (a: number) => a is Int32;
11
+ export declare const isInt32: (a: number) => a is TtfImported_Int32;
10
12
  /**
11
13
  * Casts a number to an Int32 type.
12
14
  *
@@ -16,12 +18,12 @@ export declare const isInt32: (a: number) => a is Int32;
16
18
  */
17
19
  export declare const asInt32: <N extends number>(x: N) => number & {
18
20
  readonly NaNValue: false;
21
+ readonly Finite: true;
22
+ readonly Int: true;
19
23
  readonly "> -2^32": true;
20
24
  readonly ">= -2^31": true;
21
25
  readonly "< 2^31": true;
22
26
  readonly "< 2^32": true;
23
- readonly Finite: true;
24
- readonly Int: true;
25
27
  readonly SafeInt: true;
26
28
  } & Readonly<{
27
29
  'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
@@ -41,7 +43,7 @@ export declare const Int32: {
41
43
  * @param value The value to check.
42
44
  * @returns `true` if the value is a 32-bit signed integer, `false` otherwise.
43
45
  */
44
- readonly is: (a: number) => a is Int32;
46
+ readonly is: (a: number) => a is TtfImported_Int32;
45
47
  /**
46
48
  * The minimum value for a 32-bit signed integer.
47
49
  *
@@ -60,7 +62,7 @@ export declare const Int32: {
60
62
  * @param a The Int32 value.
61
63
  * @returns The absolute value as an Int32, clamped to valid range.
62
64
  */
63
- readonly abs: (x: WithSmallInt<Int32, 40>) => TsDataForgeInternals.RefinedNumberUtils.ToNonNegative<Int32>;
65
+ readonly abs: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int32>) => TsDataForgeInternals.RefinedNumberUtils.ToNonNegative<TtfImported_Int32>;
64
66
  /**
65
67
  * Returns the smaller of two Int32 values.
66
68
  *
@@ -68,7 +70,7 @@ export declare const Int32: {
68
70
  * @param b The second Int32.
69
71
  * @returns The minimum value as an Int32.
70
72
  */
71
- readonly min: (...values: readonly WithSmallInt<Int32, 40>[]) => Int32;
73
+ readonly min: (...values: readonly import("ts-type-forge").WithSmallInt<TtfImported_Int32>[]) => TtfImported_Int32;
72
74
  /**
73
75
  * Returns the larger of two Int32 values.
74
76
  *
@@ -76,20 +78,20 @@ export declare const Int32: {
76
78
  * @param b The second Int32.
77
79
  * @returns The maximum value as an Int32.
78
80
  */
79
- readonly max: (...values: readonly WithSmallInt<Int32, 40>[]) => Int32;
81
+ readonly max: (...values: readonly import("ts-type-forge").WithSmallInt<TtfImported_Int32>[]) => TtfImported_Int32;
80
82
  /**
81
83
  * Clamps a number to the Int32 range.
82
84
  *
83
85
  * @param value The number to clamp.
84
86
  * @returns The value clamped to [-2147483648, 2147483647] as an Int32.
85
87
  */
86
- readonly clamp: (x: number) => Int32;
88
+ readonly clamp: (x: number) => TtfImported_Int32;
87
89
  /**
88
90
  * Generates a random Int32 value within the valid range.
89
91
  *
90
92
  * @returns A random Int32 between MIN_VALUE and MAX_VALUE.
91
93
  */
92
- readonly random: (min?: WithSmallInt<Int32, 40> | undefined, max?: WithSmallInt<Int32, 40> | undefined) => Int32;
94
+ readonly random: (min?: import("ts-type-forge").WithSmallInt<TtfImported_Int32> | undefined, max?: import("ts-type-forge").WithSmallInt<TtfImported_Int32> | undefined) => TtfImported_Int32;
93
95
  /**
94
96
  * Raises an Int32 to the power of another Int32.
95
97
  *
@@ -97,7 +99,7 @@ export declare const Int32: {
97
99
  * @param b The exponent Int32.
98
100
  * @returns `a ** b` clamped to [-2147483648, 2147483647] as an Int32.
99
101
  */
100
- readonly pow: (x: WithSmallInt<Int32, 40>, y: WithSmallInt<Int32, 40>) => Int32;
102
+ readonly pow: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int32>, y: import("ts-type-forge").WithSmallInt<TtfImported_Int32>) => TtfImported_Int32;
101
103
  /**
102
104
  * Adds two Int32 values.
103
105
  *
@@ -105,7 +107,7 @@ export declare const Int32: {
105
107
  * @param b The second Int32.
106
108
  * @returns `a + b` clamped to [-2147483648, 2147483647] as an Int32.
107
109
  */
108
- readonly add: (x: WithSmallInt<Int32, 40>, y: WithSmallInt<Int32, 40>) => Int32;
110
+ readonly add: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int32>, y: import("ts-type-forge").WithSmallInt<TtfImported_Int32>) => TtfImported_Int32;
109
111
  /**
110
112
  * Subtracts one Int32 from another.
111
113
  *
@@ -113,7 +115,7 @@ export declare const Int32: {
113
115
  * @param b The subtrahend Int32.
114
116
  * @returns `a - b` clamped to [-2147483648, 2147483647] as an Int32.
115
117
  */
116
- readonly sub: (x: WithSmallInt<Int32, 40>, y: WithSmallInt<Int32, 40>) => Int32;
118
+ readonly sub: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int32>, y: import("ts-type-forge").WithSmallInt<TtfImported_Int32>) => TtfImported_Int32;
117
119
  /**
118
120
  * Multiplies two Int32 values.
119
121
  *
@@ -121,7 +123,7 @@ export declare const Int32: {
121
123
  * @param b The second Int32.
122
124
  * @returns `a * b` clamped to [-2147483648, 2147483647] as an Int32.
123
125
  */
124
- readonly mul: (x: WithSmallInt<Int32, 40>, y: WithSmallInt<Int32, 40>) => Int32;
126
+ readonly mul: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int32>, y: import("ts-type-forge").WithSmallInt<TtfImported_Int32>) => TtfImported_Int32;
125
127
  /**
126
128
  * Divides one Int32 by another using floor division.
127
129
  *
@@ -129,18 +131,18 @@ export declare const Int32: {
129
131
  * @param b The divisor Int32.
130
132
  * @returns `⌊a / b⌋` clamped to [-2147483648, 2147483647] as an Int32.
131
133
  */
132
- readonly div: (x: WithSmallInt<Int32, 40>, y: 1 | 2 | 3 | 32 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 24 | 14 | 34 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 33 | 35 | 36 | 37 | 38 | 39 | -1 | -2 | -3 | -32 | -4 | -5 | -6 | -7 | -8 | -9 | -11 | -10 | -24 | -14 | -34 | -12 | -13 | -15 | -16 | -17 | -18 | -19 | -20 | -21 | -22 | -23 | -25 | -26 | -27 | -28 | -29 | -30 | -31 | -33 | -35 | -36 | -37 | -38 | -39 | -40 | NormalizeBrandUnion<number & {
134
+ readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_Int32>, y: 1 | 2 | 3 | 32 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -1 | -2 | -3 | -32 | -40 | -4 | -5 | -6 | -7 | -8 | -9 | -11 | -10 | -20 | -30 | -12 | -13 | -14 | -15 | -16 | -17 | -18 | -19 | -21 | -22 | -23 | -24 | -25 | -26 | -27 | -28 | -29 | -31 | -33 | -34 | -35 | -36 | -37 | -38 | -39 | import("ts-type-forge").NormalizeBrandUnion<number & {
133
135
  readonly NaNValue: false;
136
+ readonly Finite: true;
137
+ readonly Int: true;
134
138
  readonly "!=0": true;
135
139
  readonly "> -2^32": true;
136
140
  readonly ">= -2^31": true;
137
141
  readonly "< 2^31": true;
138
142
  readonly "< 2^32": true;
139
- readonly Finite: true;
140
- readonly Int: true;
141
143
  readonly SafeInt: true;
142
144
  } & Readonly<{
143
145
  'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
144
- }>>) => Int32;
146
+ }>>) => TtfImported_Int32;
145
147
  };
146
148
  //# sourceMappingURL=int32.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"int32.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/int32.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAgCnE;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,2BAAK,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;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 +1 @@
1
- {"version":3,"file":"int32.mjs","sources":["../../../src/number/branded-types/int32.mts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA,MAAM,iBAAiB,GAAG,6BAA6B;AAEvD,MAAM,EACJ,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,QAAQ,EACR,KAAK,EACL,GAAG,EACH,EAAE,EACF,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,IAAI,EACT,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;AACA,IAAA,oBAAoB,EAAE,aAAa;AACnC,IAAA,SAAS,EAAE,WAAU;AACrB,IAAA,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;IACtB,iBAAiB;AACT,CAAA,CAAC;AAEX;;;;;;AAMG;AACI,MAAM,OAAO,GAAG;AAEvB;;;;;;AAMG;AACI,MAAM,OAAO,GAAG;AAEvB;;;;;;;AAOG;AACI,MAAM,KAAK,GAAG;AACnB;;;;;AAKG;IACH,EAAE;AAEF;;;;AAIG;IACH,SAAS;AAET;;;;AAIG;IACH,SAAS;AAET;;;;;AAKG;IACH,GAAG;AAEH;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;AAKG;IACH,KAAK;AAEL;;;;AAIG;IACH,MAAM;AAEN;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;;;;;"}
1
+ {"version":3,"file":"int32.mjs","sources":["../../../src/number/branded-types/int32.mts"],"sourcesContent":[null],"names":[],"mappings":";;AAQA,MAAM,iBAAiB,GAAG,6BAA6B;AAEvD,MAAM,EACJ,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,QAAQ,EACR,KAAK,EACL,GAAG,EACH,EAAE,EACF,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,IAAI,EACT,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;AACA,IAAA,oBAAoB,EAAE,aAAa;AACnC,IAAA,SAAS,EAAE,WAAU;AACrB,IAAA,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;IACtB,iBAAiB;AACT,CAAA,CAAC;AAEX;;;;;;AAMG;AACI,MAAM,OAAO,GAAG;AAEvB;;;;;;AAMG;AACI,MAAM,OAAO,GAAG;AAEvB;;;;;;;AAOG;AACI,MAAM,KAAK,GAAG;AACnB;;;;;AAKG;IACH,EAAE;AAEF;;;;AAIG;IACH,SAAS;AAET;;;;AAIG;IACH,SAAS;AAET;;;;;AAKG;IACH,GAAG;AAEH;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;AAKG;IACH,KAAK;AAEL;;;;AAIG;IACH,MAAM;AAEN;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;;;;;"}
@@ -1,4 +1,6 @@
1
+ import { type NonNegativeFiniteNumber as TtfImported_NonNegativeFiniteNumber } from 'ts-type-forge';
1
2
  import { TsDataForgeInternals } from '../refined-number-utils.mjs';
3
+ export type NonNegativeFiniteNumber = TtfImported_NonNegativeFiniteNumber;
2
4
  type ElementType = NonNegativeFiniteNumber;
3
5
  /**
4
6
  * Checks if a number is a NonNegativeFiniteNumber (a finite number >= 0).
@@ -6,7 +8,7 @@ type ElementType = NonNegativeFiniteNumber;
6
8
  * @param value The value to check.
7
9
  * @returns `true` if the value is a NonNegativeFiniteNumber, `false` otherwise.
8
10
  */
9
- export declare const isNonNegativeFiniteNumber: (a: number) => a is NonNegativeFiniteNumber;
11
+ export declare const isNonNegativeFiniteNumber: (a: number) => a is TtfImported_NonNegativeFiniteNumber;
10
12
  /**
11
13
  * Casts a number to a NonNegativeFiniteNumber type.
12
14
  *
@@ -16,12 +18,12 @@ export declare const isNonNegativeFiniteNumber: (a: number) => a is NonNegativeF
16
18
  */
17
19
  export declare const asNonNegativeFiniteNumber: <N extends number>(x: N) => number & {
18
20
  readonly NaNValue: false;
21
+ readonly Finite: true;
19
22
  readonly "> -2^16": true;
20
23
  readonly "> -2^32": true;
21
24
  readonly ">= -2^15": true;
22
25
  readonly ">= -2^31": true;
23
26
  readonly ">=0": true;
24
- readonly Finite: true;
25
27
  } & Readonly<{
26
28
  'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
27
29
  }> & N;
@@ -42,7 +44,7 @@ export declare const NonNegativeFiniteNumber: {
42
44
  * @returns `true` if the value is a non-negative finite number, `false`
43
45
  * otherwise.
44
46
  */
45
- readonly is: (a: number) => a is NonNegativeFiniteNumber;
47
+ readonly is: (a: number) => a is TtfImported_NonNegativeFiniteNumber;
46
48
  /**
47
49
  * The minimum value for a non-negative finite number.
48
50
  *
@@ -56,7 +58,7 @@ export declare const NonNegativeFiniteNumber: {
56
58
  * @param b The second NonNegativeFiniteNumber.
57
59
  * @returns The minimum value as a NonNegativeFiniteNumber.
58
60
  */
59
- readonly min: (...values: readonly NonNegativeFiniteNumber[]) => NonNegativeFiniteNumber;
61
+ readonly min: (...values: readonly TtfImported_NonNegativeFiniteNumber[]) => TtfImported_NonNegativeFiniteNumber;
60
62
  /**
61
63
  * Returns the larger of two NonNegativeFiniteNumber values.
62
64
  *
@@ -64,14 +66,14 @@ export declare const NonNegativeFiniteNumber: {
64
66
  * @param b The second NonNegativeFiniteNumber.
65
67
  * @returns The maximum value as a NonNegativeFiniteNumber.
66
68
  */
67
- readonly max: (...values: readonly NonNegativeFiniteNumber[]) => NonNegativeFiniteNumber;
69
+ readonly max: (...values: readonly TtfImported_NonNegativeFiniteNumber[]) => TtfImported_NonNegativeFiniteNumber;
68
70
  /**
69
71
  * Clamps a number to the non-negative finite range.
70
72
  *
71
73
  * @param value The number to clamp.
72
74
  * @returns The value clamped to [0, +∞) as a NonNegativeFiniteNumber.
73
75
  */
74
- readonly clamp: (x: number) => NonNegativeFiniteNumber;
76
+ readonly clamp: (x: number) => TtfImported_NonNegativeFiniteNumber;
75
77
  /**
76
78
  * Rounds down a NonNegativeFiniteNumber to the nearest integer.
77
79
  *
@@ -98,7 +100,7 @@ export declare const NonNegativeFiniteNumber: {
98
100
  *
99
101
  * @returns A random non-negative finite number.
100
102
  */
101
- readonly random: (min?: NonNegativeFiniteNumber | undefined, max?: NonNegativeFiniteNumber | undefined) => NonNegativeFiniteNumber;
103
+ readonly random: (min?: TtfImported_NonNegativeFiniteNumber | undefined, max?: TtfImported_NonNegativeFiniteNumber | undefined) => TtfImported_NonNegativeFiniteNumber;
102
104
  /**
103
105
  * Raises a NonNegativeFiniteNumber to the power of another
104
106
  * NonNegativeFiniteNumber.
@@ -107,7 +109,7 @@ export declare const NonNegativeFiniteNumber: {
107
109
  * @param b The exponent NonNegativeFiniteNumber.
108
110
  * @returns `a ** b` clamped to [0, +∞) as a NonNegativeFiniteNumber.
109
111
  */
110
- readonly pow: (x: NonNegativeFiniteNumber, y: NonNegativeFiniteNumber) => NonNegativeFiniteNumber;
112
+ readonly pow: (x: TtfImported_NonNegativeFiniteNumber, y: TtfImported_NonNegativeFiniteNumber) => TtfImported_NonNegativeFiniteNumber;
111
113
  /**
112
114
  * Adds two NonNegativeFiniteNumber values.
113
115
  *
@@ -115,7 +117,7 @@ export declare const NonNegativeFiniteNumber: {
115
117
  * @param b The second NonNegativeFiniteNumber.
116
118
  * @returns `a + b` clamped to [0, +∞) as a NonNegativeFiniteNumber.
117
119
  */
118
- readonly add: (x: NonNegativeFiniteNumber, y: NonNegativeFiniteNumber) => NonNegativeFiniteNumber;
120
+ readonly add: (x: TtfImported_NonNegativeFiniteNumber, y: TtfImported_NonNegativeFiniteNumber) => TtfImported_NonNegativeFiniteNumber;
119
121
  /**
120
122
  * Subtracts one NonNegativeFiniteNumber from another.
121
123
  *
@@ -124,7 +126,7 @@ export declare const NonNegativeFiniteNumber: {
124
126
  * @returns `a - b` clamped to [0, +∞) as a NonNegativeFiniteNumber (minimum
125
127
  * 0).
126
128
  */
127
- readonly sub: (x: NonNegativeFiniteNumber, y: NonNegativeFiniteNumber) => NonNegativeFiniteNumber;
129
+ readonly sub: (x: TtfImported_NonNegativeFiniteNumber, y: TtfImported_NonNegativeFiniteNumber) => TtfImported_NonNegativeFiniteNumber;
128
130
  /**
129
131
  * Multiplies two NonNegativeFiniteNumber values.
130
132
  *
@@ -132,7 +134,7 @@ export declare const NonNegativeFiniteNumber: {
132
134
  * @param b The second NonNegativeFiniteNumber.
133
135
  * @returns `a * b` clamped to [0, +∞) as a NonNegativeFiniteNumber.
134
136
  */
135
- readonly mul: (x: NonNegativeFiniteNumber, y: NonNegativeFiniteNumber) => NonNegativeFiniteNumber;
137
+ readonly mul: (x: TtfImported_NonNegativeFiniteNumber, y: TtfImported_NonNegativeFiniteNumber) => TtfImported_NonNegativeFiniteNumber;
136
138
  /**
137
139
  * Divides one NonNegativeFiniteNumber by another.
138
140
  *
@@ -140,18 +142,18 @@ export declare const NonNegativeFiniteNumber: {
140
142
  * @param b The divisor NonNegativeFiniteNumber.
141
143
  * @returns `a / b` clamped to [0, +∞) as a NonNegativeFiniteNumber.
142
144
  */
143
- readonly div: (x: NonNegativeFiniteNumber, y: number & {
145
+ readonly div: (x: TtfImported_NonNegativeFiniteNumber, y: number & {
144
146
  readonly NaNValue: false;
147
+ readonly Finite: true;
145
148
  readonly "!=0": true;
146
149
  readonly "> -2^16": true;
147
150
  readonly "> -2^32": true;
148
151
  readonly ">= -2^15": true;
149
152
  readonly ">= -2^31": true;
150
153
  readonly ">=0": true;
151
- readonly Finite: true;
152
154
  } & Readonly<{
153
155
  'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
154
- }>) => NonNegativeFiniteNumber;
156
+ }>) => TtfImported_NonNegativeFiniteNumber;
155
157
  };
156
158
  export {};
157
159
  //# sourceMappingURL=non-negative-finite-number.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"non-negative-finite-number.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/non-negative-finite-number.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,KAAK,WAAW,GAAG,uBAAuB,CAAC;AAiD3C;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,6CAAK,CAAC;AAE5C;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;MAAW,CAAC;AAElD;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB;IAClC;;;;;;OAMG;;IAGH;;;;OAIG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;OAKG;;IAGH;;;;;OAKG;wBA/FA,WAAW,KACb,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,CAAC,WAAW,CAAC;IAiG3D;;;;;OAKG;uBAjGA,WAAW,KACb,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,CAAC,WAAW,CAAC;IAmG3D;;;;;OAKG;wBAnGA,WAAW,KACb,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,CAAC,WAAW,CAAC;IAqG3D;;;;OAIG;;IAGH;;;;;;;OAOG;;IAGH;;;;;;OAMG;;IAGH;;;;;;;OAOG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;;;;;;;;;;;;CAEK,CAAC"}
1
+ {"version":3,"file":"non-negative-finite-number.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/non-negative-finite-number.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,IAAI,mCAAmC,EAEpE,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,MAAM,uBAAuB,GAAG,mCAAmC,CAAC;AAE1E,KAAK,WAAW,GAAG,uBAAuB,CAAC;AAiD3C;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,yDAAK,CAAC;AAE5C;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;MAAW,CAAC;AAElD;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB;IAClC;;;;;;OAMG;;IAGH;;;;OAIG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;OAKG;;IAGH;;;;;OAKG;wBA/FA,WAAW,KACb,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,CAAC,WAAW,CAAC;IAiG3D;;;;;OAKG;uBAjGA,WAAW,KACb,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,CAAC,WAAW,CAAC;IAmG3D;;;;;OAKG;wBAnGA,WAAW,KACb,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,CAAC,WAAW,CAAC;IAqG3D;;;;OAIG;;IAGH;;;;;;;OAOG;;IAGH;;;;;;OAMG;;IAGH;;;;;;;OAOG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;;;;;;;;;;;;CAEK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"non-negative-finite-number.mjs","sources":["../../../src/number/branded-types/non-negative-finite-number.mts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA,MAAM,iBAAiB,GAAG,8BAA8B;AAExD,MAAM,EACJ,SAAS,EACT,GAAG,EACH,QAAQ,EACR,KAAK,EACL,GAAG,EACH,EAAE,EACF,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,IAAI,EACT,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,iBAAiB,CAI3D;AACA,IAAA,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC,SAAS;IAC3B,iBAAiB;AACT,CAAA,CAAC;AAEX,MAAM,KAAK,GAAG,CACZ,CAAc;AAEd;AACA,IAAI,CAAC,KAAK,CAAC,CAAC,CAA+D;AAE7E,MAAM,IAAI,GAAG,CACX,CAAc;AAEd;AACA,IAAI,CAAC,IAAI,CAAC,CAAC,CAA+D;AAE5E,MAAM,KAAK,GAAG,CACZ,CAAc;AAEd;AACA,IAAI,CAAC,KAAK,CAAC,CAAC,CAA+D;AAM7E;;;;;AAKG;AACI,MAAM,yBAAyB,GAAG;AAEzC;;;;;;AAMG;AACI,MAAM,yBAAyB,GAAG;AAEzC;;;;;;;;AAQG;AACI,MAAM,uBAAuB,GAAG;AACrC;;;;;;AAMG;IACH,EAAE;AAEF;;;;AAIG;IACH,SAAS;AAET;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;AAKG;IACH,KAAK;AAEL;;;;;AAKG;IACH,KAAK;AAEL;;;;;AAKG;IACH,IAAI;AAEJ;;;;;AAKG;IACH,KAAK;AAEL;;;;AAIG;IACH,MAAM;AAEN;;;;;;;AAOG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;;AAOG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;;;;;"}
1
+ {"version":3,"file":"non-negative-finite-number.mjs","sources":["../../../src/number/branded-types/non-negative-finite-number.mts"],"sourcesContent":[null],"names":[],"mappings":";;AAWA,MAAM,iBAAiB,GAAG,8BAA8B;AAExD,MAAM,EACJ,SAAS,EACT,GAAG,EACH,QAAQ,EACR,KAAK,EACL,GAAG,EACH,EAAE,EACF,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,IAAI,EACT,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,iBAAiB,CAI3D;AACA,IAAA,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC,SAAS;IAC3B,iBAAiB;AACT,CAAA,CAAC;AAEX,MAAM,KAAK,GAAG,CACZ,CAAc;AAEd;AACA,IAAI,CAAC,KAAK,CAAC,CAAC,CAA+D;AAE7E,MAAM,IAAI,GAAG,CACX,CAAc;AAEd;AACA,IAAI,CAAC,IAAI,CAAC,CAAC,CAA+D;AAE5E,MAAM,KAAK,GAAG,CACZ,CAAc;AAEd;AACA,IAAI,CAAC,KAAK,CAAC,CAAC,CAA+D;AAM7E;;;;;AAKG;AACI,MAAM,yBAAyB,GAAG;AAEzC;;;;;;AAMG;AACI,MAAM,yBAAyB,GAAG;AAEzC;;;;;;;;AAQG;AACI,MAAM,uBAAuB,GAAG;AACrC;;;;;;AAMG;IACH,EAAE;AAEF;;;;AAIG;IACH,SAAS;AAET;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;AAKG;IACH,KAAK;AAEL;;;;;AAKG;IACH,KAAK;AAEL;;;;;AAKG;IACH,IAAI;AAEJ;;;;;AAKG;IACH,KAAK;AAEL;;;;AAIG;IACH,MAAM;AAEN;;;;;;;AAOG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;;AAOG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;;;;;"}
@@ -1,3 +1,5 @@
1
+ import { type NonNegativeInt16 as TtfImported_NonNegativeInt16 } from 'ts-type-forge';
2
+ export type NonNegativeInt16 = TtfImported_NonNegativeInt16;
1
3
  /**
2
4
  * Checks if a number is a NonNegativeInt16 (16-bit non-negative signed integer
3
5
  * in the range [0, 2^15)).
@@ -5,7 +7,7 @@
5
7
  * @param value The value to check.
6
8
  * @returns `true` if the value is a NonNegativeInt16, `false` otherwise.
7
9
  */
8
- export declare const isNonNegativeInt16: (a: number) => a is NonNegativeInt16;
10
+ export declare const isNonNegativeInt16: (a: number) => a is TtfImported_NonNegativeInt16;
9
11
  /**
10
12
  * Casts a number to a NonNegativeInt16 type.
11
13
  *
@@ -15,6 +17,8 @@ export declare const isNonNegativeInt16: (a: number) => a is NonNegativeInt16;
15
17
  */
16
18
  export declare const asNonNegativeInt16: <N extends number>(x: N) => number & {
17
19
  readonly NaNValue: false;
20
+ readonly Finite: true;
21
+ readonly Int: true;
18
22
  readonly "> -2^16": true;
19
23
  readonly "> -2^32": true;
20
24
  readonly ">= -2^15": true;
@@ -24,8 +28,6 @@ export declare const asNonNegativeInt16: <N extends number>(x: N) => number & {
24
28
  readonly "< 2^16": true;
25
29
  readonly "< 2^31": true;
26
30
  readonly "< 2^32": true;
27
- readonly Finite: true;
28
- readonly Int: true;
29
31
  readonly SafeInt: true;
30
32
  } & Readonly<{
31
33
  'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
@@ -47,7 +49,7 @@ export declare const NonNegativeInt16: {
47
49
  * @returns `true` if the value is a 16-bit non-negative integer, `false`
48
50
  * otherwise.
49
51
  */
50
- readonly is: (a: number) => a is NonNegativeInt16;
52
+ readonly is: (a: number) => a is TtfImported_NonNegativeInt16;
51
53
  /**
52
54
  * The minimum value for a 16-bit non-negative integer.
53
55
  *
@@ -67,7 +69,7 @@ export declare const NonNegativeInt16: {
67
69
  * @param b The second NonNegativeInt16.
68
70
  * @returns The minimum value as a NonNegativeInt16.
69
71
  */
70
- readonly min: (...values: readonly WithSmallInt<NonNegativeInt16, 40>[]) => NonNegativeInt16;
72
+ readonly min: (...values: readonly import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt16>[]) => TtfImported_NonNegativeInt16;
71
73
  /**
72
74
  * Returns the larger of two NonNegativeInt16 values.
73
75
  *
@@ -75,20 +77,20 @@ export declare const NonNegativeInt16: {
75
77
  * @param b The second NonNegativeInt16.
76
78
  * @returns The maximum value as a NonNegativeInt16.
77
79
  */
78
- readonly max: (...values: readonly WithSmallInt<NonNegativeInt16, 40>[]) => NonNegativeInt16;
80
+ readonly max: (...values: readonly import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt16>[]) => TtfImported_NonNegativeInt16;
79
81
  /**
80
82
  * Clamps a number to the NonNegativeInt16 range.
81
83
  *
82
84
  * @param value The number to clamp.
83
85
  * @returns The value clamped to [0, 32767] as a NonNegativeInt16.
84
86
  */
85
- readonly clamp: (x: number) => NonNegativeInt16;
87
+ readonly clamp: (x: number) => TtfImported_NonNegativeInt16;
86
88
  /**
87
89
  * Generates a random NonNegativeInt16 value within the valid range.
88
90
  *
89
91
  * @returns A random NonNegativeInt16 between 0 and 32767.
90
92
  */
91
- readonly random: (min?: WithSmallInt<NonNegativeInt16, 40> | undefined, max?: WithSmallInt<NonNegativeInt16, 40> | undefined) => NonNegativeInt16;
93
+ readonly random: (min?: import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt16> | undefined, max?: import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt16> | undefined) => TtfImported_NonNegativeInt16;
92
94
  /**
93
95
  * Raises a NonNegativeInt16 to the power of another NonNegativeInt16.
94
96
  *
@@ -96,7 +98,7 @@ export declare const NonNegativeInt16: {
96
98
  * @param b The exponent NonNegativeInt16.
97
99
  * @returns `a ** b` clamped to [0, 32767] as a NonNegativeInt16.
98
100
  */
99
- readonly pow: (x: WithSmallInt<NonNegativeInt16, 40>, y: WithSmallInt<NonNegativeInt16, 40>) => NonNegativeInt16;
101
+ readonly pow: (x: import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt16>, y: import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt16>) => TtfImported_NonNegativeInt16;
100
102
  /**
101
103
  * Adds two NonNegativeInt16 values.
102
104
  *
@@ -104,7 +106,7 @@ export declare const NonNegativeInt16: {
104
106
  * @param b The second NonNegativeInt16.
105
107
  * @returns `a + b` clamped to [0, 32767] as a NonNegativeInt16.
106
108
  */
107
- readonly add: (x: WithSmallInt<NonNegativeInt16, 40>, y: WithSmallInt<NonNegativeInt16, 40>) => NonNegativeInt16;
109
+ readonly add: (x: import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt16>, y: import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt16>) => TtfImported_NonNegativeInt16;
108
110
  /**
109
111
  * Subtracts one NonNegativeInt16 from another.
110
112
  *
@@ -112,7 +114,7 @@ export declare const NonNegativeInt16: {
112
114
  * @param b The subtrahend NonNegativeInt16.
113
115
  * @returns `a - b` clamped to [0, 32767] as a NonNegativeInt16 (minimum 0).
114
116
  */
115
- readonly sub: (x: WithSmallInt<NonNegativeInt16, 40>, y: WithSmallInt<NonNegativeInt16, 40>) => NonNegativeInt16;
117
+ readonly sub: (x: import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt16>, y: import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt16>) => TtfImported_NonNegativeInt16;
116
118
  /**
117
119
  * Multiplies two NonNegativeInt16 values.
118
120
  *
@@ -120,7 +122,7 @@ export declare const NonNegativeInt16: {
120
122
  * @param b The second NonNegativeInt16.
121
123
  * @returns `a * b` clamped to [0, 32767] as a NonNegativeInt16.
122
124
  */
123
- readonly mul: (x: WithSmallInt<NonNegativeInt16, 40>, y: WithSmallInt<NonNegativeInt16, 40>) => NonNegativeInt16;
125
+ readonly mul: (x: import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt16>, y: import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt16>) => TtfImported_NonNegativeInt16;
124
126
  /**
125
127
  * Divides one NonNegativeInt16 by another using floor division.
126
128
  *
@@ -128,8 +130,10 @@ export declare const NonNegativeInt16: {
128
130
  * @param b The divisor NonNegativeInt16.
129
131
  * @returns `⌊a / b⌋` clamped to [0, 32767] as a NonNegativeInt16.
130
132
  */
131
- readonly div: (x: WithSmallInt<NonNegativeInt16, 40>, y: 1 | 2 | 3 | 32 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 24 | 14 | 34 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 33 | 35 | 36 | 37 | 38 | 39 | NormalizeBrandUnion<number & {
133
+ readonly div: (x: import("ts-type-forge").WithSmallInt<TtfImported_NonNegativeInt16>, y: 1 | 2 | 3 | 32 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 10 | 20 | 30 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | import("ts-type-forge").NormalizeBrandUnion<number & {
132
134
  readonly NaNValue: false;
135
+ readonly Finite: true;
136
+ readonly Int: true;
133
137
  readonly "!=0": true;
134
138
  readonly "> -2^16": true;
135
139
  readonly "> -2^32": true;
@@ -140,11 +144,9 @@ export declare const NonNegativeInt16: {
140
144
  readonly "< 2^16": true;
141
145
  readonly "< 2^31": true;
142
146
  readonly "< 2^32": true;
143
- readonly Finite: true;
144
- readonly Int: true;
145
147
  readonly SafeInt: true;
146
148
  } & Readonly<{
147
149
  'TSTypeForgeInternals--edd2f9ce-7ca5-45b0-9d1a-bd61b9b5d9c3': unknown;
148
- }>>) => NonNegativeInt16;
150
+ }>>) => TtfImported_NonNegativeInt16;
149
151
  };
150
152
  //# sourceMappingURL=non-negative-int16.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"non-negative-int16.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/non-negative-int16.mts"],"names":[],"mappings":"AAgCA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,sCAAK,CAAC;AAErC;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;MAAW,CAAC;AAE3C;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;;;;;OAMG;;IAGH;;;;OAIG;;IAGH;;;;OAIG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;OAKG;;IAGH;;;;OAIG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;;;;;;;;;;;;;;;;;;CAEK,CAAC"}
1
+ {"version":3,"file":"non-negative-int16.d.mts","sourceRoot":"","sources":["../../../src/number/branded-types/non-negative-int16.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,IAAI,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAItF,MAAM,MAAM,gBAAgB,GAAG,4BAA4B,CAAC;AA+B5D;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,kDAAK,CAAC;AAErC;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;MAAW,CAAC;AAE3C;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;;;;;OAMG;;IAGH;;;;OAIG;;IAGH;;;;OAIG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;OAKG;;IAGH;;;;OAIG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;IAGH;;;;;;OAMG;;;;;;;;;;;;;;;;;;;CAEK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"non-negative-int16.mjs","sources":["../../../src/number/branded-types/non-negative-int16.mts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA,MAAM,iBAAiB,GAAG,qCAAqC;AAE/D,MAAM,EACJ,SAAS,EACT,SAAS,EACT,GAAG,EACH,QAAQ,EACR,KAAK,EACL,GAAG,EACH,EAAE,EACF,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,IAAI,EACT,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;AACA,IAAA,oBAAoB,EAAE,aAAa;AACnC,IAAA,SAAS,EAAE,CAAC;AACZ,IAAA,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;IACtB,iBAAiB;AACT,CAAA,CAAC;AAEX;;;;;;AAMG;AACI,MAAM,kBAAkB,GAAG;AAElC;;;;;;AAMG;AACI,MAAM,kBAAkB,GAAG;AAElC;;;;;;;;AAQG;AACI,MAAM,gBAAgB,GAAG;AAC9B;;;;;;AAMG;IACH,EAAE;AAEF;;;;AAIG;IACH,SAAS;AAET;;;;AAIG;IACH,SAAS;AAET;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;AAKG;IACH,KAAK;AAEL;;;;AAIG;IACH,MAAM;AAEN;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;;;;;"}
1
+ {"version":3,"file":"non-negative-int16.mjs","sources":["../../../src/number/branded-types/non-negative-int16.mts"],"sourcesContent":[null],"names":[],"mappings":";;AAQA,MAAM,iBAAiB,GAAG,qCAAqC;AAE/D,MAAM,EACJ,SAAS,EACT,SAAS,EACT,GAAG,EACH,QAAQ,EACR,KAAK,EACL,GAAG,EACH,EAAE,EACF,GAAG,EAAE,IAAI,EACT,GAAG,EAAE,IAAI,EACT,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,GACJ,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,mBAAmB,CAI7D;AACA,IAAA,oBAAoB,EAAE,aAAa;AACnC,IAAA,SAAS,EAAE,CAAC;AACZ,IAAA,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC;IACtB,iBAAiB;AACT,CAAA,CAAC;AAEX;;;;;;AAMG;AACI,MAAM,kBAAkB,GAAG;AAElC;;;;;;AAMG;AACI,MAAM,kBAAkB,GAAG;AAElC;;;;;;;;AAQG;AACI,MAAM,gBAAgB,GAAG;AAC9B;;;;;;AAMG;IACH,EAAE;AAEF;;;;AAIG;IACH,SAAS;AAET;;;;AAIG;IACH,SAAS;AAET;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;;AAMG;AACH,IAAA,GAAG,EAAE,IAAI;AAET;;;;;AAKG;IACH,KAAK;AAEL;;;;AAIG;IACH,MAAM;AAEN;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;AAEH;;;;;;AAMG;IACH,GAAG;;;;;"}