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
package/src/Predicate.ts CHANGED
@@ -71,11 +71,9 @@ export declare namespace Refinement {
71
71
  /**
72
72
  * Given a `Predicate<A>` returns a `Predicate<B>`
73
73
  *
74
- * @param self - the `Predicate<A>` to be transformed to `Predicate<B>`.
75
- * @param f - a function to transform `B` to `A`.
76
- *
77
74
  * @example
78
75
  * ```ts
76
+ * import * as assert from "node:assert"
79
77
  * import { Predicate, Number } from "effect"
80
78
  *
81
79
  * const minLength3 = Predicate.mapInput(Number.greaterThan(2), (s: string) => s.length)
@@ -93,11 +91,9 @@ export const mapInput: {
93
91
  /**
94
92
  * Given a `Predicate<A>` returns a `Predicate<B>`
95
93
  *
96
- * @param self - the `Predicate<A>` to be transformed to `Predicate<B>`.
97
- * @param f - a function to transform `B` to `A`.
98
- *
99
94
  * @example
100
95
  * ```ts
96
+ * import * as assert from "node:assert"
101
97
  * import { Predicate, Number } from "effect"
102
98
  *
103
99
  * const minLength3 = Predicate.mapInput(Number.greaterThan(2), (s: string) => s.length)
@@ -115,11 +111,9 @@ export const mapInput: {
115
111
  /**
116
112
  * Given a `Predicate<A>` returns a `Predicate<B>`
117
113
  *
118
- * @param self - the `Predicate<A>` to be transformed to `Predicate<B>`.
119
- * @param f - a function to transform `B` to `A`.
120
- *
121
114
  * @example
122
115
  * ```ts
116
+ * import * as assert from "node:assert"
123
117
  * import { Predicate, Number } from "effect"
124
118
  *
125
119
  * const minLength3 = Predicate.mapInput(Number.greaterThan(2), (s: string) => s.length)
@@ -141,11 +135,9 @@ export const mapInput: {
141
135
  *
142
136
  * An `Array` is considered to be a `TupleOf` if its length is exactly `N`.
143
137
  *
144
- * @param self - The `Array` to check.
145
- * @param n - The exact number of elements that the `Array` should have to be considered a `TupleOf`.
146
- *
147
138
  * @example
148
139
  * ```ts
140
+ * import * as assert from "node:assert"
149
141
  * import { isTupleOf } from "effect/Predicate"
150
142
  *
151
143
  * assert.deepStrictEqual(isTupleOf([1, 2, 3], 3), true);
@@ -168,11 +160,9 @@ export const isTupleOf: {
168
160
  *
169
161
  * An `Array` is considered to be a `TupleOf` if its length is exactly `N`.
170
162
  *
171
- * @param self - The `Array` to check.
172
- * @param n - The exact number of elements that the `Array` should have to be considered a `TupleOf`.
173
- *
174
163
  * @example
175
164
  * ```ts
165
+ * import * as assert from "node:assert"
176
166
  * import { isTupleOf } from "effect/Predicate"
177
167
  *
178
168
  * assert.deepStrictEqual(isTupleOf([1, 2, 3], 3), true);
@@ -195,11 +185,9 @@ export const isTupleOf: {
195
185
  *
196
186
  * An `Array` is considered to be a `TupleOf` if its length is exactly `N`.
197
187
  *
198
- * @param self - The `Array` to check.
199
- * @param n - The exact number of elements that the `Array` should have to be considered a `TupleOf`.
200
- *
201
188
  * @example
202
189
  * ```ts
190
+ * import * as assert from "node:assert"
203
191
  * import { isTupleOf } from "effect/Predicate"
204
192
  *
205
193
  * assert.deepStrictEqual(isTupleOf([1, 2, 3], 3), true);
@@ -224,11 +212,9 @@ export const isTupleOf: {
224
212
  *
225
213
  * An `Array` is considered to be a `TupleOfAtLeast` if its length is at least `N`.
226
214
  *
227
- * @param self - The `Array` to check.
228
- * @param n - The minimum number of elements that the `Array` should have to be considered a `TupleOfAtLeast`.
229
- *
230
215
  * @example
231
216
  * ```ts
217
+ * import * as assert from "node:assert"
232
218
  * import { isTupleOfAtLeast } from "effect/Predicate"
233
219
  *
234
220
  * assert.deepStrictEqual(isTupleOfAtLeast([1, 2, 3], 3), true);
@@ -251,11 +237,9 @@ export const isTupleOfAtLeast: {
251
237
  *
252
238
  * An `Array` is considered to be a `TupleOfAtLeast` if its length is at least `N`.
253
239
  *
254
- * @param self - The `Array` to check.
255
- * @param n - The minimum number of elements that the `Array` should have to be considered a `TupleOfAtLeast`.
256
- *
257
240
  * @example
258
241
  * ```ts
242
+ * import * as assert from "node:assert"
259
243
  * import { isTupleOfAtLeast } from "effect/Predicate"
260
244
  *
261
245
  * assert.deepStrictEqual(isTupleOfAtLeast([1, 2, 3], 3), true);
@@ -278,11 +262,9 @@ export const isTupleOfAtLeast: {
278
262
  *
279
263
  * An `Array` is considered to be a `TupleOfAtLeast` if its length is at least `N`.
280
264
  *
281
- * @param self - The `Array` to check.
282
- * @param n - The minimum number of elements that the `Array` should have to be considered a `TupleOfAtLeast`.
283
- *
284
265
  * @example
285
266
  * ```ts
267
+ * import * as assert from "node:assert"
286
268
  * import { isTupleOfAtLeast } from "effect/Predicate"
287
269
  *
288
270
  * assert.deepStrictEqual(isTupleOfAtLeast([1, 2, 3], 3), true);
@@ -305,10 +287,9 @@ export const isTupleOfAtLeast: {
305
287
  /**
306
288
  * Tests if a value is `truthy`.
307
289
  *
308
- * @param input - The value to test.
309
- *
310
290
  * @example
311
291
  * ```ts
292
+ * import * as assert from "node:assert"
312
293
  * import { isTruthy } from "effect/Predicate"
313
294
  *
314
295
  * assert.deepStrictEqual(isTruthy(1), true)
@@ -324,10 +305,9 @@ export const isTruthy = (input: unknown) => !!input
324
305
  /**
325
306
  * Tests if a value is a `Set`.
326
307
  *
327
- * @param input - The value to test.
328
- *
329
308
  * @example
330
309
  * ```ts
310
+ * import * as assert from "node:assert"
331
311
  * import { isSet } from "effect/Predicate"
332
312
  *
333
313
  * assert.deepStrictEqual(isSet(new Set([1, 2])), true)
@@ -345,10 +325,9 @@ export const isSet = (input: unknown): input is Set<unknown> => input instanceof
345
325
  /**
346
326
  * Tests if a value is a `Map`.
347
327
  *
348
- * @param input - The value to test.
349
- *
350
328
  * @example
351
329
  * ```ts
330
+ * import * as assert from "node:assert"
352
331
  * import { isMap } from "effect/Predicate"
353
332
  *
354
333
  * assert.deepStrictEqual(isMap(new Map()), true)
@@ -365,10 +344,9 @@ export const isMap = (input: unknown): input is Map<unknown, unknown> => input i
365
344
  /**
366
345
  * Tests if a value is a `string`.
367
346
  *
368
- * @param input - The value to test.
369
- *
370
347
  * @example
371
348
  * ```ts
349
+ * import * as assert from "node:assert"
372
350
  * import { isString } from "effect/Predicate"
373
351
  *
374
352
  * assert.deepStrictEqual(isString("a"), true)
@@ -384,10 +362,9 @@ export const isString = (input: unknown): input is string => typeof input === "s
384
362
  /**
385
363
  * Tests if a value is a `number`.
386
364
  *
387
- * @param input - The value to test.
388
- *
389
365
  * @example
390
366
  * ```ts
367
+ * import * as assert from "node:assert"
391
368
  * import { isNumber } from "effect/Predicate"
392
369
  *
393
370
  * assert.deepStrictEqual(isNumber(2), true)
@@ -403,10 +380,9 @@ export const isNumber = (input: unknown): input is number => typeof input === "n
403
380
  /**
404
381
  * Tests if a value is a `boolean`.
405
382
  *
406
- * @param input - The value to test.
407
- *
408
383
  * @example
409
384
  * ```ts
385
+ * import * as assert from "node:assert"
410
386
  * import { isBoolean } from "effect/Predicate"
411
387
  *
412
388
  * assert.deepStrictEqual(isBoolean(true), true)
@@ -422,10 +398,9 @@ export const isBoolean = (input: unknown): input is boolean => typeof input ===
422
398
  /**
423
399
  * Tests if a value is a `bigint`.
424
400
  *
425
- * @param input - The value to test.
426
- *
427
401
  * @example
428
402
  * ```ts
403
+ * import * as assert from "node:assert"
429
404
  * import { isBigInt } from "effect/Predicate"
430
405
  *
431
406
  * assert.deepStrictEqual(isBigInt(1n), true)
@@ -441,10 +416,9 @@ export const isBigInt = (input: unknown): input is bigint => typeof input === "b
441
416
  /**
442
417
  * Tests if a value is a `symbol`.
443
418
  *
444
- * @param input - The value to test.
445
- *
446
419
  * @example
447
420
  * ```ts
421
+ * import * as assert from "node:assert"
448
422
  * import { isSymbol } from "effect/Predicate"
449
423
  *
450
424
  * assert.deepStrictEqual(isSymbol(Symbol.for("a")), true)
@@ -460,10 +434,9 @@ export const isSymbol = (input: unknown): input is symbol => typeof input === "s
460
434
  /**
461
435
  * Tests if a value is a `function`.
462
436
  *
463
- * @param input - The value to test.
464
- *
465
437
  * @example
466
438
  * ```ts
439
+ * import * as assert from "node:assert"
467
440
  * import { isFunction } from "effect/Predicate"
468
441
  *
469
442
  * assert.deepStrictEqual(isFunction(isFunction), true)
@@ -479,10 +452,9 @@ export const isFunction: (input: unknown) => input is Function = isFunction_
479
452
  /**
480
453
  * Tests if a value is `undefined`.
481
454
  *
482
- * @param input - The value to test.
483
- *
484
455
  * @example
485
456
  * ```ts
457
+ * import * as assert from "node:assert"
486
458
  * import { isUndefined } from "effect/Predicate"
487
459
  *
488
460
  * assert.deepStrictEqual(isUndefined(undefined), true)
@@ -499,10 +471,9 @@ export const isUndefined = (input: unknown): input is undefined => input === und
499
471
  /**
500
472
  * Tests if a value is not `undefined`.
501
473
  *
502
- * @param input - The value to test.
503
- *
504
474
  * @example
505
475
  * ```ts
476
+ * import * as assert from "node:assert"
506
477
  * import { isNotUndefined } from "effect/Predicate"
507
478
  *
508
479
  * assert.deepStrictEqual(isNotUndefined(null), true)
@@ -519,10 +490,9 @@ export const isNotUndefined = <A>(input: A): input is Exclude<A, undefined> => i
519
490
  /**
520
491
  * Tests if a value is `null`.
521
492
  *
522
- * @param input - The value to test.
523
- *
524
493
  * @example
525
494
  * ```ts
495
+ * import * as assert from "node:assert"
526
496
  * import { isNull } from "effect/Predicate"
527
497
  *
528
498
  * assert.deepStrictEqual(isNull(null), true)
@@ -539,10 +509,9 @@ export const isNull = (input: unknown): input is null => input === null
539
509
  /**
540
510
  * Tests if a value is not `null`.
541
511
  *
542
- * @param input - The value to test.
543
- *
544
512
  * @example
545
513
  * ```ts
514
+ * import * as assert from "node:assert"
546
515
  * import { isNotNull } from "effect/Predicate"
547
516
  *
548
517
  * assert.deepStrictEqual(isNotNull(undefined), true)
@@ -559,10 +528,9 @@ export const isNotNull = <A>(input: A): input is Exclude<A, null> => input !== n
559
528
  /**
560
529
  * A guard that always fails.
561
530
  *
562
- * @param _ - The value to test.
563
- *
564
531
  * @example
565
532
  * ```ts
533
+ * import * as assert from "node:assert"
566
534
  * import { isNever } from "effect/Predicate"
567
535
  *
568
536
  * assert.deepStrictEqual(isNever(null), false)
@@ -579,10 +547,9 @@ export const isNever: (input: unknown) => input is never = (_: unknown): _ is ne
579
547
  /**
580
548
  * A guard that always succeeds.
581
549
  *
582
- * @param _ - The value to test.
583
- *
584
550
  * @example
585
551
  * ```ts
552
+ * import * as assert from "node:assert"
586
553
  * import { isUnknown } from "effect/Predicate"
587
554
  *
588
555
  * assert.deepStrictEqual(isUnknown(null), true)
@@ -604,10 +571,9 @@ export const isRecordOrArray = (input: unknown): input is { [x: PropertyKey]: un
604
571
  /**
605
572
  * Tests if a value is an `object`.
606
573
  *
607
- * @param input - The value to test.
608
- *
609
574
  * @example
610
575
  * ```ts
576
+ * import * as assert from "node:assert"
611
577
  * import { isObject } from "effect/Predicate"
612
578
  *
613
579
  * assert.deepStrictEqual(isObject({}), true)
@@ -625,9 +591,6 @@ export const isObject = (input: unknown): input is object => isRecordOrArray(inp
625
591
  /**
626
592
  * Checks whether a value is an `object` containing a specified property key.
627
593
  *
628
- * @param property - The field to check within the object.
629
- * @param self - The value to examine.
630
- *
631
594
  * @category guards
632
595
  * @since 2.0.0
633
596
  */
@@ -635,9 +598,6 @@ export const hasProperty: {
635
598
  /**
636
599
  * Checks whether a value is an `object` containing a specified property key.
637
600
  *
638
- * @param property - The field to check within the object.
639
- * @param self - The value to examine.
640
- *
641
601
  * @category guards
642
602
  * @since 2.0.0
643
603
  */
@@ -645,9 +605,6 @@ export const hasProperty: {
645
605
  /**
646
606
  * Checks whether a value is an `object` containing a specified property key.
647
607
  *
648
- * @param property - The field to check within the object.
649
- * @param self - The value to examine.
650
- *
651
608
  * @category guards
652
609
  * @since 2.0.0
653
610
  */
@@ -661,11 +618,9 @@ export const hasProperty: {
661
618
  /**
662
619
  * Tests if a value is an `object` with a property `_tag` that matches the given tag.
663
620
  *
664
- * @param input - The value to test.
665
- * @param tag - The tag to test for.
666
- *
667
621
  * @example
668
622
  * ```ts
623
+ * import * as assert from "node:assert"
669
624
  * import { isTagged } from "effect/Predicate"
670
625
  *
671
626
  * assert.deepStrictEqual(isTagged(1, "a"), false)
@@ -683,11 +638,9 @@ export const isTagged: {
683
638
  /**
684
639
  * Tests if a value is an `object` with a property `_tag` that matches the given tag.
685
640
  *
686
- * @param input - The value to test.
687
- * @param tag - The tag to test for.
688
- *
689
641
  * @example
690
642
  * ```ts
643
+ * import * as assert from "node:assert"
691
644
  * import { isTagged } from "effect/Predicate"
692
645
  *
693
646
  * assert.deepStrictEqual(isTagged(1, "a"), false)
@@ -705,11 +658,9 @@ export const isTagged: {
705
658
  /**
706
659
  * Tests if a value is an `object` with a property `_tag` that matches the given tag.
707
660
  *
708
- * @param input - The value to test.
709
- * @param tag - The tag to test for.
710
- *
711
661
  * @example
712
662
  * ```ts
663
+ * import * as assert from "node:assert"
713
664
  * import { isTagged } from "effect/Predicate"
714
665
  *
715
666
  * assert.deepStrictEqual(isTagged(1, "a"), false)
@@ -732,10 +683,9 @@ export const isTagged: {
732
683
  /**
733
684
  * A guard that succeeds when the input is `null` or `undefined`.
734
685
  *
735
- * @param input - The value to test.
736
- *
737
686
  * @example
738
687
  * ```ts
688
+ * import * as assert from "node:assert"
739
689
  * import { isNullable } from "effect/Predicate"
740
690
  *
741
691
  * assert.deepStrictEqual(isNullable(null), true)
@@ -753,10 +703,9 @@ export const isNullable = <A>(input: A): input is Extract<A, null | undefined> =
753
703
  /**
754
704
  * A guard that succeeds when the input is not `null` or `undefined`.
755
705
  *
756
- * @param input - The value to test.
757
- *
758
706
  * @example
759
707
  * ```ts
708
+ * import * as assert from "node:assert"
760
709
  * import { isNotNullable } from "effect/Predicate"
761
710
  *
762
711
  * assert.deepStrictEqual(isNotNullable({}), true)
@@ -774,10 +723,9 @@ export const isNotNullable = <A>(input: A): input is NonNullable<A> => input !==
774
723
  /**
775
724
  * A guard that succeeds when the input is an `Error`.
776
725
  *
777
- * @param input - The value to test.
778
- *
779
726
  * @example
780
727
  * ```ts
728
+ * import * as assert from "node:assert"
781
729
  * import { isError } from "effect/Predicate"
782
730
  *
783
731
  * assert.deepStrictEqual(isError(new Error()), true)
@@ -794,10 +742,9 @@ export const isError = (input: unknown): input is Error => input instanceof Erro
794
742
  /**
795
743
  * A guard that succeeds when the input is a `Uint8Array`.
796
744
  *
797
- * @param input - The value to test.
798
- *
799
745
  * @example
800
746
  * ```ts
747
+ * import * as assert from "node:assert"
801
748
  * import { isUint8Array } from "effect/Predicate"
802
749
  *
803
750
  * assert.deepStrictEqual(isUint8Array(new Uint8Array()), true)
@@ -814,10 +761,9 @@ export const isUint8Array = (input: unknown): input is Uint8Array => input insta
814
761
  /**
815
762
  * A guard that succeeds when the input is a `Date`.
816
763
  *
817
- * @param input - The value to test.
818
- *
819
764
  * @example
820
765
  * ```ts
766
+ * import * as assert from "node:assert"
821
767
  * import { isDate } from "effect/Predicate"
822
768
  *
823
769
  * assert.deepStrictEqual(isDate(new Date()), true)
@@ -834,10 +780,9 @@ export const isDate = (input: unknown): input is Date => input instanceof Date
834
780
  /**
835
781
  * A guard that succeeds when the input is an `Iterable`.
836
782
  *
837
- * @param input - The value to test.
838
- *
839
783
  * @example
840
784
  * ```ts
785
+ * import * as assert from "node:assert"
841
786
  * import { isIterable } from "effect/Predicate"
842
787
  *
843
788
  * assert.deepStrictEqual(isIterable([]), true)
@@ -855,10 +800,9 @@ export const isIterable = (input: unknown): input is Iterable<unknown> => hasPro
855
800
  /**
856
801
  * A guard that succeeds when the input is a record.
857
802
  *
858
- * @param input - The value to test.
859
- *
860
803
  * @example
861
804
  * ```ts
805
+ * import * as assert from "node:assert"
862
806
  * import { isRecord } from "effect/Predicate"
863
807
  *
864
808
  * assert.deepStrictEqual(isRecord({}), true)
@@ -880,10 +824,9 @@ export const isRecord = (input: unknown): input is { [x: string | symbol]: unkno
880
824
  /**
881
825
  * A guard that succeeds when the input is a readonly record.
882
826
  *
883
- * @param input - The value to test.
884
- *
885
827
  * @example
886
828
  * ```ts
829
+ * import * as assert from "node:assert"
887
830
  * import { isReadonlyRecord } from "effect/Predicate"
888
831
  *
889
832
  * assert.deepStrictEqual(isReadonlyRecord({}), true)
@@ -905,10 +848,9 @@ export const isReadonlyRecord: (
905
848
  /**
906
849
  * A guard that succeeds when the input is a Promise.
907
850
  *
908
- * @param input - The value to test.
909
- *
910
851
  * @example
911
852
  * ```ts
853
+ * import * as assert from "node:assert"
912
854
  * import { isPromise } from "effect/Predicate"
913
855
  *
914
856
  * assert.deepStrictEqual(isPromise({}), false)
@@ -934,10 +876,9 @@ export const isPromiseLike = (
934
876
  /**
935
877
  * Tests if a value is a `RegExp`.
936
878
  *
937
- * @param input - The value to test.
938
- *
939
879
  * @example
940
880
  * ```ts
881
+ * import * as assert from "node:assert"
941
882
  * import { Predicate } from "effect"
942
883
  *
943
884
  * assert.deepStrictEqual(Predicate.isRegExp(/a/), true)
@@ -1020,7 +961,7 @@ export const productMany = <A>(
1020
961
  /**
1021
962
  * Similar to `Promise.all` but operates on `Predicate`s.
1022
963
  *
1023
- * ```
964
+ * ```ts skip-type-checking
1024
965
  * [Refinement<A, B>, Refinement<C, D>, ...] -> Refinement<[A, C, ...], [B, D, ...]>
1025
966
  * [Predicate<A>, Predicate<B>, ...] -> Predicate<[A, B, ...]>
1026
967
  * [Refinement<A, B>, Predicate<C>, ...] -> Refinement<[A, C, ...], [B, C, ...]>
@@ -1032,7 +973,7 @@ export const tuple: {
1032
973
  /**
1033
974
  * Similar to `Promise.all` but operates on `Predicate`s.
1034
975
  *
1035
- * ```
976
+ * ```ts skip-type-checking
1036
977
  * [Refinement<A, B>, Refinement<C, D>, ...] -> Refinement<[A, C, ...], [B, D, ...]>
1037
978
  * [Predicate<A>, Predicate<B>, ...] -> Predicate<[A, B, ...]>
1038
979
  * [Refinement<A, B>, Predicate<C>, ...] -> Refinement<[A, C, ...], [B, C, ...]>
@@ -1048,7 +989,7 @@ export const tuple: {
1048
989
  } = (...elements: ReadonlyArray<Predicate.Any>) => all(elements) as any
1049
990
 
1050
991
  /**
1051
- * ```
992
+ * ```ts skip-type-checking
1052
993
  * { ab: Refinement<A, B>; cd: Refinement<C, D>, ... } -> Refinement<{ ab: A; cd: C; ... }, { ab: B; cd: D; ... }>
1053
994
  * { a: Predicate<A, B>; b: Predicate<B>, ... } -> Predicate<{ a: A; b: B; ... }>
1054
995
  * { ab: Refinement<A, B>; c: Predicate<C>, ... } -> Refinement<{ ab: A; c: C; ... }, { ab: B; c: С; ... }>
@@ -1058,7 +999,7 @@ export const tuple: {
1058
999
  */
1059
1000
  export const struct: {
1060
1001
  /**
1061
- * ```
1002
+ * ```ts skip-type-checking
1062
1003
  * { ab: Refinement<A, B>; cd: Refinement<C, D>, ... } -> Refinement<{ ab: A; cd: C; ... }, { ab: B; cd: D; ... }>
1063
1004
  * { a: Predicate<A, B>; b: Predicate<B>, ... } -> Predicate<{ a: A; b: B; ... }>
1064
1005
  * { ab: Refinement<A, B>; c: Predicate<C>, ... } -> Refinement<{ ab: A; c: C; ... }, { ab: B; c: С; ... }>
@@ -1087,10 +1028,9 @@ export const struct: {
1087
1028
  /**
1088
1029
  * Negates the result of a given predicate.
1089
1030
  *
1090
- * @param self - A predicate.
1091
- *
1092
1031
  * @example
1093
1032
  * ```ts
1033
+ * import * as assert from "node:assert"
1094
1034
  * import { Predicate, Number } from "effect"
1095
1035
  *
1096
1036
  * const isPositive = Predicate.not(Number.lessThan(0))
@@ -1108,11 +1048,9 @@ export const not = <A>(self: Predicate<A>): Predicate<A> => (a) => !self(a)
1108
1048
  /**
1109
1049
  * Combines two predicates into a new predicate that returns `true` if at least one of the predicates returns `true`.
1110
1050
  *
1111
- * @param self - A predicate.
1112
- * @param that - A predicate.
1113
- *
1114
1051
  * @example
1115
1052
  * ```ts
1053
+ * import * as assert from "node:assert"
1116
1054
  * import { Predicate, Number } from "effect"
1117
1055
  *
1118
1056
  * const nonZero = Predicate.or(Number.lessThan(0), Number.greaterThan(0))
@@ -1129,11 +1067,9 @@ export const or: {
1129
1067
  /**
1130
1068
  * Combines two predicates into a new predicate that returns `true` if at least one of the predicates returns `true`.
1131
1069
  *
1132
- * @param self - A predicate.
1133
- * @param that - A predicate.
1134
- *
1135
1070
  * @example
1136
1071
  * ```ts
1072
+ * import * as assert from "node:assert"
1137
1073
  * import { Predicate, Number } from "effect"
1138
1074
  *
1139
1075
  * const nonZero = Predicate.or(Number.lessThan(0), Number.greaterThan(0))
@@ -1150,11 +1086,9 @@ export const or: {
1150
1086
  /**
1151
1087
  * Combines two predicates into a new predicate that returns `true` if at least one of the predicates returns `true`.
1152
1088
  *
1153
- * @param self - A predicate.
1154
- * @param that - A predicate.
1155
- *
1156
1089
  * @example
1157
1090
  * ```ts
1091
+ * import * as assert from "node:assert"
1158
1092
  * import { Predicate, Number } from "effect"
1159
1093
  *
1160
1094
  * const nonZero = Predicate.or(Number.lessThan(0), Number.greaterThan(0))
@@ -1171,11 +1105,9 @@ export const or: {
1171
1105
  /**
1172
1106
  * Combines two predicates into a new predicate that returns `true` if at least one of the predicates returns `true`.
1173
1107
  *
1174
- * @param self - A predicate.
1175
- * @param that - A predicate.
1176
- *
1177
1108
  * @example
1178
1109
  * ```ts
1110
+ * import * as assert from "node:assert"
1179
1111
  * import { Predicate, Number } from "effect"
1180
1112
  *
1181
1113
  * const nonZero = Predicate.or(Number.lessThan(0), Number.greaterThan(0))
@@ -1192,11 +1124,9 @@ export const or: {
1192
1124
  /**
1193
1125
  * Combines two predicates into a new predicate that returns `true` if at least one of the predicates returns `true`.
1194
1126
  *
1195
- * @param self - A predicate.
1196
- * @param that - A predicate.
1197
- *
1198
1127
  * @example
1199
1128
  * ```ts
1129
+ * import * as assert from "node:assert"
1200
1130
  * import { Predicate, Number } from "effect"
1201
1131
  *
1202
1132
  * const nonZero = Predicate.or(Number.lessThan(0), Number.greaterThan(0))
@@ -1215,11 +1145,9 @@ export const or: {
1215
1145
  /**
1216
1146
  * Combines two predicates into a new predicate that returns `true` if both of the predicates returns `true`.
1217
1147
  *
1218
- * @param self - A predicate.
1219
- * @param that - A predicate.
1220
- *
1221
1148
  * @example
1222
1149
  * ```ts
1150
+ * import * as assert from "node:assert"
1223
1151
  * import { Predicate } from "effect"
1224
1152
  *
1225
1153
  * const minLength = (n: number) => (s: string) => s.length >= n
@@ -1239,11 +1167,9 @@ export const and: {
1239
1167
  /**
1240
1168
  * Combines two predicates into a new predicate that returns `true` if both of the predicates returns `true`.
1241
1169
  *
1242
- * @param self - A predicate.
1243
- * @param that - A predicate.
1244
- *
1245
1170
  * @example
1246
1171
  * ```ts
1172
+ * import * as assert from "node:assert"
1247
1173
  * import { Predicate } from "effect"
1248
1174
  *
1249
1175
  * const minLength = (n: number) => (s: string) => s.length >= n
@@ -1263,11 +1189,9 @@ export const and: {
1263
1189
  /**
1264
1190
  * Combines two predicates into a new predicate that returns `true` if both of the predicates returns `true`.
1265
1191
  *
1266
- * @param self - A predicate.
1267
- * @param that - A predicate.
1268
- *
1269
1192
  * @example
1270
1193
  * ```ts
1194
+ * import * as assert from "node:assert"
1271
1195
  * import { Predicate } from "effect"
1272
1196
  *
1273
1197
  * const minLength = (n: number) => (s: string) => s.length >= n
@@ -1287,11 +1211,9 @@ export const and: {
1287
1211
  /**
1288
1212
  * Combines two predicates into a new predicate that returns `true` if both of the predicates returns `true`.
1289
1213
  *
1290
- * @param self - A predicate.
1291
- * @param that - A predicate.
1292
- *
1293
1214
  * @example
1294
1215
  * ```ts
1216
+ * import * as assert from "node:assert"
1295
1217
  * import { Predicate } from "effect"
1296
1218
  *
1297
1219
  * const minLength = (n: number) => (s: string) => s.length >= n
@@ -1311,11 +1233,9 @@ export const and: {
1311
1233
  /**
1312
1234
  * Combines two predicates into a new predicate that returns `true` if both of the predicates returns `true`.
1313
1235
  *
1314
- * @param self - A predicate.
1315
- * @param that - A predicate.
1316
- *
1317
1236
  * @example
1318
1237
  * ```ts
1238
+ * import * as assert from "node:assert"
1319
1239
  * import { Predicate } from "effect"
1320
1240
  *
1321
1241
  * const minLength = (n: number) => (s: string) => s.length >= n
@@ -1391,6 +1311,7 @@ export const eqv: {
1391
1311
  *
1392
1312
  * @example
1393
1313
  * ```ts
1314
+ * import * as assert from "node:assert"
1394
1315
  * import { Predicate } from "effect"
1395
1316
  *
1396
1317
  * type Triple = {
@@ -1438,6 +1359,7 @@ export const implies: {
1438
1359
  *
1439
1360
  * @example
1440
1361
  * ```ts
1362
+ * import * as assert from "node:assert"
1441
1363
  * import { Predicate } from "effect"
1442
1364
  *
1443
1365
  * type Triple = {
@@ -1485,6 +1407,7 @@ export const implies: {
1485
1407
  *
1486
1408
  * @example
1487
1409
  * ```ts
1410
+ * import * as assert from "node:assert"
1488
1411
  * import { Predicate } from "effect"
1489
1412
  *
1490
1413
  * type Triple = {
package/src/Random.ts CHANGED
@@ -154,10 +154,9 @@ export const Random: Context.Tag<Random, Random> = internal.randomTag
154
154
  * - Generating random UI data for visual tests.
155
155
  * - Creating data that needs to change daily but remain the same throughout a single day, such as using a date as the seed.
156
156
  *
157
- * @param seed - The seed value used to initialize the generator.
158
- *
159
157
  * @example
160
158
  * ```ts
159
+ * import * as assert from "node:assert"
161
160
  * import { Effect, Random } from "effect"
162
161
  *
163
162
  * const random1 = Random.make("myseed")