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/Stream.ts CHANGED
@@ -279,19 +279,15 @@ export const aggregate: {
279
279
  } = internal.aggregate
280
280
 
281
281
  /**
282
- * Like `aggregateWithinEither`, but only returns the `Right` results.
282
+ * Like {@link aggregateWithinEither}, but only returns the `Right` results.
283
283
  *
284
- * @param sink A `Sink` used to perform the aggregation.
285
- * @param schedule A `Schedule` used to signal when to stop the aggregation.
286
284
  * @since 2.0.0
287
285
  * @category utils
288
286
  */
289
287
  export const aggregateWithin: {
290
288
  /**
291
- * Like `aggregateWithinEither`, but only returns the `Right` results.
289
+ * Like {@link aggregateWithinEither}, but only returns the `Right` results.
292
290
  *
293
- * @param sink A `Sink` used to perform the aggregation.
294
- * @param schedule A `Schedule` used to signal when to stop the aggregation.
295
291
  * @since 2.0.0
296
292
  * @category utils
297
293
  */
@@ -300,10 +296,8 @@ export const aggregateWithin: {
300
296
  schedule: Schedule.Schedule<C, Option.Option<B>, R3>
301
297
  ): <E, R>(self: Stream<A, E, R>) => Stream<B, E2 | E, R2 | R3 | R>
302
298
  /**
303
- * Like `aggregateWithinEither`, but only returns the `Right` results.
299
+ * Like {@link aggregateWithinEither}, but only returns the `Right` results.
304
300
  *
305
- * @param sink A `Sink` used to perform the aggregation.
306
- * @param schedule A `Schedule` used to signal when to stop the aggregation.
307
301
  * @since 2.0.0
308
302
  * @category utils
309
303
  */
@@ -326,8 +320,6 @@ export const aggregateWithin: {
326
320
  * Aggregated elements will be fed into the schedule to determine the delays
327
321
  * between pulls.
328
322
  *
329
- * @param sink A `Sink` used to perform the aggregation.
330
- * @param schedule A `Schedule` used to signal when to stop the aggregation.
331
323
  * @since 2.0.0
332
324
  * @category utils
333
325
  */
@@ -344,8 +336,6 @@ export const aggregateWithinEither: {
344
336
  * Aggregated elements will be fed into the schedule to determine the delays
345
337
  * between pulls.
346
338
  *
347
- * @param sink A `Sink` used to perform the aggregation.
348
- * @param schedule A `Schedule` used to signal when to stop the aggregation.
349
339
  * @since 2.0.0
350
340
  * @category utils
351
341
  */
@@ -365,8 +355,6 @@ export const aggregateWithinEither: {
365
355
  * Aggregated elements will be fed into the schedule to determine the delays
366
356
  * between pulls.
367
357
  *
368
- * @param sink A `Sink` used to perform the aggregation.
369
- * @param schedule A `Schedule` used to signal when to stop the aggregation.
370
358
  * @since 2.0.0
371
359
  * @category utils
372
360
  */
@@ -3124,12 +3112,6 @@ export const flattenEffect: {
3124
3112
  /**
3125
3113
  * Unwraps `Exit` values that also signify end-of-stream by failing with `None`.
3126
3114
  *
3127
- * For `Exit` values that do not signal end-of-stream, prefer:
3128
- *
3129
- * ```ts
3130
- * stream.mapZIO(ZIO.done(_))
3131
- * ```
3132
- *
3133
3115
  * @since 2.0.0
3134
3116
  * @category sequencing
3135
3117
  */
@@ -3233,7 +3215,10 @@ export const fromChunk: <A>(chunk: Chunk.Chunk<A>) => Stream<A> = internal.fromC
3233
3215
  /**
3234
3216
  * Creates a stream from a subscription to a `PubSub`.
3235
3217
  *
3236
- * @param shutdown If `true`, the `PubSub` will be shutdown after the stream is evaluated (defaults to `false`)
3218
+ * **Options**
3219
+ *
3220
+ * - `shutdown`: If `true`, the `PubSub` will be shutdown after the stream is evaluated (defaults to `false`)
3221
+ *
3237
3222
  * @since 2.0.0
3238
3223
  * @category constructors
3239
3224
  */
@@ -3241,7 +3226,10 @@ export const fromChunkPubSub: {
3241
3226
  /**
3242
3227
  * Creates a stream from a subscription to a `PubSub`.
3243
3228
  *
3244
- * @param shutdown If `true`, the `PubSub` will be shutdown after the stream is evaluated (defaults to `false`)
3229
+ * **Options**
3230
+ *
3231
+ * - `shutdown`: If `true`, the `PubSub` will be shutdown after the stream is evaluated (defaults to `false`)
3232
+ *
3245
3233
  * @since 2.0.0
3246
3234
  * @category constructors
3247
3235
  */
@@ -3252,7 +3240,10 @@ export const fromChunkPubSub: {
3252
3240
  /**
3253
3241
  * Creates a stream from a subscription to a `PubSub`.
3254
3242
  *
3255
- * @param shutdown If `true`, the `PubSub` will be shutdown after the stream is evaluated (defaults to `false`)
3243
+ * **Options**
3244
+ *
3245
+ * - `shutdown`: If `true`, the `PubSub` will be shutdown after the stream is evaluated (defaults to `false`)
3246
+ *
3256
3247
  * @since 2.0.0
3257
3248
  * @category constructors
3258
3249
  */
@@ -3265,7 +3256,10 @@ export const fromChunkPubSub: {
3265
3256
  /**
3266
3257
  * Creates a stream from a `Queue` of values.
3267
3258
  *
3268
- * @param shutdown If `true`, the queue will be shutdown after the stream is evaluated (defaults to `false`)
3259
+ * **Options**
3260
+ *
3261
+ * - `shutdown`: If `true`, the queue will be shutdown after the stream is evaluated (defaults to `false`)
3262
+ *
3269
3263
  * @since 2.0.0
3270
3264
  * @category constructors
3271
3265
  */
@@ -3327,7 +3321,10 @@ export const fromEffectOption: <A, E, R>(effect: Effect.Effect<A, Option.Option<
3327
3321
  /**
3328
3322
  * Creates a stream from a subscription to a `PubSub`.
3329
3323
  *
3330
- * @param shutdown If `true`, the `PubSub` will be shutdown after the stream is evaluated (defaults to `false`)
3324
+ * **Options**
3325
+ *
3326
+ * - `shutdown`: If `true`, the `PubSub` will be shutdown after the stream is evaluated (defaults to `false`)
3327
+ *
3331
3328
  * @since 2.0.0
3332
3329
  * @category constructors
3333
3330
  */
@@ -3335,7 +3332,10 @@ export const fromPubSub: {
3335
3332
  /**
3336
3333
  * Creates a stream from a subscription to a `PubSub`.
3337
3334
  *
3338
- * @param shutdown If `true`, the `PubSub` will be shutdown after the stream is evaluated (defaults to `false`)
3335
+ * **Options**
3336
+ *
3337
+ * - `shutdown`: If `true`, the `PubSub` will be shutdown after the stream is evaluated (defaults to `false`)
3338
+ *
3339
3339
  * @since 2.0.0
3340
3340
  * @category constructors
3341
3341
  */
@@ -3350,7 +3350,10 @@ export const fromPubSub: {
3350
3350
  /**
3351
3351
  * Creates a stream from a subscription to a `PubSub`.
3352
3352
  *
3353
- * @param shutdown If `true`, the `PubSub` will be shutdown after the stream is evaluated (defaults to `false`)
3353
+ * **Options**
3354
+ *
3355
+ * - `shutdown`: If `true`, the `PubSub` will be shutdown after the stream is evaluated (defaults to `false`)
3356
+ *
3354
3357
  * @since 2.0.0
3355
3358
  * @category constructors
3356
3359
  */
@@ -3444,8 +3447,11 @@ export const fromPull: <R, R2, E, A>(
3444
3447
  /**
3445
3448
  * Creates a stream from a queue of values
3446
3449
  *
3447
- * @param maxChunkSize The maximum number of queued elements to put in one chunk in the stream
3448
- * @param shutdown If `true`, the queue will be shutdown after the stream is evaluated (defaults to `false`)
3450
+ * **Options**
3451
+ *
3452
+ * - `maxChunkSize`: The maximum number of queued elements to put in one chunk in the stream
3453
+ * - `shutdown`: If `true`, the queue will be shutdown after the stream is evaluated (defaults to `false`)
3454
+ *
3449
3455
  * @since 2.0.0
3450
3456
  * @category constructors
3451
3457
  */
@@ -3505,7 +3511,6 @@ export const fromReadableStream: {
3505
3511
  *
3506
3512
  * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader.
3507
3513
  *
3508
- * @param allocSize Controls the size of the underlying `ArrayBuffer` (defaults to `4096`).
3509
3514
  * @since 2.0.0
3510
3515
  * @category constructors
3511
3516
  */
@@ -3515,7 +3520,6 @@ export const fromReadableStreamByob: {
3515
3520
  *
3516
3521
  * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader.
3517
3522
  *
3518
- * @param allocSize Controls the size of the underlying `ArrayBuffer` (defaults to `4096`).
3519
3523
  * @since 2.0.0
3520
3524
  * @category constructors
3521
3525
  */
@@ -3532,13 +3536,13 @@ export const fromReadableStreamByob: {
3532
3536
  *
3533
3537
  * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader.
3534
3538
  *
3535
- * @param allocSize Controls the size of the underlying `ArrayBuffer` (defaults to `4096`).
3536
3539
  * @since 2.0.0
3537
3540
  * @category constructors
3538
3541
  */
3539
3542
  <E>(
3540
3543
  evaluate: LazyArg<ReadableStream<Uint8Array>>,
3541
3544
  onError: (error: unknown) => E,
3545
+ /** Controls the size of the underlying `ArrayBuffer` (defaults to `4096`) */
3542
3546
  allocSize?: number
3543
3547
  ): Stream<Uint8Array, E>
3544
3548
  } = internal.fromReadableStreamByob
@@ -3735,9 +3739,7 @@ export const groupBy: {
3735
3739
  * stream of words:
3736
3740
  *
3737
3741
  * ```ts
3738
- * import * as GroupBy from "./GroupBy"
3739
- * import * as Stream from "./Stream"
3740
- * import { pipe } from "./Function"
3742
+ * import { pipe, GroupBy, Stream } from "effect"
3741
3743
  *
3742
3744
  * pipe(
3743
3745
  * Stream.fromIterable(["hello", "world", "hi", "holla"]),
@@ -3773,9 +3775,7 @@ export const groupByKey: {
3773
3775
  * stream of words:
3774
3776
  *
3775
3777
  * ```ts
3776
- * import * as GroupBy from "./GroupBy"
3777
- * import * as Stream from "./Stream"
3778
- * import { pipe } from "./Function"
3778
+ * import { pipe, GroupBy, Stream } from "effect"
3779
3779
  *
3780
3780
  * pipe(
3781
3781
  * Stream.fromIterable(["hello", "world", "hi", "holla"]),
@@ -3816,9 +3816,7 @@ export const groupByKey: {
3816
3816
  * stream of words:
3817
3817
  *
3818
3818
  * ```ts
3819
- * import * as GroupBy from "./GroupBy"
3820
- * import * as Stream from "./Stream"
3821
- * import { pipe } from "./Function"
3819
+ * import { pipe, GroupBy, Stream } from "effect"
3822
3820
  *
3823
3821
  * pipe(
3824
3822
  * Stream.fromIterable(["hello", "world", "hi", "holla"]),
@@ -7337,7 +7335,6 @@ export const repeatWith: {
7337
7335
  * The schedule is reset as soon as the first element passes through the
7338
7336
  * stream again.
7339
7337
  *
7340
- * @param schedule A `Schedule` receiving as input the errors of the stream.
7341
7338
  * @since 2.0.0
7342
7339
  * @category utils
7343
7340
  */
@@ -7351,7 +7348,6 @@ export const retry: {
7351
7348
  * The schedule is reset as soon as the first element passes through the
7352
7349
  * stream again.
7353
7350
  *
7354
- * @param schedule A `Schedule` receiving as input the errors of the stream.
7355
7351
  * @since 2.0.0
7356
7352
  * @category utils
7357
7353
  */
@@ -7365,7 +7361,6 @@ export const retry: {
7365
7361
  * The schedule is reset as soon as the first element passes through the
7366
7362
  * stream again.
7367
7363
  *
7368
- * @param schedule A `Schedule` receiving as input the errors of the stream.
7369
7364
  * @since 2.0.0
7370
7365
  * @category utils
7371
7366
  */
@@ -8225,8 +8220,7 @@ export const scopedWith: <A, E, R>(f: (scope: Scope.Scope) => Effect.Effect<A, E
8225
8220
  * Emits a sliding window of `n` elements.
8226
8221
  *
8227
8222
  * ```ts
8228
- * import * as Stream from "./Stream"
8229
- * import { pipe } from "./Function"
8223
+ * import { pipe, Stream } from "effect"
8230
8224
  *
8231
8225
  * pipe(
8232
8226
  * Stream.make(1, 2, 3, 4),
@@ -8244,8 +8238,7 @@ export const sliding: {
8244
8238
  * Emits a sliding window of `n` elements.
8245
8239
  *
8246
8240
  * ```ts
8247
- * import * as Stream from "./Stream"
8248
- * import { pipe } from "./Function"
8241
+ * import { pipe, Stream } from "effect"
8249
8242
  *
8250
8243
  * pipe(
8251
8244
  * Stream.make(1, 2, 3, 4),
@@ -8263,8 +8256,7 @@ export const sliding: {
8263
8256
  * Emits a sliding window of `n` elements.
8264
8257
  *
8265
8258
  * ```ts
8266
- * import * as Stream from "./Stream"
8267
- * import { pipe } from "./Function"
8259
+ * import { pipe, Stream } from "effect"
8268
8260
  *
8269
8261
  * pipe(
8270
8262
  * Stream.make(1, 2, 3, 4),
@@ -8361,8 +8353,7 @@ export const someOrFail: {
8361
8353
  * Splits elements based on a predicate or refinement.
8362
8354
  *
8363
8355
  * ```ts
8364
- * import * as Stream from "./Stream"
8365
- * import { pipe } from "./Function"
8356
+ * import { pipe, Stream } from "effect"
8366
8357
  *
8367
8358
  * pipe(
8368
8359
  * Stream.range(1, 10),
@@ -8380,8 +8371,7 @@ export const split: {
8380
8371
  * Splits elements based on a predicate or refinement.
8381
8372
  *
8382
8373
  * ```ts
8383
- * import * as Stream from "./Stream"
8384
- * import { pipe } from "./Function"
8374
+ * import { pipe, Stream } from "effect"
8385
8375
  *
8386
8376
  * pipe(
8387
8377
  * Stream.range(1, 10),
@@ -8399,8 +8389,7 @@ export const split: {
8399
8389
  * Splits elements based on a predicate or refinement.
8400
8390
  *
8401
8391
  * ```ts
8402
- * import * as Stream from "./Stream"
8403
- * import { pipe } from "./Function"
8392
+ * import { pipe, Stream } from "effect"
8404
8393
  *
8405
8394
  * pipe(
8406
8395
  * Stream.range(1, 10),
@@ -8418,8 +8407,7 @@ export const split: {
8418
8407
  * Splits elements based on a predicate or refinement.
8419
8408
  *
8420
8409
  * ```ts
8421
- * import * as Stream from "./Stream"
8422
- * import { pipe } from "./Function"
8410
+ * import { pipe, Stream } from "effect"
8423
8411
  *
8424
8412
  * pipe(
8425
8413
  * Stream.range(1, 10),
@@ -8437,8 +8425,7 @@ export const split: {
8437
8425
  * Splits elements based on a predicate or refinement.
8438
8426
  *
8439
8427
  * ```ts
8440
- * import * as Stream from "./Stream"
8441
- * import { pipe } from "./Function"
8428
+ * import { pipe, Stream } from "effect"
8442
8429
  *
8443
8430
  * pipe(
8444
8431
  * Stream.range(1, 10),
@@ -11049,6 +11036,7 @@ export const zipWithIndex: <A, E, R>(self: Stream<A, E, R>) => Stream<[A, number
11049
11036
  *
11050
11037
  * @example
11051
11038
  * ```ts
11039
+ * import * as assert from "node:assert"
11052
11040
  * import { Chunk, Effect, pipe, Stream } from "effect"
11053
11041
  *
11054
11042
  * const result = pipe(
@@ -11082,6 +11070,7 @@ export const Do: Stream<{}> = internal.Do
11082
11070
  *
11083
11071
  * @example
11084
11072
  * ```ts
11073
+ * import * as assert from "node:assert"
11085
11074
  * import { Chunk, Effect, pipe, Stream } from "effect"
11086
11075
  *
11087
11076
  * const result = pipe(
@@ -11114,6 +11103,7 @@ export const bind: {
11114
11103
  *
11115
11104
  * @example
11116
11105
  * ```ts
11106
+ * import * as assert from "node:assert"
11117
11107
  * import { Chunk, Effect, pipe, Stream } from "effect"
11118
11108
  *
11119
11109
  * const result = pipe(
@@ -11152,6 +11142,7 @@ export const bind: {
11152
11142
  *
11153
11143
  * @example
11154
11144
  * ```ts
11145
+ * import * as assert from "node:assert"
11155
11146
  * import { Chunk, Effect, pipe, Stream } from "effect"
11156
11147
  *
11157
11148
  * const result = pipe(
@@ -11240,6 +11231,7 @@ export const bindEffect: {
11240
11231
  *
11241
11232
  * @example
11242
11233
  * ```ts
11234
+ * import * as assert from "node:assert"
11243
11235
  * import { Chunk, Effect, pipe, Stream } from "effect"
11244
11236
  *
11245
11237
  * const result = pipe(
@@ -11272,6 +11264,7 @@ export const bindTo: {
11272
11264
  *
11273
11265
  * @example
11274
11266
  * ```ts
11267
+ * import * as assert from "node:assert"
11275
11268
  * import { Chunk, Effect, pipe, Stream } from "effect"
11276
11269
  *
11277
11270
  * const result = pipe(
@@ -11304,6 +11297,7 @@ export const bindTo: {
11304
11297
  *
11305
11298
  * @example
11306
11299
  * ```ts
11300
+ * import * as assert from "node:assert"
11307
11301
  * import { Chunk, Effect, pipe, Stream } from "effect"
11308
11302
  *
11309
11303
  * const result = pipe(
@@ -11351,6 +11345,7 @@ export {
11351
11345
  *
11352
11346
  * @example
11353
11347
  * ```ts
11348
+ * import * as assert from "node:assert"
11354
11349
  * import { Chunk, Effect, pipe, Stream } from "effect"
11355
11350
  *
11356
11351
  * const result = pipe(