effect 3.13.8 → 3.13.9

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 (333) hide show
  1. package/dist/cjs/Array.js +460 -431
  2. package/dist/cjs/Array.js.map +1 -1
  3. package/dist/cjs/BigDecimal.js +31 -89
  4. package/dist/cjs/BigDecimal.js.map +1 -1
  5. package/dist/cjs/BigInt.js +27 -71
  6. package/dist/cjs/BigInt.js.map +1 -1
  7. package/dist/cjs/Boolean.js +12 -10
  8. package/dist/cjs/Boolean.js.map +1 -1
  9. package/dist/cjs/Brand.js +2 -0
  10. package/dist/cjs/Brand.js.map +1 -1
  11. package/dist/cjs/Channel.js +0 -2
  12. package/dist/cjs/Channel.js.map +1 -1
  13. package/dist/cjs/Chunk.js +4 -0
  14. package/dist/cjs/Chunk.js.map +1 -1
  15. package/dist/cjs/Config.js +0 -5
  16. package/dist/cjs/Config.js.map +1 -1
  17. package/dist/cjs/Context.js +14 -24
  18. package/dist/cjs/Context.js.map +1 -1
  19. package/dist/cjs/Cron.js +11 -25
  20. package/dist/cjs/Cron.js.map +1 -1
  21. package/dist/cjs/Data.js +6 -0
  22. package/dist/cjs/Data.js.map +1 -1
  23. package/dist/cjs/DateTime.js +2 -0
  24. package/dist/cjs/DateTime.js.map +1 -1
  25. package/dist/cjs/Duration.js +2 -2
  26. package/dist/cjs/Effect.js +122 -53
  27. package/dist/cjs/Effect.js.map +1 -1
  28. package/dist/cjs/Either.js +21 -25
  29. package/dist/cjs/Either.js.map +1 -1
  30. package/dist/cjs/Encoding.js +1 -1
  31. package/dist/cjs/Equivalence.js +1 -1
  32. package/dist/cjs/Function.js +21 -24
  33. package/dist/cjs/Function.js.map +1 -1
  34. package/dist/cjs/HashMap.js +0 -3
  35. package/dist/cjs/HashMap.js.map +1 -1
  36. package/dist/cjs/Iterable.js +9 -2
  37. package/dist/cjs/Iterable.js.map +1 -1
  38. package/dist/cjs/List.js +2 -0
  39. package/dist/cjs/List.js.map +1 -1
  40. package/dist/cjs/Logger.js +0 -2
  41. package/dist/cjs/Logger.js.map +1 -1
  42. package/dist/cjs/Mailbox.js +1 -0
  43. package/dist/cjs/Mailbox.js.map +1 -1
  44. package/dist/cjs/ManagedRuntime.js +0 -2
  45. package/dist/cjs/ManagedRuntime.js.map +1 -1
  46. package/dist/cjs/Metric.js +6 -12
  47. package/dist/cjs/Metric.js.map +1 -1
  48. package/dist/cjs/Number.js +22 -61
  49. package/dist/cjs/Number.js.map +1 -1
  50. package/dist/cjs/Option.js +5 -0
  51. package/dist/cjs/Option.js.map +1 -1
  52. package/dist/cjs/Order.js +1 -0
  53. package/dist/cjs/Order.js.map +1 -1
  54. package/dist/cjs/Ordering.js +2 -7
  55. package/dist/cjs/Ordering.js.map +1 -1
  56. package/dist/cjs/Pool.js +1 -1
  57. package/dist/cjs/Predicate.js +36 -77
  58. package/dist/cjs/Predicate.js.map +1 -1
  59. package/dist/cjs/Random.js +1 -2
  60. package/dist/cjs/Random.js.map +1 -1
  61. package/dist/cjs/RcMap.js +5 -2
  62. package/dist/cjs/RcMap.js.map +1 -1
  63. package/dist/cjs/Record.js +28 -107
  64. package/dist/cjs/Record.js.map +1 -1
  65. package/dist/cjs/Redacted.js +3 -0
  66. package/dist/cjs/Redacted.js.map +1 -1
  67. package/dist/cjs/RegExp.js +2 -2
  68. package/dist/cjs/RegExp.js.map +1 -1
  69. package/dist/cjs/STM.js +3 -5
  70. package/dist/cjs/STM.js.map +1 -1
  71. package/dist/cjs/Schedule.js +2 -2
  72. package/dist/cjs/Schema.js +14 -13
  73. package/dist/cjs/Schema.js.map +1 -1
  74. package/dist/cjs/SchemaAST.js +0 -2
  75. package/dist/cjs/SchemaAST.js.map +1 -1
  76. package/dist/cjs/Sink.js +14 -10
  77. package/dist/cjs/Sink.js.map +1 -1
  78. package/dist/cjs/Stream.js +24 -25
  79. package/dist/cjs/Stream.js.map +1 -1
  80. package/dist/cjs/String.js +31 -2
  81. package/dist/cjs/String.js.map +1 -1
  82. package/dist/cjs/Struct.js +6 -0
  83. package/dist/cjs/Struct.js.map +1 -1
  84. package/dist/cjs/Symbol.js +1 -2
  85. package/dist/cjs/Symbol.js.map +1 -1
  86. package/dist/cjs/TestClock.js.map +1 -1
  87. package/dist/cjs/Trie.js +28 -0
  88. package/dist/cjs/Trie.js.map +1 -1
  89. package/dist/cjs/Tuple.js +9 -24
  90. package/dist/cjs/Tuple.js.map +1 -1
  91. package/dist/cjs/internal/matcher.js +1 -1
  92. package/dist/cjs/internal/matcher.js.map +1 -1
  93. package/dist/cjs/internal/version.js +1 -1
  94. package/dist/dts/Array.d.ts +1235 -1188
  95. package/dist/dts/Array.d.ts.map +1 -1
  96. package/dist/dts/BigDecimal.d.ts +61 -189
  97. package/dist/dts/BigDecimal.d.ts.map +1 -1
  98. package/dist/dts/BigInt.d.ts +57 -165
  99. package/dist/dts/BigInt.d.ts.map +1 -1
  100. package/dist/dts/Boolean.d.ts +28 -18
  101. package/dist/dts/Boolean.d.ts.map +1 -1
  102. package/dist/dts/Brand.d.ts +3 -3
  103. package/dist/dts/Brand.d.ts.map +1 -1
  104. package/dist/dts/Channel.d.ts +0 -6
  105. package/dist/dts/Channel.d.ts.map +1 -1
  106. package/dist/dts/Chunk.d.ts +15 -0
  107. package/dist/dts/Chunk.d.ts.map +1 -1
  108. package/dist/dts/Config.d.ts +0 -5
  109. package/dist/dts/Config.d.ts.map +1 -1
  110. package/dist/dts/Context.d.ts +26 -54
  111. package/dist/dts/Context.d.ts.map +1 -1
  112. package/dist/dts/Cron.d.ts +9 -23
  113. package/dist/dts/Cron.d.ts.map +1 -1
  114. package/dist/dts/Data.d.ts +8 -0
  115. package/dist/dts/Data.d.ts.map +1 -1
  116. package/dist/dts/DateTime.d.ts +6 -0
  117. package/dist/dts/DateTime.d.ts.map +1 -1
  118. package/dist/dts/Duration.d.ts +2 -2
  119. package/dist/dts/Effect.d.ts +153 -71
  120. package/dist/dts/Effect.d.ts.map +1 -1
  121. package/dist/dts/Either.d.ts +44 -57
  122. package/dist/dts/Either.d.ts.map +1 -1
  123. package/dist/dts/Encoding.d.ts +1 -1
  124. package/dist/dts/Equivalence.d.ts +1 -1
  125. package/dist/dts/Function.d.ts +55 -59
  126. package/dist/dts/Function.d.ts.map +1 -1
  127. package/dist/dts/HashMap.d.ts +0 -9
  128. package/dist/dts/HashMap.d.ts.map +1 -1
  129. package/dist/dts/Iterable.d.ts +13 -2
  130. package/dist/dts/Iterable.d.ts.map +1 -1
  131. package/dist/dts/List.d.ts +10 -0
  132. package/dist/dts/List.d.ts.map +1 -1
  133. package/dist/dts/Logger.d.ts +0 -6
  134. package/dist/dts/Logger.d.ts.map +1 -1
  135. package/dist/dts/Mailbox.d.ts +1 -0
  136. package/dist/dts/Mailbox.d.ts.map +1 -1
  137. package/dist/dts/ManagedRuntime.d.ts +0 -2
  138. package/dist/dts/ManagedRuntime.d.ts.map +1 -1
  139. package/dist/dts/Metric.d.ts +14 -20
  140. package/dist/dts/Metric.d.ts.map +1 -1
  141. package/dist/dts/Micro.d.ts +1 -1
  142. package/dist/dts/Number.d.ts +52 -155
  143. package/dist/dts/Number.d.ts.map +1 -1
  144. package/dist/dts/Option.d.ts +12 -0
  145. package/dist/dts/Option.d.ts.map +1 -1
  146. package/dist/dts/Order.d.ts +1 -0
  147. package/dist/dts/Order.d.ts.map +1 -1
  148. package/dist/dts/Ordering.d.ts +4 -17
  149. package/dist/dts/Ordering.d.ts.map +1 -1
  150. package/dist/dts/Pool.d.ts +1 -1
  151. package/dist/dts/Predicate.d.ts +56 -133
  152. package/dist/dts/Predicate.d.ts.map +1 -1
  153. package/dist/dts/Random.d.ts +1 -2
  154. package/dist/dts/Random.d.ts.map +1 -1
  155. package/dist/dts/RcMap.d.ts +15 -6
  156. package/dist/dts/RcMap.d.ts.map +1 -1
  157. package/dist/dts/Record.d.ts +68 -279
  158. package/dist/dts/Record.d.ts.map +1 -1
  159. package/dist/dts/Redacted.d.ts +3 -0
  160. package/dist/dts/Redacted.d.ts.map +1 -1
  161. package/dist/dts/RegExp.d.ts +2 -2
  162. package/dist/dts/RegExp.d.ts.map +1 -1
  163. package/dist/dts/STM.d.ts +5 -7
  164. package/dist/dts/STM.d.ts.map +1 -1
  165. package/dist/dts/Schedule.d.ts +7 -7
  166. package/dist/dts/Schema.d.ts +31 -25
  167. package/dist/dts/Schema.d.ts.map +1 -1
  168. package/dist/dts/SchemaAST.d.ts +0 -2
  169. package/dist/dts/SchemaAST.d.ts.map +1 -1
  170. package/dist/dts/Sink.d.ts +14 -10
  171. package/dist/dts/Sink.d.ts.map +1 -1
  172. package/dist/dts/Stream.d.ts +58 -62
  173. package/dist/dts/Stream.d.ts.map +1 -1
  174. package/dist/dts/String.d.ts +47 -2
  175. package/dist/dts/String.d.ts.map +1 -1
  176. package/dist/dts/Struct.d.ts +12 -0
  177. package/dist/dts/Struct.d.ts.map +1 -1
  178. package/dist/dts/Symbol.d.ts +1 -2
  179. package/dist/dts/Symbol.d.ts.map +1 -1
  180. package/dist/dts/TestClock.d.ts +2 -1
  181. package/dist/dts/TestClock.d.ts.map +1 -1
  182. package/dist/dts/Trie.d.ts +66 -0
  183. package/dist/dts/Trie.d.ts.map +1 -1
  184. package/dist/dts/Tuple.d.ts +21 -62
  185. package/dist/dts/Tuple.d.ts.map +1 -1
  186. package/dist/dts/Utils.d.ts +8 -8
  187. package/dist/esm/Array.js +474 -442
  188. package/dist/esm/Array.js.map +1 -1
  189. package/dist/esm/BigDecimal.js +31 -89
  190. package/dist/esm/BigDecimal.js.map +1 -1
  191. package/dist/esm/BigInt.js +27 -71
  192. package/dist/esm/BigInt.js.map +1 -1
  193. package/dist/esm/Boolean.js +12 -10
  194. package/dist/esm/Boolean.js.map +1 -1
  195. package/dist/esm/Brand.js +2 -0
  196. package/dist/esm/Brand.js.map +1 -1
  197. package/dist/esm/Channel.js +0 -2
  198. package/dist/esm/Channel.js.map +1 -1
  199. package/dist/esm/Chunk.js +4 -0
  200. package/dist/esm/Chunk.js.map +1 -1
  201. package/dist/esm/Config.js +0 -5
  202. package/dist/esm/Config.js.map +1 -1
  203. package/dist/esm/Context.js +14 -24
  204. package/dist/esm/Context.js.map +1 -1
  205. package/dist/esm/Cron.js +11 -25
  206. package/dist/esm/Cron.js.map +1 -1
  207. package/dist/esm/Data.js +7 -0
  208. package/dist/esm/Data.js.map +1 -1
  209. package/dist/esm/DateTime.js +2 -0
  210. package/dist/esm/DateTime.js.map +1 -1
  211. package/dist/esm/Duration.js +2 -2
  212. package/dist/esm/Effect.js +123 -53
  213. package/dist/esm/Effect.js.map +1 -1
  214. package/dist/esm/Either.js +22 -25
  215. package/dist/esm/Either.js.map +1 -1
  216. package/dist/esm/Encoding.js +1 -1
  217. package/dist/esm/Equivalence.js +1 -1
  218. package/dist/esm/Function.js +21 -24
  219. package/dist/esm/Function.js.map +1 -1
  220. package/dist/esm/HashMap.js +0 -3
  221. package/dist/esm/HashMap.js.map +1 -1
  222. package/dist/esm/Iterable.js +9 -2
  223. package/dist/esm/Iterable.js.map +1 -1
  224. package/dist/esm/List.js +2 -0
  225. package/dist/esm/List.js.map +1 -1
  226. package/dist/esm/Logger.js +0 -2
  227. package/dist/esm/Logger.js.map +1 -1
  228. package/dist/esm/Mailbox.js +1 -0
  229. package/dist/esm/Mailbox.js.map +1 -1
  230. package/dist/esm/ManagedRuntime.js +0 -2
  231. package/dist/esm/ManagedRuntime.js.map +1 -1
  232. package/dist/esm/Metric.js +6 -12
  233. package/dist/esm/Metric.js.map +1 -1
  234. package/dist/esm/Micro.js +1 -1
  235. package/dist/esm/Number.js +22 -61
  236. package/dist/esm/Number.js.map +1 -1
  237. package/dist/esm/Option.js +6 -0
  238. package/dist/esm/Option.js.map +1 -1
  239. package/dist/esm/Order.js +1 -0
  240. package/dist/esm/Order.js.map +1 -1
  241. package/dist/esm/Ordering.js +2 -7
  242. package/dist/esm/Ordering.js.map +1 -1
  243. package/dist/esm/Pool.js +1 -1
  244. package/dist/esm/Predicate.js +36 -77
  245. package/dist/esm/Predicate.js.map +1 -1
  246. package/dist/esm/Random.js +1 -2
  247. package/dist/esm/Random.js.map +1 -1
  248. package/dist/esm/RcMap.js +5 -2
  249. package/dist/esm/RcMap.js.map +1 -1
  250. package/dist/esm/Record.js +28 -107
  251. package/dist/esm/Record.js.map +1 -1
  252. package/dist/esm/Redacted.js +3 -0
  253. package/dist/esm/Redacted.js.map +1 -1
  254. package/dist/esm/RegExp.js +2 -2
  255. package/dist/esm/RegExp.js.map +1 -1
  256. package/dist/esm/STM.js +3 -5
  257. package/dist/esm/STM.js.map +1 -1
  258. package/dist/esm/Schedule.js +2 -2
  259. package/dist/esm/Schema.js +14 -13
  260. package/dist/esm/Schema.js.map +1 -1
  261. package/dist/esm/SchemaAST.js +0 -2
  262. package/dist/esm/SchemaAST.js.map +1 -1
  263. package/dist/esm/Sink.js +14 -10
  264. package/dist/esm/Sink.js.map +1 -1
  265. package/dist/esm/Stream.js +25 -25
  266. package/dist/esm/Stream.js.map +1 -1
  267. package/dist/esm/String.js +31 -2
  268. package/dist/esm/String.js.map +1 -1
  269. package/dist/esm/Struct.js +6 -0
  270. package/dist/esm/Struct.js.map +1 -1
  271. package/dist/esm/Symbol.js +1 -2
  272. package/dist/esm/Symbol.js.map +1 -1
  273. package/dist/esm/TestClock.js.map +1 -1
  274. package/dist/esm/Trie.js +28 -0
  275. package/dist/esm/Trie.js.map +1 -1
  276. package/dist/esm/Tuple.js +11 -30
  277. package/dist/esm/Tuple.js.map +1 -1
  278. package/dist/esm/internal/matcher.js +1 -1
  279. package/dist/esm/internal/matcher.js.map +1 -1
  280. package/dist/esm/internal/version.js +1 -1
  281. package/package.json +1 -1
  282. package/src/Array.ts +1235 -1188
  283. package/src/BigDecimal.ts +61 -189
  284. package/src/BigInt.ts +57 -165
  285. package/src/Boolean.ts +28 -18
  286. package/src/Brand.ts +3 -3
  287. package/src/Channel.ts +0 -6
  288. package/src/Chunk.ts +16 -0
  289. package/src/Config.ts +0 -5
  290. package/src/Context.ts +26 -54
  291. package/src/Cron.ts +11 -25
  292. package/src/Data.ts +8 -0
  293. package/src/DateTime.ts +6 -0
  294. package/src/Duration.ts +2 -2
  295. package/src/Effect.ts +153 -71
  296. package/src/Either.ts +45 -58
  297. package/src/Encoding.ts +1 -1
  298. package/src/Equivalence.ts +1 -1
  299. package/src/Function.ts +55 -59
  300. package/src/HashMap.ts +0 -9
  301. package/src/Iterable.ts +13 -2
  302. package/src/List.ts +12 -0
  303. package/src/Logger.ts +0 -6
  304. package/src/Mailbox.ts +1 -0
  305. package/src/ManagedRuntime.ts +0 -2
  306. package/src/Metric.ts +14 -20
  307. package/src/Micro.ts +1 -1
  308. package/src/Number.ts +52 -155
  309. package/src/Option.ts +12 -0
  310. package/src/Order.ts +1 -0
  311. package/src/Ordering.ts +4 -17
  312. package/src/Pool.ts +1 -1
  313. package/src/Predicate.ts +56 -133
  314. package/src/Random.ts +1 -2
  315. package/src/RcMap.ts +15 -6
  316. package/src/Record.ts +68 -279
  317. package/src/Redacted.ts +3 -0
  318. package/src/RegExp.ts +2 -2
  319. package/src/STM.ts +5 -7
  320. package/src/Schedule.ts +7 -7
  321. package/src/Schema.ts +31 -25
  322. package/src/SchemaAST.ts +0 -2
  323. package/src/Sink.ts +14 -10
  324. package/src/Stream.ts +56 -61
  325. package/src/String.ts +47 -2
  326. package/src/Struct.ts +12 -0
  327. package/src/Symbol.ts +1 -2
  328. package/src/TestClock.ts +2 -1
  329. package/src/Trie.ts +66 -0
  330. package/src/Tuple.ts +21 -62
  331. package/src/Utils.ts +8 -8
  332. package/src/internal/matcher.ts +1 -1
  333. package/src/internal/version.ts +1 -1
@@ -42,8 +42,6 @@ export interface BigDecimal extends Equal.Equal, Pipeable, Inspectable {
42
42
  /**
43
43
  * Checks if a given value is a `BigDecimal`.
44
44
  *
45
- * @param u - The value to check.
46
- *
47
45
  * @since 2.0.0
48
46
  * @category guards
49
47
  */
@@ -51,9 +49,6 @@ export declare const isBigDecimal: (u: unknown) => u is BigDecimal;
51
49
  /**
52
50
  * Creates a `BigDecimal` from a `bigint` value and a scale.
53
51
  *
54
- * @param value - The `bigint` value to create a `BigDecimal` from.
55
- * @param scale - The scale of the `BigDecimal`.
56
- *
57
52
  * @since 2.0.0
58
53
  * @category constructors
59
54
  */
@@ -61,10 +56,10 @@ export declare const make: (value: bigint, scale: number) => BigDecimal;
61
56
  /**
62
57
  * Normalizes a given `BigDecimal` by removing trailing zeros.
63
58
  *
64
- * @param self - The `BigDecimal` to normalize.
59
+ * **Example**
65
60
  *
66
- * @example
67
61
  * ```ts
62
+ * import * as assert from "node:assert"
68
63
  * import { normalize, make, unsafeFromString } from "effect/BigDecimal"
69
64
  *
70
65
  * assert.deepStrictEqual(normalize(unsafeFromString("123.00000")), normalize(make(123n, 0)))
@@ -81,9 +76,6 @@ export declare const normalize: (self: BigDecimal) => BigDecimal;
81
76
  * If the given scale is smaller than the current scale, the value will be rounded down to
82
77
  * the nearest integer.
83
78
  *
84
- * @param self - The `BigDecimal` to scale.
85
- * @param scale - The scale to scale to.
86
- *
87
79
  * @since 2.0.0
88
80
  * @category scaling
89
81
  */
@@ -94,9 +86,6 @@ export declare const scale: {
94
86
  * If the given scale is smaller than the current scale, the value will be rounded down to
95
87
  * the nearest integer.
96
88
  *
97
- * @param self - The `BigDecimal` to scale.
98
- * @param scale - The scale to scale to.
99
- *
100
89
  * @since 2.0.0
101
90
  * @category scaling
102
91
  */
@@ -107,9 +96,6 @@ export declare const scale: {
107
96
  * If the given scale is smaller than the current scale, the value will be rounded down to
108
97
  * the nearest integer.
109
98
  *
110
- * @param self - The `BigDecimal` to scale.
111
- * @param scale - The scale to scale to.
112
- *
113
99
  * @since 2.0.0
114
100
  * @category scaling
115
101
  */
@@ -118,11 +104,9 @@ export declare const scale: {
118
104
  /**
119
105
  * Provides an addition operation on `BigDecimal`s.
120
106
  *
121
- * @param self - The first operand.
122
- * @param that - The second operand.
123
- *
124
107
  * @example
125
108
  * ```ts
109
+ * import * as assert from "node:assert"
126
110
  * import { sum, unsafeFromString } from "effect/BigDecimal"
127
111
  *
128
112
  * assert.deepStrictEqual(sum(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("5"))
@@ -135,11 +119,9 @@ export declare const sum: {
135
119
  /**
136
120
  * Provides an addition operation on `BigDecimal`s.
137
121
  *
138
- * @param self - The first operand.
139
- * @param that - The second operand.
140
- *
141
122
  * @example
142
123
  * ```ts
124
+ * import * as assert from "node:assert"
143
125
  * import { sum, unsafeFromString } from "effect/BigDecimal"
144
126
  *
145
127
  * assert.deepStrictEqual(sum(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("5"))
@@ -152,11 +134,9 @@ export declare const sum: {
152
134
  /**
153
135
  * Provides an addition operation on `BigDecimal`s.
154
136
  *
155
- * @param self - The first operand.
156
- * @param that - The second operand.
157
- *
158
137
  * @example
159
138
  * ```ts
139
+ * import * as assert from "node:assert"
160
140
  * import { sum, unsafeFromString } from "effect/BigDecimal"
161
141
  *
162
142
  * assert.deepStrictEqual(sum(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("5"))
@@ -170,11 +150,9 @@ export declare const sum: {
170
150
  /**
171
151
  * Provides a multiplication operation on `BigDecimal`s.
172
152
  *
173
- * @param self - The first operand.
174
- * @param that - The second operand.
175
- *
176
153
  * @example
177
154
  * ```ts
155
+ * import * as assert from "node:assert"
178
156
  * import { multiply, unsafeFromString } from "effect/BigDecimal"
179
157
  *
180
158
  * assert.deepStrictEqual(multiply(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("6"))
@@ -187,11 +165,9 @@ export declare const multiply: {
187
165
  /**
188
166
  * Provides a multiplication operation on `BigDecimal`s.
189
167
  *
190
- * @param self - The first operand.
191
- * @param that - The second operand.
192
- *
193
168
  * @example
194
169
  * ```ts
170
+ * import * as assert from "node:assert"
195
171
  * import { multiply, unsafeFromString } from "effect/BigDecimal"
196
172
  *
197
173
  * assert.deepStrictEqual(multiply(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("6"))
@@ -204,11 +180,9 @@ export declare const multiply: {
204
180
  /**
205
181
  * Provides a multiplication operation on `BigDecimal`s.
206
182
  *
207
- * @param self - The first operand.
208
- * @param that - The second operand.
209
- *
210
183
  * @example
211
184
  * ```ts
185
+ * import * as assert from "node:assert"
212
186
  * import { multiply, unsafeFromString } from "effect/BigDecimal"
213
187
  *
214
188
  * assert.deepStrictEqual(multiply(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("6"))
@@ -222,11 +196,9 @@ export declare const multiply: {
222
196
  /**
223
197
  * Provides a subtraction operation on `BigDecimal`s.
224
198
  *
225
- * @param self - The first operand.
226
- * @param that - The second operand.
227
- *
228
199
  * @example
229
200
  * ```ts
201
+ * import * as assert from "node:assert"
230
202
  * import { subtract, unsafeFromString } from "effect/BigDecimal"
231
203
  *
232
204
  * assert.deepStrictEqual(subtract(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("-1"))
@@ -239,11 +211,9 @@ export declare const subtract: {
239
211
  /**
240
212
  * Provides a subtraction operation on `BigDecimal`s.
241
213
  *
242
- * @param self - The first operand.
243
- * @param that - The second operand.
244
- *
245
214
  * @example
246
215
  * ```ts
216
+ * import * as assert from "node:assert"
247
217
  * import { subtract, unsafeFromString } from "effect/BigDecimal"
248
218
  *
249
219
  * assert.deepStrictEqual(subtract(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("-1"))
@@ -256,11 +226,9 @@ export declare const subtract: {
256
226
  /**
257
227
  * Provides a subtraction operation on `BigDecimal`s.
258
228
  *
259
- * @param self - The first operand.
260
- * @param that - The second operand.
261
- *
262
229
  * @example
263
230
  * ```ts
231
+ * import * as assert from "node:assert"
264
232
  * import { subtract, unsafeFromString } from "effect/BigDecimal"
265
233
  *
266
234
  * assert.deepStrictEqual(subtract(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("-1"))
@@ -279,11 +247,9 @@ export declare const subtract: {
279
247
  *
280
248
  * If the divisor is `0`, the result will be `None`.
281
249
  *
282
- * @param self - The dividend operand.
283
- * @param that - The divisor operand.
284
- *
285
250
  * @example
286
251
  * ```ts
252
+ * import * as assert from "node:assert"
287
253
  * import { BigDecimal, Option } from "effect"
288
254
  *
289
255
  * assert.deepStrictEqual(BigDecimal.divide(BigDecimal.unsafeFromString("6"), BigDecimal.unsafeFromString("3")), Option.some(BigDecimal.unsafeFromString("2")))
@@ -303,11 +269,9 @@ export declare const divide: {
303
269
  *
304
270
  * If the divisor is `0`, the result will be `None`.
305
271
  *
306
- * @param self - The dividend operand.
307
- * @param that - The divisor operand.
308
- *
309
272
  * @example
310
273
  * ```ts
274
+ * import * as assert from "node:assert"
311
275
  * import { BigDecimal, Option } from "effect"
312
276
  *
313
277
  * assert.deepStrictEqual(BigDecimal.divide(BigDecimal.unsafeFromString("6"), BigDecimal.unsafeFromString("3")), Option.some(BigDecimal.unsafeFromString("2")))
@@ -327,11 +291,9 @@ export declare const divide: {
327
291
  *
328
292
  * If the divisor is `0`, the result will be `None`.
329
293
  *
330
- * @param self - The dividend operand.
331
- * @param that - The divisor operand.
332
- *
333
294
  * @example
334
295
  * ```ts
296
+ * import * as assert from "node:assert"
335
297
  * import { BigDecimal, Option } from "effect"
336
298
  *
337
299
  * assert.deepStrictEqual(BigDecimal.divide(BigDecimal.unsafeFromString("6"), BigDecimal.unsafeFromString("3")), Option.some(BigDecimal.unsafeFromString("2")))
@@ -352,11 +314,9 @@ export declare const divide: {
352
314
  *
353
315
  * Throws a `RangeError` if the divisor is `0`.
354
316
  *
355
- * @param self - The dividend operand.
356
- * @param that - The divisor operand.as
357
- *
358
317
  * @example
359
318
  * ```ts
319
+ * import * as assert from "node:assert"
360
320
  * import { unsafeDivide, unsafeFromString } from "effect/BigDecimal"
361
321
  *
362
322
  * assert.deepStrictEqual(unsafeDivide(unsafeFromString("6"), unsafeFromString("3")), unsafeFromString("2"))
@@ -375,11 +335,9 @@ export declare const unsafeDivide: {
375
335
  *
376
336
  * Throws a `RangeError` if the divisor is `0`.
377
337
  *
378
- * @param self - The dividend operand.
379
- * @param that - The divisor operand.as
380
- *
381
338
  * @example
382
339
  * ```ts
340
+ * import * as assert from "node:assert"
383
341
  * import { unsafeDivide, unsafeFromString } from "effect/BigDecimal"
384
342
  *
385
343
  * assert.deepStrictEqual(unsafeDivide(unsafeFromString("6"), unsafeFromString("3")), unsafeFromString("2"))
@@ -398,11 +356,9 @@ export declare const unsafeDivide: {
398
356
  *
399
357
  * Throws a `RangeError` if the divisor is `0`.
400
358
  *
401
- * @param self - The dividend operand.
402
- * @param that - The divisor operand.as
403
- *
404
359
  * @example
405
360
  * ```ts
361
+ * import * as assert from "node:assert"
406
362
  * import { unsafeDivide, unsafeFromString } from "effect/BigDecimal"
407
363
  *
408
364
  * assert.deepStrictEqual(unsafeDivide(unsafeFromString("6"), unsafeFromString("3")), unsafeFromString("2"))
@@ -422,11 +378,9 @@ export declare const Order: order.Order<BigDecimal>;
422
378
  /**
423
379
  * Returns `true` if the first argument is less than the second, otherwise `false`.
424
380
  *
425
- * @param self - The first argument.
426
- * @param that - The second argument.
427
- *
428
381
  * @example
429
382
  * ```ts
383
+ * import * as assert from "node:assert"
430
384
  * import { lessThan, unsafeFromString } from "effect/BigDecimal"
431
385
  *
432
386
  * assert.deepStrictEqual(lessThan(unsafeFromString("2"), unsafeFromString("3")), true)
@@ -441,11 +395,9 @@ export declare const lessThan: {
441
395
  /**
442
396
  * Returns `true` if the first argument is less than the second, otherwise `false`.
443
397
  *
444
- * @param self - The first argument.
445
- * @param that - The second argument.
446
- *
447
398
  * @example
448
399
  * ```ts
400
+ * import * as assert from "node:assert"
449
401
  * import { lessThan, unsafeFromString } from "effect/BigDecimal"
450
402
  *
451
403
  * assert.deepStrictEqual(lessThan(unsafeFromString("2"), unsafeFromString("3")), true)
@@ -460,11 +412,9 @@ export declare const lessThan: {
460
412
  /**
461
413
  * Returns `true` if the first argument is less than the second, otherwise `false`.
462
414
  *
463
- * @param self - The first argument.
464
- * @param that - The second argument.
465
- *
466
415
  * @example
467
416
  * ```ts
417
+ * import * as assert from "node:assert"
468
418
  * import { lessThan, unsafeFromString } from "effect/BigDecimal"
469
419
  *
470
420
  * assert.deepStrictEqual(lessThan(unsafeFromString("2"), unsafeFromString("3")), true)
@@ -480,11 +430,9 @@ export declare const lessThan: {
480
430
  /**
481
431
  * Checks if a given `BigDecimal` is less than or equal to the provided one.
482
432
  *
483
- * @param self - The first `BigDecimal` to compare with.
484
- * @param that - The second `BigDecimal` to compare with.
485
- *
486
433
  * @example
487
434
  * ```ts
435
+ * import * as assert from "node:assert"
488
436
  * import { lessThanOrEqualTo, unsafeFromString } from "effect/BigDecimal"
489
437
  *
490
438
  * assert.deepStrictEqual(lessThanOrEqualTo(unsafeFromString("2"), unsafeFromString("3")), true)
@@ -499,11 +447,9 @@ export declare const lessThanOrEqualTo: {
499
447
  /**
500
448
  * Checks if a given `BigDecimal` is less than or equal to the provided one.
501
449
  *
502
- * @param self - The first `BigDecimal` to compare with.
503
- * @param that - The second `BigDecimal` to compare with.
504
- *
505
450
  * @example
506
451
  * ```ts
452
+ * import * as assert from "node:assert"
507
453
  * import { lessThanOrEqualTo, unsafeFromString } from "effect/BigDecimal"
508
454
  *
509
455
  * assert.deepStrictEqual(lessThanOrEqualTo(unsafeFromString("2"), unsafeFromString("3")), true)
@@ -518,11 +464,9 @@ export declare const lessThanOrEqualTo: {
518
464
  /**
519
465
  * Checks if a given `BigDecimal` is less than or equal to the provided one.
520
466
  *
521
- * @param self - The first `BigDecimal` to compare with.
522
- * @param that - The second `BigDecimal` to compare with.
523
- *
524
467
  * @example
525
468
  * ```ts
469
+ * import * as assert from "node:assert"
526
470
  * import { lessThanOrEqualTo, unsafeFromString } from "effect/BigDecimal"
527
471
  *
528
472
  * assert.deepStrictEqual(lessThanOrEqualTo(unsafeFromString("2"), unsafeFromString("3")), true)
@@ -538,11 +482,9 @@ export declare const lessThanOrEqualTo: {
538
482
  /**
539
483
  * Returns `true` if the first argument is greater than the second, otherwise `false`.
540
484
  *
541
- * @param self - The first argument.
542
- * @param that - The second argument.
543
- *
544
485
  * @example
545
486
  * ```ts
487
+ * import * as assert from "node:assert"
546
488
  * import { greaterThan, unsafeFromString } from "effect/BigDecimal"
547
489
  *
548
490
  * assert.deepStrictEqual(greaterThan(unsafeFromString("2"), unsafeFromString("3")), false)
@@ -557,11 +499,9 @@ export declare const greaterThan: {
557
499
  /**
558
500
  * Returns `true` if the first argument is greater than the second, otherwise `false`.
559
501
  *
560
- * @param self - The first argument.
561
- * @param that - The second argument.
562
- *
563
502
  * @example
564
503
  * ```ts
504
+ * import * as assert from "node:assert"
565
505
  * import { greaterThan, unsafeFromString } from "effect/BigDecimal"
566
506
  *
567
507
  * assert.deepStrictEqual(greaterThan(unsafeFromString("2"), unsafeFromString("3")), false)
@@ -576,11 +516,9 @@ export declare const greaterThan: {
576
516
  /**
577
517
  * Returns `true` if the first argument is greater than the second, otherwise `false`.
578
518
  *
579
- * @param self - The first argument.
580
- * @param that - The second argument.
581
- *
582
519
  * @example
583
520
  * ```ts
521
+ * import * as assert from "node:assert"
584
522
  * import { greaterThan, unsafeFromString } from "effect/BigDecimal"
585
523
  *
586
524
  * assert.deepStrictEqual(greaterThan(unsafeFromString("2"), unsafeFromString("3")), false)
@@ -596,11 +534,9 @@ export declare const greaterThan: {
596
534
  /**
597
535
  * Checks if a given `BigDecimal` is greater than or equal to the provided one.
598
536
  *
599
- * @param self - The first `BigDecimal` to compare with.
600
- * @param that - The second `BigDecimal` to compare with.
601
- *
602
537
  * @example
603
538
  * ```ts
539
+ * import * as assert from "node:assert"
604
540
  * import { greaterThanOrEqualTo, unsafeFromString } from "effect/BigDecimal"
605
541
  *
606
542
  * assert.deepStrictEqual(greaterThanOrEqualTo(unsafeFromString("2"), unsafeFromString("3")), false)
@@ -615,11 +551,9 @@ export declare const greaterThanOrEqualTo: {
615
551
  /**
616
552
  * Checks if a given `BigDecimal` is greater than or equal to the provided one.
617
553
  *
618
- * @param self - The first `BigDecimal` to compare with.
619
- * @param that - The second `BigDecimal` to compare with.
620
- *
621
554
  * @example
622
555
  * ```ts
556
+ * import * as assert from "node:assert"
623
557
  * import { greaterThanOrEqualTo, unsafeFromString } from "effect/BigDecimal"
624
558
  *
625
559
  * assert.deepStrictEqual(greaterThanOrEqualTo(unsafeFromString("2"), unsafeFromString("3")), false)
@@ -634,11 +568,9 @@ export declare const greaterThanOrEqualTo: {
634
568
  /**
635
569
  * Checks if a given `BigDecimal` is greater than or equal to the provided one.
636
570
  *
637
- * @param self - The first `BigDecimal` to compare with.
638
- * @param that - The second `BigDecimal` to compare with.
639
- *
640
571
  * @example
641
572
  * ```ts
573
+ * import * as assert from "node:assert"
642
574
  * import { greaterThanOrEqualTo, unsafeFromString } from "effect/BigDecimal"
643
575
  *
644
576
  * assert.deepStrictEqual(greaterThanOrEqualTo(unsafeFromString("2"), unsafeFromString("3")), false)
@@ -654,12 +586,9 @@ export declare const greaterThanOrEqualTo: {
654
586
  /**
655
587
  * Checks if a `BigDecimal` is between a `minimum` and `maximum` value (inclusive).
656
588
  *
657
- * @param self - The `number` to check.
658
- * @param minimum - The `minimum` value to check.
659
- * @param maximum - The `maximum` value to check.
660
- *
661
589
  * @example
662
590
  * ```ts
591
+ * import * as assert from "node:assert"
663
592
  * import { BigDecimal } from "effect"
664
593
  *
665
594
  * const between = BigDecimal.between({
@@ -679,12 +608,9 @@ export declare const between: {
679
608
  /**
680
609
  * Checks if a `BigDecimal` is between a `minimum` and `maximum` value (inclusive).
681
610
  *
682
- * @param self - The `number` to check.
683
- * @param minimum - The `minimum` value to check.
684
- * @param maximum - The `maximum` value to check.
685
- *
686
611
  * @example
687
612
  * ```ts
613
+ * import * as assert from "node:assert"
688
614
  * import { BigDecimal } from "effect"
689
615
  *
690
616
  * const between = BigDecimal.between({
@@ -707,12 +633,9 @@ export declare const between: {
707
633
  /**
708
634
  * Checks if a `BigDecimal` is between a `minimum` and `maximum` value (inclusive).
709
635
  *
710
- * @param self - The `number` to check.
711
- * @param minimum - The `minimum` value to check.
712
- * @param maximum - The `maximum` value to check.
713
- *
714
636
  * @example
715
637
  * ```ts
638
+ * import * as assert from "node:assert"
716
639
  * import { BigDecimal } from "effect"
717
640
  *
718
641
  * const between = BigDecimal.between({
@@ -740,12 +663,9 @@ export declare const between: {
740
663
  * - If the `BigDecimal` is greater than the `maximum` value, the function returns the `maximum` value.
741
664
  * - Otherwise, it returns the original `BigDecimal`.
742
665
  *
743
- * @param self - The `BigDecimal` to be clamped.
744
- * @param minimum - The lower end of the range.
745
- * @param maximum - The upper end of the range.
746
- *
747
666
  * @example
748
667
  * ```ts
668
+ * import * as assert from "node:assert"
749
669
  * import { BigDecimal } from "effect"
750
670
  *
751
671
  * const clamp = BigDecimal.clamp({
@@ -769,12 +689,9 @@ export declare const clamp: {
769
689
  * - If the `BigDecimal` is greater than the `maximum` value, the function returns the `maximum` value.
770
690
  * - Otherwise, it returns the original `BigDecimal`.
771
691
  *
772
- * @param self - The `BigDecimal` to be clamped.
773
- * @param minimum - The lower end of the range.
774
- * @param maximum - The upper end of the range.
775
- *
776
692
  * @example
777
693
  * ```ts
694
+ * import * as assert from "node:assert"
778
695
  * import { BigDecimal } from "effect"
779
696
  *
780
697
  * const clamp = BigDecimal.clamp({
@@ -801,12 +718,9 @@ export declare const clamp: {
801
718
  * - If the `BigDecimal` is greater than the `maximum` value, the function returns the `maximum` value.
802
719
  * - Otherwise, it returns the original `BigDecimal`.
803
720
  *
804
- * @param self - The `BigDecimal` to be clamped.
805
- * @param minimum - The lower end of the range.
806
- * @param maximum - The upper end of the range.
807
- *
808
721
  * @example
809
722
  * ```ts
723
+ * import * as assert from "node:assert"
810
724
  * import { BigDecimal } from "effect"
811
725
  *
812
726
  * const clamp = BigDecimal.clamp({
@@ -830,11 +744,9 @@ export declare const clamp: {
830
744
  /**
831
745
  * Returns the minimum between two `BigDecimal`s.
832
746
  *
833
- * @param self - The first `BigDecimal`.
834
- * @param that - The second `BigDecimal`.
835
- *
836
747
  * @example
837
748
  * ```ts
749
+ * import * as assert from "node:assert"
838
750
  * import { min, unsafeFromString } from "effect/BigDecimal"
839
751
  *
840
752
  * assert.deepStrictEqual(min(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("2"))
@@ -847,11 +759,9 @@ export declare const min: {
847
759
  /**
848
760
  * Returns the minimum between two `BigDecimal`s.
849
761
  *
850
- * @param self - The first `BigDecimal`.
851
- * @param that - The second `BigDecimal`.
852
- *
853
762
  * @example
854
763
  * ```ts
764
+ * import * as assert from "node:assert"
855
765
  * import { min, unsafeFromString } from "effect/BigDecimal"
856
766
  *
857
767
  * assert.deepStrictEqual(min(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("2"))
@@ -864,11 +774,9 @@ export declare const min: {
864
774
  /**
865
775
  * Returns the minimum between two `BigDecimal`s.
866
776
  *
867
- * @param self - The first `BigDecimal`.
868
- * @param that - The second `BigDecimal`.
869
- *
870
777
  * @example
871
778
  * ```ts
779
+ * import * as assert from "node:assert"
872
780
  * import { min, unsafeFromString } from "effect/BigDecimal"
873
781
  *
874
782
  * assert.deepStrictEqual(min(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("2"))
@@ -882,11 +790,9 @@ export declare const min: {
882
790
  /**
883
791
  * Returns the maximum between two `BigDecimal`s.
884
792
  *
885
- * @param self - The first `BigDecimal`.
886
- * @param that - The second `BigDecimal`.
887
- *
888
793
  * @example
889
794
  * ```ts
795
+ * import * as assert from "node:assert"
890
796
  * import { max, unsafeFromString } from "effect/BigDecimal"
891
797
  *
892
798
  * assert.deepStrictEqual(max(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("3"))
@@ -899,11 +805,9 @@ export declare const max: {
899
805
  /**
900
806
  * Returns the maximum between two `BigDecimal`s.
901
807
  *
902
- * @param self - The first `BigDecimal`.
903
- * @param that - The second `BigDecimal`.
904
- *
905
808
  * @example
906
809
  * ```ts
810
+ * import * as assert from "node:assert"
907
811
  * import { max, unsafeFromString } from "effect/BigDecimal"
908
812
  *
909
813
  * assert.deepStrictEqual(max(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("3"))
@@ -916,11 +820,9 @@ export declare const max: {
916
820
  /**
917
821
  * Returns the maximum between two `BigDecimal`s.
918
822
  *
919
- * @param self - The first `BigDecimal`.
920
- * @param that - The second `BigDecimal`.
921
- *
922
823
  * @example
923
824
  * ```ts
825
+ * import * as assert from "node:assert"
924
826
  * import { max, unsafeFromString } from "effect/BigDecimal"
925
827
  *
926
828
  * assert.deepStrictEqual(max(unsafeFromString("2"), unsafeFromString("3")), unsafeFromString("3"))
@@ -934,10 +836,9 @@ export declare const max: {
934
836
  /**
935
837
  * Determines the sign of a given `BigDecimal`.
936
838
  *
937
- * @param n - The `BigDecimal` to determine the sign of.
938
- *
939
839
  * @example
940
840
  * ```ts
841
+ * import * as assert from "node:assert"
941
842
  * import { sign, unsafeFromString } from "effect/BigDecimal"
942
843
  *
943
844
  * assert.deepStrictEqual(sign(unsafeFromString("-5")), -1)
@@ -952,10 +853,9 @@ export declare const sign: (n: BigDecimal) => Ordering;
952
853
  /**
953
854
  * Determines the absolute value of a given `BigDecimal`.
954
855
  *
955
- * @param n - The `BigDecimal` to determine the absolute value of.
956
- *
957
856
  * @example
958
857
  * ```ts
858
+ * import * as assert from "node:assert"
959
859
  * import { abs, unsafeFromString } from "effect/BigDecimal"
960
860
  *
961
861
  * assert.deepStrictEqual(abs(unsafeFromString("-5")), unsafeFromString("5"))
@@ -970,10 +870,9 @@ export declare const abs: (n: BigDecimal) => BigDecimal;
970
870
  /**
971
871
  * Provides a negate operation on `BigDecimal`s.
972
872
  *
973
- * @param n - The `BigDecimal` to negate.
974
- *
975
873
  * @example
976
874
  * ```ts
875
+ * import * as assert from "node:assert"
977
876
  * import { negate, unsafeFromString } from "effect/BigDecimal"
978
877
  *
979
878
  * assert.deepStrictEqual(negate(unsafeFromString("3")), unsafeFromString("-3"))
@@ -989,11 +888,9 @@ export declare const negate: (n: BigDecimal) => BigDecimal;
989
888
  *
990
889
  * If the divisor is `0`, the result will be `None`.
991
890
  *
992
- * @param self - The dividend.
993
- * @param divisor - The divisor.
994
- *
995
891
  * @example
996
892
  * ```ts
893
+ * import * as assert from "node:assert"
997
894
  * import { BigDecimal, Option } from "effect"
998
895
  *
999
896
  * assert.deepStrictEqual(BigDecimal.remainder(BigDecimal.unsafeFromString("2"), BigDecimal.unsafeFromString("2")), Option.some(BigDecimal.unsafeFromString("0")))
@@ -1010,11 +907,9 @@ export declare const remainder: {
1010
907
  *
1011
908
  * If the divisor is `0`, the result will be `None`.
1012
909
  *
1013
- * @param self - The dividend.
1014
- * @param divisor - The divisor.
1015
- *
1016
910
  * @example
1017
911
  * ```ts
912
+ * import * as assert from "node:assert"
1018
913
  * import { BigDecimal, Option } from "effect"
1019
914
  *
1020
915
  * assert.deepStrictEqual(BigDecimal.remainder(BigDecimal.unsafeFromString("2"), BigDecimal.unsafeFromString("2")), Option.some(BigDecimal.unsafeFromString("0")))
@@ -1031,11 +926,9 @@ export declare const remainder: {
1031
926
  *
1032
927
  * If the divisor is `0`, the result will be `None`.
1033
928
  *
1034
- * @param self - The dividend.
1035
- * @param divisor - The divisor.
1036
- *
1037
929
  * @example
1038
930
  * ```ts
931
+ * import * as assert from "node:assert"
1039
932
  * import { BigDecimal, Option } from "effect"
1040
933
  *
1041
934
  * assert.deepStrictEqual(BigDecimal.remainder(BigDecimal.unsafeFromString("2"), BigDecimal.unsafeFromString("2")), Option.some(BigDecimal.unsafeFromString("0")))
@@ -1053,11 +946,9 @@ export declare const remainder: {
1053
946
  *
1054
947
  * Throws a `RangeError` if the divisor is `0`.
1055
948
  *
1056
- * @param self - The dividend.
1057
- * @param divisor - The divisor.
1058
- *
1059
949
  * @example
1060
950
  * ```ts
951
+ * import * as assert from "node:assert"
1061
952
  * import { unsafeRemainder, unsafeFromString } from "effect/BigDecimal"
1062
953
  *
1063
954
  * assert.deepStrictEqual(unsafeRemainder(unsafeFromString("2"), unsafeFromString("2")), unsafeFromString("0"))
@@ -1074,11 +965,9 @@ export declare const unsafeRemainder: {
1074
965
  *
1075
966
  * Throws a `RangeError` if the divisor is `0`.
1076
967
  *
1077
- * @param self - The dividend.
1078
- * @param divisor - The divisor.
1079
- *
1080
968
  * @example
1081
969
  * ```ts
970
+ * import * as assert from "node:assert"
1082
971
  * import { unsafeRemainder, unsafeFromString } from "effect/BigDecimal"
1083
972
  *
1084
973
  * assert.deepStrictEqual(unsafeRemainder(unsafeFromString("2"), unsafeFromString("2")), unsafeFromString("0"))
@@ -1095,11 +984,9 @@ export declare const unsafeRemainder: {
1095
984
  *
1096
985
  * Throws a `RangeError` if the divisor is `0`.
1097
986
  *
1098
- * @param self - The dividend.
1099
- * @param divisor - The divisor.
1100
- *
1101
987
  * @example
1102
988
  * ```ts
989
+ * import * as assert from "node:assert"
1103
990
  * import { unsafeRemainder, unsafeFromString } from "effect/BigDecimal"
1104
991
  *
1105
992
  * assert.deepStrictEqual(unsafeRemainder(unsafeFromString("2"), unsafeFromString("2")), unsafeFromString("0"))
@@ -1142,8 +1029,6 @@ export declare const equals: {
1142
1029
  /**
1143
1030
  * Creates a `BigDecimal` from a `bigint` value.
1144
1031
  *
1145
- * @param value - The `bigint` value to create a `BigDecimal` from.
1146
- *
1147
1032
  * @since 2.0.0
1148
1033
  * @category constructors
1149
1034
  */
@@ -1156,10 +1041,9 @@ export declare const fromBigInt: (n: bigint) => BigDecimal;
1156
1041
  *
1157
1042
  * Throws a `RangeError` if the number is not finite (`NaN`, `+Infinity` or `-Infinity`).
1158
1043
  *
1159
- * @param value - The `number` value to create a `BigDecimal` from.
1160
- *
1161
1044
  * @example
1162
1045
  * ```ts
1046
+ * import * as assert from "node:assert"
1163
1047
  * import { unsafeFromNumber, make } from "effect/BigDecimal"
1164
1048
  *
1165
1049
  * assert.deepStrictEqual(unsafeFromNumber(123), make(123n, 0))
@@ -1178,8 +1062,6 @@ export declare const unsafeFromNumber: (n: number) => BigDecimal;
1178
1062
  *
1179
1063
  * Throws a `RangeError` if the number is not finite (`NaN`, `+Infinity` or `-Infinity`).
1180
1064
  *
1181
- * @param value - The `number` value to create a `BigDecimal` from.
1182
- *
1183
1065
  * @since 2.0.0
1184
1066
  * @category constructors
1185
1067
  * @deprecated Use {@link unsafeFromNumber} instead.
@@ -1193,10 +1075,9 @@ export declare const fromNumber: (n: number) => BigDecimal;
1193
1075
  *
1194
1076
  * Returns `None` if the number is not finite (`NaN`, `+Infinity` or `-Infinity`).
1195
1077
  *
1196
- * @param n - The `number` value to create a `BigDecimal` from.
1197
- *
1198
1078
  * @example
1199
1079
  * ```ts
1080
+ * import * as assert from "node:assert"
1200
1081
  * import { BigDecimal, Option } from "effect"
1201
1082
  *
1202
1083
  * assert.deepStrictEqual(BigDecimal.safeFromNumber(123), Option.some(BigDecimal.make(123n, 0)))
@@ -1211,10 +1092,9 @@ export declare const safeFromNumber: (n: number) => Option.Option<BigDecimal>;
1211
1092
  /**
1212
1093
  * Parses a numerical `string` into a `BigDecimal`.
1213
1094
  *
1214
- * @param s - The `string` to parse.
1215
- *
1216
1095
  * @example
1217
1096
  * ```ts
1097
+ * import * as assert from "node:assert"
1218
1098
  * import { BigDecimal, Option } from "effect"
1219
1099
  *
1220
1100
  * assert.deepStrictEqual(BigDecimal.fromString("123"), Option.some(BigDecimal.make(123n, 0)))
@@ -1229,10 +1109,9 @@ export declare const fromString: (s: string) => Option.Option<BigDecimal>;
1229
1109
  /**
1230
1110
  * Parses a numerical `string` into a `BigDecimal`.
1231
1111
  *
1232
- * @param s - The `string` to parse.
1233
- *
1234
1112
  * @example
1235
1113
  * ```ts
1114
+ * import * as assert from "node:assert"
1236
1115
  * import { unsafeFromString, make } from "effect/BigDecimal"
1237
1116
  *
1238
1117
  * assert.deepStrictEqual(unsafeFromString("123"), make(123n, 0))
@@ -1250,10 +1129,9 @@ export declare const unsafeFromString: (s: string) => BigDecimal;
1250
1129
  * If the scale of the `BigDecimal` is greater than or equal to 16, the `BigDecimal` will
1251
1130
  * be formatted in scientific notation.
1252
1131
  *
1253
- * @param n - The `BigDecimal` to format.
1254
- *
1255
1132
  * @example
1256
1133
  * ```ts
1134
+ * import * as assert from "node:assert"
1257
1135
  * import { format, unsafeFromString } from "effect/BigDecimal"
1258
1136
  *
1259
1137
  * assert.deepStrictEqual(format(unsafeFromString("-5")), "-5")
@@ -1268,10 +1146,9 @@ export declare const format: (n: BigDecimal) => string;
1268
1146
  /**
1269
1147
  * Formats a given `BigDecimal` as a `string` in scientific notation.
1270
1148
  *
1271
- * @param n - The `BigDecimal` to format.
1272
- *
1273
1149
  * @example
1274
1150
  * ```ts
1151
+ * import * as assert from "node:assert"
1275
1152
  * import { toExponential, make } from "effect/BigDecimal"
1276
1153
  *
1277
1154
  * assert.deepStrictEqual(toExponential(make(123456n, -5)), "1.23456e+10")
@@ -1286,10 +1163,9 @@ export declare const toExponential: (n: BigDecimal) => string;
1286
1163
  *
1287
1164
  * This function will produce incorrect results if the `BigDecimal` exceeds the 64-bit range of a `number`.
1288
1165
  *
1289
- * @param n - The `BigDecimal` to convert.
1290
- *
1291
1166
  * @example
1292
1167
  * ```ts
1168
+ * import * as assert from "node:assert"
1293
1169
  * import { unsafeToNumber, unsafeFromString } from "effect/BigDecimal"
1294
1170
  *
1295
1171
  * assert.deepStrictEqual(unsafeToNumber(unsafeFromString("123.456")), 123.456)
@@ -1302,10 +1178,9 @@ export declare const unsafeToNumber: (n: BigDecimal) => number;
1302
1178
  /**
1303
1179
  * Checks if a given `BigDecimal` is an integer.
1304
1180
  *
1305
- * @param n - The `BigDecimal` to check.
1306
- *
1307
1181
  * @example
1308
1182
  * ```ts
1183
+ * import * as assert from "node:assert"
1309
1184
  * import { isInteger, unsafeFromString } from "effect/BigDecimal"
1310
1185
  *
1311
1186
  * assert.deepStrictEqual(isInteger(unsafeFromString("0")), true)
@@ -1320,10 +1195,9 @@ export declare const isInteger: (n: BigDecimal) => boolean;
1320
1195
  /**
1321
1196
  * Checks if a given `BigDecimal` is `0`.
1322
1197
  *
1323
- * @param n - The `BigDecimal` to check.
1324
- *
1325
1198
  * @example
1326
1199
  * ```ts
1200
+ * import * as assert from "node:assert"
1327
1201
  * import { isZero, unsafeFromString } from "effect/BigDecimal"
1328
1202
  *
1329
1203
  * assert.deepStrictEqual(isZero(unsafeFromString("0")), true)
@@ -1337,10 +1211,9 @@ export declare const isZero: (n: BigDecimal) => boolean;
1337
1211
  /**
1338
1212
  * Checks if a given `BigDecimal` is negative.
1339
1213
  *
1340
- * @param n - The `BigDecimal` to check.
1341
- *
1342
1214
  * @example
1343
1215
  * ```ts
1216
+ * import * as assert from "node:assert"
1344
1217
  * import { isNegative, unsafeFromString } from "effect/BigDecimal"
1345
1218
  *
1346
1219
  * assert.deepStrictEqual(isNegative(unsafeFromString("-1")), true)
@@ -1355,10 +1228,9 @@ export declare const isNegative: (n: BigDecimal) => boolean;
1355
1228
  /**
1356
1229
  * Checks if a given `BigDecimal` is positive.
1357
1230
  *
1358
- * @param n - The `BigDecimal` to check.
1359
- *
1360
1231
  * @example
1361
1232
  * ```ts
1233
+ * import * as assert from "node:assert"
1362
1234
  * import { isPositive, unsafeFromString } from "effect/BigDecimal"
1363
1235
  *
1364
1236
  * assert.deepStrictEqual(isPositive(unsafeFromString("-1")), false)