@typed/fx 1.0.5 → 1.0.7

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 (368) hide show
  1. package/dist/Fx.d.ts +3 -3
  2. package/dist/Fx.d.ts.map +1 -1
  3. package/dist/Subject/HoldSubject.d.ts +3 -3
  4. package/dist/Subject/HoldSubject.d.ts.map +1 -1
  5. package/dist/Subject/HoldSubject.js.map +1 -1
  6. package/dist/Subject/Subject.js +1 -1
  7. package/dist/Subject/Subject.js.map +1 -1
  8. package/dist/Subject/SynchronizedSubject.js +1 -1
  9. package/dist/Subject/SynchronizedSubject.js.map +1 -1
  10. package/dist/_internal/RefCounter.d.ts +1 -1
  11. package/dist/_internal/RefCounter.d.ts.map +1 -1
  12. package/dist/constructor/async.d.ts +2 -2
  13. package/dist/constructor/async.d.ts.map +1 -1
  14. package/dist/constructor/asyncEffect.d.ts +1 -1
  15. package/dist/constructor/asyncEffect.d.ts.map +1 -1
  16. package/dist/constructor/asyncInterrupt.d.ts +2 -2
  17. package/dist/constructor/asyncInterrupt.d.ts.map +1 -1
  18. package/dist/constructor/asyncInterrupt.js.map +1 -1
  19. package/dist/constructor/asyncOption.d.ts +3 -3
  20. package/dist/constructor/asyncOption.d.ts.map +1 -1
  21. package/dist/constructor/at.d.ts +2 -2
  22. package/dist/constructor/at.d.ts.map +1 -1
  23. package/dist/constructor/die.d.ts +1 -1
  24. package/dist/constructor/die.d.ts.map +1 -1
  25. package/dist/constructor/dieMessage.d.ts +1 -1
  26. package/dist/constructor/dieMessage.d.ts.map +1 -1
  27. package/dist/constructor/dieSync.d.ts +1 -1
  28. package/dist/constructor/dieSync.d.ts.map +1 -1
  29. package/dist/constructor/done.js +1 -1
  30. package/dist/constructor/done.js.map +1 -1
  31. package/dist/constructor/empty.js +1 -1
  32. package/dist/constructor/empty.js.map +1 -1
  33. package/dist/constructor/fail.d.ts +1 -1
  34. package/dist/constructor/fail.d.ts.map +1 -1
  35. package/dist/constructor/failCause.d.ts +2 -2
  36. package/dist/constructor/failCause.d.ts.map +1 -1
  37. package/dist/constructor/failCauseSync.d.ts +2 -2
  38. package/dist/constructor/failCauseSync.d.ts.map +1 -1
  39. package/dist/constructor/fromArray.js +1 -1
  40. package/dist/constructor/fromArray.js.map +1 -1
  41. package/dist/constructor/fromEffect.js +1 -1
  42. package/dist/constructor/fromEffect.js.map +1 -1
  43. package/dist/constructor/fromEither.d.ts +2 -2
  44. package/dist/constructor/fromEither.d.ts.map +1 -1
  45. package/dist/constructor/fromEitherCause.d.ts +3 -3
  46. package/dist/constructor/fromEitherCause.d.ts.map +1 -1
  47. package/dist/constructor/fromEmitter.d.ts +3 -3
  48. package/dist/constructor/fromEmitter.d.ts.map +1 -1
  49. package/dist/constructor/fromFiber.d.ts +2 -2
  50. package/dist/constructor/fromFiber.d.ts.map +1 -1
  51. package/dist/constructor/fromFiberEffect.d.ts +2 -2
  52. package/dist/constructor/fromFiberEffect.d.ts.map +1 -1
  53. package/dist/constructor/fromIterable.js +1 -1
  54. package/dist/constructor/fromIterable.js.map +1 -1
  55. package/dist/constructor/fromOption.d.ts +2 -2
  56. package/dist/constructor/fromOption.d.ts.map +1 -1
  57. package/dist/constructor/gen.d.ts +2 -2
  58. package/dist/constructor/gen.d.ts.map +1 -1
  59. package/dist/constructor/never.js +1 -1
  60. package/dist/constructor/never.js.map +1 -1
  61. package/dist/constructor/periodic.d.ts +2 -2
  62. package/dist/constructor/periodic.d.ts.map +1 -1
  63. package/dist/constructor/promise.d.ts +1 -1
  64. package/dist/constructor/promise.d.ts.map +1 -1
  65. package/dist/constructor/promiseAbort.d.ts +1 -1
  66. package/dist/constructor/promiseAbort.d.ts.map +1 -1
  67. package/dist/constructor/random.d.ts +2 -2
  68. package/dist/constructor/random.d.ts.map +1 -1
  69. package/dist/constructor/scheduled.d.ts +1 -1
  70. package/dist/constructor/scheduled.d.ts.map +1 -1
  71. package/dist/constructor/service.d.ts +2 -2
  72. package/dist/constructor/service.d.ts.map +1 -1
  73. package/dist/constructor/serviceWith.d.ts +2 -2
  74. package/dist/constructor/serviceWith.d.ts.map +1 -1
  75. package/dist/constructor/serviceWithEffect.d.ts +2 -2
  76. package/dist/constructor/serviceWithEffect.d.ts.map +1 -1
  77. package/dist/constructor/serviceWithFx.d.ts +1 -1
  78. package/dist/constructor/serviceWithFx.d.ts.map +1 -1
  79. package/dist/constructor/sync.d.ts +1 -1
  80. package/dist/constructor/sync.d.ts.map +1 -1
  81. package/dist/constructor/tryCatchPromise.d.ts +1 -1
  82. package/dist/constructor/tryCatchPromise.d.ts.map +1 -1
  83. package/dist/constructor/tryCatchPromiseAbort.d.ts +1 -1
  84. package/dist/constructor/tryCatchPromiseAbort.d.ts.map +1 -1
  85. package/dist/constructor/tryPromise.d.ts +1 -1
  86. package/dist/constructor/tryPromise.d.ts.map +1 -1
  87. package/dist/constructor/tryPromiseAbort.d.ts +1 -1
  88. package/dist/constructor/tryPromiseAbort.d.ts.map +1 -1
  89. package/dist/operator/as.d.ts +1 -1
  90. package/dist/operator/as.d.ts.map +1 -1
  91. package/dist/operator/catchAll.d.ts +1 -1
  92. package/dist/operator/catchAll.d.ts.map +1 -1
  93. package/dist/operator/catchAllCause.d.ts +1 -1
  94. package/dist/operator/catchAllCause.d.ts.map +1 -1
  95. package/dist/operator/catchAllDefect.d.ts +1 -1
  96. package/dist/operator/catchAllDefect.d.ts.map +1 -1
  97. package/dist/operator/compact.d.ts +2 -2
  98. package/dist/operator/compact.d.ts.map +1 -1
  99. package/dist/operator/concatMap.d.ts +1 -1
  100. package/dist/operator/concatMap.d.ts.map +1 -1
  101. package/dist/operator/debounce.d.ts +1 -1
  102. package/dist/operator/debounce.d.ts.map +1 -1
  103. package/dist/operator/delay.d.ts +1 -1
  104. package/dist/operator/delay.d.ts.map +1 -1
  105. package/dist/operator/exhaustMapEffect.d.ts +2 -2
  106. package/dist/operator/exhaustMapEffect.d.ts.map +1 -1
  107. package/dist/operator/exhaustMapLatestEffect.d.ts +2 -2
  108. package/dist/operator/exhaustMapLatestEffect.d.ts.map +1 -1
  109. package/dist/operator/filter.d.ts +1 -1
  110. package/dist/operator/filter.d.ts.map +1 -1
  111. package/dist/operator/flatMapCause.d.ts +1 -1
  112. package/dist/operator/flatMapCause.d.ts.map +1 -1
  113. package/dist/operator/flatMapConcurrently.d.ts +1 -1
  114. package/dist/operator/flatMapConcurrently.d.ts.map +1 -1
  115. package/dist/operator/flatMapEffect.d.ts +2 -2
  116. package/dist/operator/flatMapEffect.d.ts.map +1 -1
  117. package/dist/operator/flatMapEffectConcurrently.d.ts +2 -2
  118. package/dist/operator/flatMapEffectConcurrently.d.ts.map +1 -1
  119. package/dist/operator/hold.d.ts +3 -3
  120. package/dist/operator/hold.d.ts.map +1 -1
  121. package/dist/operator/mapCause.d.ts +1 -1
  122. package/dist/operator/mapCause.d.ts.map +1 -1
  123. package/dist/operator/mapError.d.ts +1 -1
  124. package/dist/operator/mapError.d.ts.map +1 -1
  125. package/dist/operator/multicast.d.ts +4 -4
  126. package/dist/operator/multicast.d.ts.map +1 -1
  127. package/dist/operator/onDone.d.ts +1 -1
  128. package/dist/operator/onDone.d.ts.map +1 -1
  129. package/dist/operator/onError.d.ts +1 -1
  130. package/dist/operator/onError.d.ts.map +1 -1
  131. package/dist/operator/onExit.d.ts +2 -2
  132. package/dist/operator/onExit.d.ts.map +1 -1
  133. package/dist/operator/onInterrupt.d.ts +2 -2
  134. package/dist/operator/onInterrupt.d.ts.map +1 -1
  135. package/dist/operator/orElse.d.ts +1 -1
  136. package/dist/operator/orElse.d.ts.map +1 -1
  137. package/dist/operator/provideLayer.d.ts +2 -2
  138. package/dist/operator/provideLayer.d.ts.map +1 -1
  139. package/dist/operator/provideService.d.ts +1 -1
  140. package/dist/operator/provideService.d.ts.map +1 -1
  141. package/dist/operator/provideServiceEffect.d.ts +1 -1
  142. package/dist/operator/provideServiceEffect.d.ts.map +1 -1
  143. package/dist/operator/provideSomeLayer.d.ts +1 -1
  144. package/dist/operator/provideSomeLayer.d.ts.map +1 -1
  145. package/dist/operator/sample.d.ts +1 -1
  146. package/dist/operator/sample.d.ts.map +1 -1
  147. package/dist/operator/sandbox.d.ts +2 -2
  148. package/dist/operator/sandbox.d.ts.map +1 -1
  149. package/dist/operator/scan.d.ts +1 -1
  150. package/dist/operator/scan.d.ts.map +1 -1
  151. package/dist/operator/scanEffect.js +1 -1
  152. package/dist/operator/scanEffect.js.map +1 -1
  153. package/dist/operator/separate.d.ts +1 -1
  154. package/dist/operator/separate.d.ts.map +1 -1
  155. package/dist/operator/skip.d.ts +1 -1
  156. package/dist/operator/skip.d.ts.map +1 -1
  157. package/dist/operator/skipAfter.d.ts +1 -1
  158. package/dist/operator/skipAfter.d.ts.map +1 -1
  159. package/dist/operator/skipUntil.d.ts +1 -1
  160. package/dist/operator/skipUntil.d.ts.map +1 -1
  161. package/dist/operator/skipWhile.d.ts +2 -2
  162. package/dist/operator/skipWhile.d.ts.map +1 -1
  163. package/dist/operator/skipWhile.js.map +1 -1
  164. package/dist/operator/startWith.d.ts +1 -1
  165. package/dist/operator/startWith.d.ts.map +1 -1
  166. package/dist/operator/struct.d.ts +1 -1
  167. package/dist/operator/struct.d.ts.map +1 -1
  168. package/dist/operator/switchMapCause.d.ts +1 -1
  169. package/dist/operator/switchMapCause.d.ts.map +1 -1
  170. package/dist/operator/switchMapCause.js.map +1 -1
  171. package/dist/operator/switchMapEffect.d.ts +2 -2
  172. package/dist/operator/switchMapEffect.d.ts.map +1 -1
  173. package/dist/operator/switchMapError.d.ts +2 -2
  174. package/dist/operator/switchMapError.d.ts.map +1 -1
  175. package/dist/operator/switchMapError.js +1 -1
  176. package/dist/operator/switchMapError.js.map +1 -1
  177. package/dist/operator/switchMatch.d.ts.map +1 -1
  178. package/dist/operator/switchMatch.js +2 -2
  179. package/dist/operator/switchMatch.js.map +1 -1
  180. package/dist/operator/take.d.ts +1 -1
  181. package/dist/operator/take.d.ts.map +1 -1
  182. package/dist/operator/takeUntil.d.ts +1 -1
  183. package/dist/operator/takeUntil.d.ts.map +1 -1
  184. package/dist/operator/takeWhile.d.ts +2 -2
  185. package/dist/operator/takeWhile.d.ts.map +1 -1
  186. package/dist/operator/takeWhile.js.map +1 -1
  187. package/dist/operator/tap.d.ts +1 -1
  188. package/dist/operator/tap.d.ts.map +1 -1
  189. package/dist/operator/tapDefect.d.ts +1 -1
  190. package/dist/operator/tapDefect.d.ts.map +1 -1
  191. package/dist/operator/tapError.d.ts +1 -1
  192. package/dist/operator/tapError.d.ts.map +1 -1
  193. package/dist/operator/throttle.d.ts +2 -2
  194. package/dist/operator/throttle.d.ts.map +1 -1
  195. package/dist/operator/tuple.d.ts +1 -1
  196. package/dist/operator/tuple.d.ts.map +1 -1
  197. package/dist/operator/withItems.d.ts +1 -1
  198. package/dist/operator/withItems.d.ts.map +1 -1
  199. package/dist/operator/withRuntimeFlags.d.ts +1 -1
  200. package/dist/operator/withRuntimeFlags.d.ts.map +1 -1
  201. package/dist/run/collectAll.d.ts +1 -1
  202. package/dist/run/collectAll.d.ts.map +1 -1
  203. package/dist/run/collectN.d.ts +1 -1
  204. package/dist/run/collectN.d.ts.map +1 -1
  205. package/dist/run/drain.d.ts +1 -1
  206. package/dist/run/drain.d.ts.map +1 -1
  207. package/dist/run/observe.d.ts +2 -2
  208. package/dist/run/observe.d.ts.map +1 -1
  209. package/dist/run/reduce.d.ts +1 -1
  210. package/dist/run/reduce.d.ts.map +1 -1
  211. package/dist/run/run.d.ts +2 -2
  212. package/dist/run/run.d.ts.map +1 -1
  213. package/dist/run/run.js +1 -1
  214. package/dist/run/run.js.map +1 -1
  215. package/dist/run/unsafe.d.ts +5 -5
  216. package/dist/run/unsafe.d.ts.map +1 -1
  217. package/dist/typeclass/Alternative.d.ts +2 -2
  218. package/dist/typeclass/Alternative.d.ts.map +1 -1
  219. package/dist/typeclass/Applicative.d.ts +2 -2
  220. package/dist/typeclass/Applicative.d.ts.map +1 -1
  221. package/dist/typeclass/Bicovariant.d.ts +2 -2
  222. package/dist/typeclass/Bicovariant.d.ts.map +1 -1
  223. package/dist/typeclass/Chainable.d.ts +2 -2
  224. package/dist/typeclass/Chainable.d.ts.map +1 -1
  225. package/dist/typeclass/Coproduct.d.ts +2 -2
  226. package/dist/typeclass/Coproduct.d.ts.map +1 -1
  227. package/dist/typeclass/Covariant.d.ts +2 -2
  228. package/dist/typeclass/Covariant.d.ts.map +1 -1
  229. package/dist/typeclass/FlatMap.d.ts +2 -2
  230. package/dist/typeclass/FlatMap.d.ts.map +1 -1
  231. package/dist/typeclass/Monad.d.ts +2 -2
  232. package/dist/typeclass/Monad.d.ts.map +1 -1
  233. package/dist/typeclass/Of.d.ts +2 -2
  234. package/dist/typeclass/Of.d.ts.map +1 -1
  235. package/dist/typeclass/Pointed.d.ts +2 -2
  236. package/dist/typeclass/Pointed.d.ts.map +1 -1
  237. package/dist/typeclass/Product.d.ts +2 -2
  238. package/dist/typeclass/Product.d.ts.map +1 -1
  239. package/dist/typeclass/SemiAlternative.d.ts +2 -2
  240. package/dist/typeclass/SemiAlternative.d.ts.map +1 -1
  241. package/dist/typeclass/SemiApplicative.d.ts +2 -2
  242. package/dist/typeclass/SemiApplicative.d.ts.map +1 -1
  243. package/dist/typeclass/SemiCoproduct.d.ts +2 -2
  244. package/dist/typeclass/SemiCoproduct.d.ts.map +1 -1
  245. package/dist/typeclass/SemiProduct.d.ts +1 -1
  246. package/dist/typeclass/SemiProduct.d.ts.map +1 -1
  247. package/dist/typeclass/TypeLambda.d.ts +2 -2
  248. package/dist/typeclass/TypeLambda.d.ts.map +1 -1
  249. package/package.json +4 -3
  250. package/src/Fx.ts +3 -3
  251. package/src/Subject/HoldSubject.ts +3 -3
  252. package/src/_internal/RefCounter.ts +1 -1
  253. package/src/constructor/async.ts +2 -2
  254. package/src/constructor/asyncEffect.ts +1 -1
  255. package/src/constructor/asyncInterrupt.ts +3 -5
  256. package/src/constructor/asyncOption.ts +3 -3
  257. package/src/constructor/at.ts +2 -2
  258. package/src/constructor/die.ts +1 -1
  259. package/src/constructor/dieMessage.ts +1 -1
  260. package/src/constructor/dieSync.ts +1 -1
  261. package/src/constructor/fail.ts +1 -1
  262. package/src/constructor/failCause.ts +2 -2
  263. package/src/constructor/failCauseSync.ts +2 -2
  264. package/src/constructor/fromEither.ts +2 -2
  265. package/src/constructor/fromEitherCause.ts +3 -3
  266. package/src/constructor/fromEmitter.ts +3 -3
  267. package/src/constructor/fromFiber.ts +2 -2
  268. package/src/constructor/fromFiberEffect.ts +2 -2
  269. package/src/constructor/fromOption.ts +2 -2
  270. package/src/constructor/gen.ts +2 -2
  271. package/src/constructor/periodic.ts +2 -2
  272. package/src/constructor/promise.ts +1 -1
  273. package/src/constructor/promiseAbort.ts +1 -1
  274. package/src/constructor/random.ts +2 -2
  275. package/src/constructor/scheduled.ts +1 -1
  276. package/src/constructor/service.ts +2 -2
  277. package/src/constructor/serviceWith.ts +2 -2
  278. package/src/constructor/serviceWithEffect.ts +2 -2
  279. package/src/constructor/serviceWithFx.ts +1 -1
  280. package/src/constructor/sync.ts +1 -1
  281. package/src/constructor/tryCatchPromise.ts +1 -1
  282. package/src/constructor/tryCatchPromiseAbort.ts +1 -1
  283. package/src/constructor/tryPromise.ts +1 -1
  284. package/src/constructor/tryPromiseAbort.ts +1 -1
  285. package/src/operator/as.ts +1 -1
  286. package/src/operator/catchAll.ts +1 -1
  287. package/src/operator/catchAllCause.ts +1 -1
  288. package/src/operator/catchAllDefect.ts +1 -1
  289. package/src/operator/compact.ts +2 -2
  290. package/src/operator/concatMap.ts +1 -1
  291. package/src/operator/debounce.ts +1 -1
  292. package/src/operator/delay.ts +1 -1
  293. package/src/operator/exhaustMap.ts +1 -1
  294. package/src/operator/exhaustMapEffect.ts +2 -2
  295. package/src/operator/exhaustMapLatest.ts +2 -2
  296. package/src/operator/exhaustMapLatestEffect.ts +2 -2
  297. package/src/operator/filter.ts +1 -1
  298. package/src/operator/flatMapCause.ts +1 -1
  299. package/src/operator/flatMapConcurrently.ts +1 -1
  300. package/src/operator/flatMapEffect.ts +2 -2
  301. package/src/operator/flatMapEffectConcurrently.ts +2 -2
  302. package/src/operator/hold.ts +3 -3
  303. package/src/operator/mapCause.ts +1 -1
  304. package/src/operator/mapError.ts +1 -1
  305. package/src/operator/multicast.ts +4 -4
  306. package/src/operator/onDone.ts +1 -1
  307. package/src/operator/onError.ts +1 -1
  308. package/src/operator/onExit.ts +2 -2
  309. package/src/operator/onInterrupt.ts +2 -2
  310. package/src/operator/orElse.ts +1 -1
  311. package/src/operator/provideEnvironment.ts +1 -1
  312. package/src/operator/provideLayer.ts +2 -2
  313. package/src/operator/provideService.ts +1 -1
  314. package/src/operator/provideServiceEffect.ts +2 -2
  315. package/src/operator/provideSomeEnvironment.ts +1 -1
  316. package/src/operator/provideSomeLayer.ts +1 -1
  317. package/src/operator/race.ts +1 -1
  318. package/src/operator/sample.ts +1 -1
  319. package/src/operator/sandbox.ts +2 -2
  320. package/src/operator/scan.ts +1 -1
  321. package/src/operator/separate.ts +1 -1
  322. package/src/operator/since.test.ts +48 -47
  323. package/src/operator/skip.ts +1 -1
  324. package/src/operator/skipAfter.ts +1 -1
  325. package/src/operator/skipUntil.ts +1 -1
  326. package/src/operator/skipWhile.ts +2 -2
  327. package/src/operator/startWith.ts +1 -1
  328. package/src/operator/struct.ts +1 -1
  329. package/src/operator/switchMapCause.ts +4 -4
  330. package/src/operator/switchMapEffect.ts +2 -2
  331. package/src/operator/switchMapError.ts +4 -7
  332. package/src/operator/switchMatch.test.ts +2 -2
  333. package/src/operator/switchMatch.ts +2 -2
  334. package/src/operator/take.ts +1 -1
  335. package/src/operator/takeUntil.ts +2 -2
  336. package/src/operator/takeWhile.ts +2 -2
  337. package/src/operator/tap.ts +1 -1
  338. package/src/operator/tapDefect.ts +1 -1
  339. package/src/operator/tapError.ts +1 -1
  340. package/src/operator/throttle.ts +3 -3
  341. package/src/operator/tuple.ts +1 -1
  342. package/src/operator/until.test.ts +47 -47
  343. package/src/operator/withItems.ts +1 -1
  344. package/src/operator/withRuntimeFlags.ts +1 -1
  345. package/src/run/collectAll.ts +1 -1
  346. package/src/run/collectN.ts +1 -1
  347. package/src/run/drain.ts +1 -1
  348. package/src/run/observe.ts +2 -2
  349. package/src/run/reduce.ts +1 -1
  350. package/src/run/run.ts +2 -2
  351. package/src/run/unsafe.ts +5 -5
  352. package/src/typeclass/Alternative.ts +2 -2
  353. package/src/typeclass/Applicative.ts +3 -3
  354. package/src/typeclass/Bicovariant.ts +2 -2
  355. package/src/typeclass/Chainable.ts +2 -2
  356. package/src/typeclass/Coproduct.ts +3 -3
  357. package/src/typeclass/Covariant.ts +2 -2
  358. package/src/typeclass/FlatMap.ts +2 -2
  359. package/src/typeclass/Monad.ts +2 -2
  360. package/src/typeclass/Of.ts +2 -2
  361. package/src/typeclass/Pointed.ts +2 -2
  362. package/src/typeclass/Product.ts +2 -2
  363. package/src/typeclass/SemiAlternative.ts +2 -2
  364. package/src/typeclass/SemiApplicative.ts +2 -2
  365. package/src/typeclass/SemiCoproduct.ts +2 -2
  366. package/src/typeclass/SemiProduct.ts +1 -1
  367. package/src/typeclass/TypeLambda.ts +2 -2
  368. package/tsconfig.build.tsbuildinfo +1 -1
@@ -1,7 +1,7 @@
1
1
  import { pipe } from '@fp-ts/data/Function'
2
- import { Predicate, not } from '@fp-ts/data/Predicate'
2
+ import { type Predicate, not } from '@fp-ts/data/Predicate'
3
3
 
4
- import { Fx } from '../Fx.js'
4
+ import type { Fx } from '../Fx.js'
5
5
 
6
6
  import { takeUntil } from './takeUntil.js'
7
7
 
@@ -1,7 +1,7 @@
1
1
  import * as Effect from '@effect/io/Effect'
2
2
  import { pipe } from '@fp-ts/data/Function'
3
3
 
4
- import { Fx } from '../Fx.js'
4
+ import type { Fx } from '../Fx.js'
5
5
  import { fromEffect } from '../constructor/fromEffect.js'
6
6
 
7
7
  import { flatMap } from './flatMap.js'
@@ -3,7 +3,7 @@ import * as Effect from '@effect/io/Effect'
3
3
  import { pipe } from '@fp-ts/data/Function'
4
4
  import { match } from '@fp-ts/data/Option'
5
5
 
6
- import { Fx } from '../Fx.js'
6
+ import type { Fx } from '../Fx.js'
7
7
 
8
8
  import { tapCause } from './tapCause.js'
9
9
 
@@ -3,7 +3,7 @@ import * as Effect from '@effect/io/Effect'
3
3
  import { match } from '@fp-ts/data/Either'
4
4
  import { pipe } from '@fp-ts/data/Function'
5
5
 
6
- import { Fx } from '../Fx.js'
6
+ import type { Fx } from '../Fx.js'
7
7
 
8
8
  import { tapCause } from './tapCause.js'
9
9
 
@@ -1,9 +1,9 @@
1
1
  import * as Effect from '@effect/io/Effect'
2
- import * as Fiber from '@effect/io/Fiber'
3
- import * as Duration from '@fp-ts/data/Duration'
2
+ import type * as Fiber from '@effect/io/Fiber'
3
+ import type * as Duration from '@fp-ts/data/Duration'
4
4
  import { pipe } from '@fp-ts/data/Function'
5
5
 
6
- import { Fx } from '../Fx.js'
6
+ import type { Fx } from '../Fx.js'
7
7
  import { suspend } from '../constructor/suspend.js'
8
8
 
9
9
  import { filterEffect } from './filterEffect.js'
@@ -1,4 +1,4 @@
1
- import { Fx } from '../Fx.js'
1
+ import type { Fx } from '../Fx.js'
2
2
 
3
3
  import { combineAll } from './combine.js'
4
4
 
@@ -1,47 +1,47 @@
1
- import { deepStrictEqual } from 'assert'
2
-
3
- import * as Effect from '@effect/io/Effect'
4
- import * as Fiber from '@effect/io/Fiber'
5
- import * as TestClock from '@effect/io/internal/testing/testClock'
6
- import * as TE from '@effect/io/internal/testing/testEnvironment'
7
- import * as Duration from '@fp-ts/data/Duration'
8
- import { pipe } from '@fp-ts/data/Function'
9
- import { describe, it } from 'vitest'
10
-
11
- import { at } from '../constructor/at.js'
12
- import { periodic } from '../constructor/periodic.js'
13
- import { collectAll } from '../run/collectAll.js'
14
-
15
- import { until } from './until.js'
16
- import { withItems } from './withItems.js'
17
-
18
- describe(import.meta.url, () => {
19
- describe(until.name, () => {
20
- it('interrupts a stream when a signal is received', async () => {
21
- const delay = 20
22
- const expected = 5
23
- const fx = pipe(
24
- periodic(Duration.millis(delay)),
25
- withItems([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]),
26
- until(at(Duration.millis(delay * expected), null)),
27
- )
28
-
29
- const test = pipe(
30
- Effect.gen(function* ($) {
31
- const fiber = yield* $(Effect.fork(collectAll(fx)))
32
-
33
- for (let i = 0; i < expected; i++) {
34
- yield* $(TestClock.adjust(Duration.millis(delay)))
35
- }
36
-
37
- return yield* $(Fiber.join(fiber))
38
- }),
39
- Effect.provideSomeLayer(TE.TestEnvironment),
40
- )
41
-
42
- const events = await Effect.unsafeRunPromise(test)
43
-
44
- deepStrictEqual(events, [1, 2, 3, 4, 5])
45
- })
46
- })
47
- })
1
+ // import { deepStrictEqual } from 'assert'
2
+
3
+ // import * as Effect from '@effect/io/Effect'
4
+ // import * as Fiber from '@effect/io/Fiber'
5
+ // import * as TestClock from '@effect/io/internal/testing/testClock'
6
+ // import * as TE from '@effect/io/internal/testing/testEnvironment'
7
+ // import * as Duration from '@fp-ts/data/Duration'
8
+ // import { pipe } from '@fp-ts/data/Function'
9
+ // import { describe, it } from 'vitest'
10
+
11
+ // import { at } from '../constructor/at.js'
12
+ // import { periodic } from '../constructor/periodic.js'
13
+ // import { collectAll } from '../run/collectAll.js'
14
+
15
+ // import { until } from './until.js'
16
+ // import { withItems } from './withItems.js'
17
+
18
+ // describe(import.meta.url, () => {
19
+ // describe(until.name, () => {
20
+ // it('interrupts a stream when a signal is received', async () => {
21
+ // const delay = 20
22
+ // const expected = 5
23
+ // const fx = pipe(
24
+ // periodic(Duration.millis(delay)),
25
+ // withItems([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]),
26
+ // until(at(Duration.millis(delay * expected), null)),
27
+ // )
28
+
29
+ // const test = pipe(
30
+ // Effect.gen(function* ($) {
31
+ // const fiber = yield* $(Effect.fork(collectAll(fx)))
32
+
33
+ // for (let i = 0; i < expected; i++) {
34
+ // yield* $(TestClock.adjust(Duration.millis(delay)))
35
+ // }
36
+
37
+ // return yield* $(Fiber.join(fiber))
38
+ // }),
39
+ // Effect.provideSomeLayer(TE.TestEnvironment),
40
+ // )
41
+
42
+ // const events = await Effect.unsafeRunPromise(test)
43
+
44
+ // deepStrictEqual(events, [1, 2, 3, 4, 5])
45
+ // })
46
+ // })
47
+ // })
@@ -1,6 +1,6 @@
1
1
  import { identity } from '@fp-ts/data/Function'
2
2
 
3
- import { Fx } from '../Fx.js'
3
+ import type { Fx } from '../Fx.js'
4
4
 
5
5
  import { zipItems } from './zipItems.js'
6
6
 
@@ -1,5 +1,5 @@
1
1
  import * as Effect from '@effect/io/Effect'
2
- import { RuntimeFlagsPatch } from '@effect/io/Fiber/Runtime/Flags/Patch'
2
+ import type { RuntimeFlagsPatch } from '@effect/io/Fiber/Runtime/Flags/Patch'
3
3
  import { pipe } from '@fp-ts/data/Function'
4
4
 
5
5
  import { Fx } from '../Fx.js'
@@ -1,7 +1,7 @@
1
1
  import * as Effect from '@effect/io/Effect'
2
2
  import { pipe } from '@fp-ts/data/Function'
3
3
 
4
- import { Fx } from '../Fx.js'
4
+ import type { Fx } from '../Fx.js'
5
5
 
6
6
  import { reduce } from './reduce.js'
7
7
 
@@ -1,7 +1,7 @@
1
1
  import * as Effect from '@effect/io/Effect'
2
2
  import { pipe } from '@fp-ts/data/Function'
3
3
 
4
- import { Fx } from '../Fx.js'
4
+ import type { Fx } from '../Fx.js'
5
5
  import { take } from '../operator/take.js'
6
6
 
7
7
  import { reduce } from './reduce.js'
package/src/run/drain.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as Effect from '@effect/io/Effect'
2
2
 
3
- import { Fx } from '../Fx.js'
3
+ import type { Fx } from '../Fx.js'
4
4
 
5
5
  import { observe } from './observe.js'
6
6
 
@@ -1,8 +1,8 @@
1
1
  import * as Effect from '@effect/io/Effect'
2
- import { Scope } from '@effect/io/Scope'
2
+ import type { Scope } from '@effect/io/Scope'
3
3
  import { flow } from '@fp-ts/data/Function'
4
4
 
5
- import { Fx } from '../Fx.js'
5
+ import type { Fx } from '../Fx.js'
6
6
 
7
7
  import { run_ } from './run.js'
8
8
 
package/src/run/reduce.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as Effect from '@effect/io/Effect'
2
2
  import { pipe } from '@fp-ts/data/Function'
3
3
 
4
- import { Fx } from '../Fx.js'
4
+ import type { Fx } from '../Fx.js'
5
5
 
6
6
  import { observeSync } from './observe.js'
7
7
 
package/src/run/run.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { Cause } from '@effect/io/Cause'
1
+ import type { Cause } from '@effect/io/Cause'
2
2
  import * as Deferred from '@effect/io/Deferred'
3
3
  import * as Effect from '@effect/io/Effect'
4
4
  import * as Fiber from '@effect/io/Fiber'
5
- import { Scope } from '@effect/io/Scope'
5
+ import type { Scope } from '@effect/io/Scope'
6
6
  import { flow, pipe } from '@fp-ts/data/Function'
7
7
 
8
8
  import { Fx, Sink } from '../Fx.js'
package/src/run/unsafe.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as Effect from '@effect/io/Effect'
2
- import * as Exit from '@effect/io/Exit'
3
- import * as Fiber from '@effect/io/Fiber'
4
- import { Cancel } from '@effect/io/Runtime'
5
- import * as Scope from '@effect/io/Scope'
2
+ import type * as Exit from '@effect/io/Exit'
3
+ import type * as Fiber from '@effect/io/Fiber'
4
+ import type { Cancel } from '@effect/io/Runtime'
5
+ import type * as Scope from '@effect/io/Scope'
6
6
 
7
- import { Fx } from '../Fx.js'
7
+ import type { Fx } from '../Fx.js'
8
8
 
9
9
  import { drain } from './drain.js'
10
10
 
@@ -1,8 +1,8 @@
1
- import * as A from '@fp-ts/core/typeclass/Alternative'
1
+ import type * as A from '@fp-ts/core/typeclass/Alternative'
2
2
 
3
3
  import { CoproductRace, CoproductOrElse } from './Coproduct.js'
4
4
  import { SemiAlternativeRace, SemiAlternativeOrElse } from './SemiAlternative.js'
5
- import { FxTypeLambda } from './TypeLambda.js'
5
+ import type { FxTypeLambda } from './TypeLambda.js'
6
6
 
7
7
  export const ApplicativeRace: A.Alternative<FxTypeLambda> = {
8
8
  ...SemiAlternativeRace,
@@ -1,11 +1,11 @@
1
- import * as A from '@fp-ts/core/typeclass/Applicative'
1
+ import type * as A from '@fp-ts/core/typeclass/Applicative'
2
2
 
3
- import { Fx } from '../Fx.js'
3
+ import type { Fx } from '../Fx.js'
4
4
  import { combineAll } from '../operator/combine.js'
5
5
 
6
6
  import { Of } from './Of.js'
7
7
  import { SemiApplicative } from './SemiApplicative.js'
8
- import { FxTypeLambda } from './TypeLambda.js'
8
+ import type { FxTypeLambda } from './TypeLambda.js'
9
9
 
10
10
  export const Applicative: A.Applicative<FxTypeLambda> = {
11
11
  ...SemiApplicative,
@@ -1,11 +1,11 @@
1
1
  import * as B from '@fp-ts/core/typeclass/Bicovariant'
2
2
  import { pipe } from '@fp-ts/data/Function'
3
3
 
4
- import { Fx } from '../Fx.js'
4
+ import type { Fx } from '../Fx.js'
5
5
  import { map } from '../operator/map.js'
6
6
  import { mapError } from '../operator/mapError.js'
7
7
 
8
- import { FxTypeLambda } from './TypeLambda.js'
8
+ import type { FxTypeLambda } from './TypeLambda.js'
9
9
 
10
10
  export const Bicovariant: B.Bicovariant<FxTypeLambda> = {
11
11
  bimap: (f, g) => (fa) => pipe(fa, mapError(f), map(g)),
@@ -1,8 +1,8 @@
1
- import * as C from '@fp-ts/core/typeclass/Chainable'
1
+ import type * as C from '@fp-ts/core/typeclass/Chainable'
2
2
 
3
3
  import { Covariant } from './Covariant.js'
4
4
  import { FlatMap, SwitchMap, ExhaustMap } from './FlatMap.js'
5
- import { FxTypeLambda } from './TypeLambda.js'
5
+ import type { FxTypeLambda } from './TypeLambda.js'
6
6
 
7
7
  export const Chainable: C.Chainable<FxTypeLambda> = {
8
8
  ...FlatMap,
@@ -1,14 +1,14 @@
1
1
  import * as Cause from '@effect/io/Cause'
2
- import * as CP from '@fp-ts/core/typeclass/Coproduct'
2
+ import type * as CP from '@fp-ts/core/typeclass/Coproduct'
3
3
 
4
- import { Fx } from '../Fx.js'
4
+ import type { Fx } from '../Fx.js'
5
5
  import { failCause } from '../constructor/failCause.js'
6
6
  import { never } from '../constructor/never.js'
7
7
  import { orElse } from '../operator/orElse.js'
8
8
  import { raceAll } from '../operator/race.js'
9
9
 
10
10
  import { SemiCoproductRace, SemiCoproductOrElse } from './SemiCoproduct.js'
11
- import { FxTypeLambda } from './TypeLambda.js'
11
+ import type { FxTypeLambda } from './TypeLambda.js'
12
12
 
13
13
  export const CoproductRace: CP.Coproduct<FxTypeLambda> = {
14
14
  ...SemiCoproductRace,
@@ -1,9 +1,9 @@
1
1
  import * as C from '@fp-ts/core/typeclass/Covariant'
2
2
 
3
- import { Fx } from '../Fx.js'
3
+ import type { Fx } from '../Fx.js'
4
4
  import { map } from '../operator/map.js'
5
5
 
6
- import { FxTypeLambda } from './TypeLambda.js'
6
+ import type { FxTypeLambda } from './TypeLambda.js'
7
7
 
8
8
  export const Covariant: C.Covariant<FxTypeLambda> = C.make((f) => map(f))
9
9
 
@@ -1,10 +1,10 @@
1
- import * as F from '@fp-ts/core/typeclass/FlatMap'
1
+ import type * as F from '@fp-ts/core/typeclass/FlatMap'
2
2
 
3
3
  import { exhaustMap } from '../operator/exhaustMap.js'
4
4
  import { flatMap } from '../operator/flatMap.js'
5
5
  import { switchMap } from '../operator/switchMap.js'
6
6
 
7
- import { FxTypeLambda } from './TypeLambda.js'
7
+ import type { FxTypeLambda } from './TypeLambda.js'
8
8
 
9
9
  export const FlatMap: F.FlatMap<FxTypeLambda> = {
10
10
  flatMap,
@@ -1,9 +1,9 @@
1
- import * as M from '@fp-ts/core/typeclass/Monad'
1
+ import type * as M from '@fp-ts/core/typeclass/Monad'
2
2
 
3
3
  import { Covariant } from './Covariant.js'
4
4
  import { FlatMap, SwitchMap, ExhaustMap } from './FlatMap.js'
5
5
  import { Pointed } from './Pointed.js'
6
- import { FxTypeLambda } from './TypeLambda.js'
6
+ import type { FxTypeLambda } from './TypeLambda.js'
7
7
 
8
8
  export const Monad: M.Monad<FxTypeLambda> = {
9
9
  ...FlatMap,
@@ -1,8 +1,8 @@
1
- import * as O from '@fp-ts/core/typeclass/Of'
1
+ import type * as O from '@fp-ts/core/typeclass/Of'
2
2
 
3
3
  import { succeed } from '../constructor/succeed.js'
4
4
 
5
- import { FxTypeLambda } from './TypeLambda.js'
5
+ import type { FxTypeLambda } from './TypeLambda.js'
6
6
 
7
7
  export const Of: O.Of<FxTypeLambda> = {
8
8
  of: succeed,
@@ -1,8 +1,8 @@
1
- import * as P from '@fp-ts/core/typeclass/Pointed'
1
+ import type * as P from '@fp-ts/core/typeclass/Pointed'
2
2
 
3
3
  import { Covariant } from './Covariant.js'
4
4
  import { Of } from './Of.js'
5
- import { FxTypeLambda } from './TypeLambda.js'
5
+ import type { FxTypeLambda } from './TypeLambda.js'
6
6
 
7
7
  export const Pointed: P.Pointed<FxTypeLambda> = {
8
8
  ...Of,
@@ -1,10 +1,10 @@
1
- import * as P from '@fp-ts/core/typeclass/Product'
1
+ import type * as P from '@fp-ts/core/typeclass/Product'
2
2
 
3
3
  import { combineAll } from '../operator/combine.js'
4
4
 
5
5
  import { Of } from './Of.js'
6
6
  import { SemiProduct } from './SemiProduct.js'
7
- import { FxTypeLambda } from './TypeLambda.js'
7
+ import type { FxTypeLambda } from './TypeLambda.js'
8
8
 
9
9
  export const Product: P.Product<FxTypeLambda> = {
10
10
  ...SemiProduct,
@@ -1,8 +1,8 @@
1
- import * as SA from '@fp-ts/core/typeclass/SemiAlternative'
1
+ import type * as SA from '@fp-ts/core/typeclass/SemiAlternative'
2
2
 
3
3
  import { Covariant } from './Covariant.js'
4
4
  import { SemiCoproductRace, SemiCoproductOrElse } from './SemiCoproduct.js'
5
- import { FxTypeLambda } from './TypeLambda.js'
5
+ import type { FxTypeLambda } from './TypeLambda.js'
6
6
 
7
7
  export const SemiAlternativeRace: SA.SemiAlternative<FxTypeLambda> = {
8
8
  ...SemiCoproductRace,
@@ -1,8 +1,8 @@
1
- import * as SA from '@fp-ts/core/typeclass/SemiApplicative'
1
+ import type * as SA from '@fp-ts/core/typeclass/SemiApplicative'
2
2
 
3
3
  import { Covariant } from './Covariant.js'
4
4
  import { SemiProduct } from './SemiProduct.js'
5
- import { FxTypeLambda } from './TypeLambda.js'
5
+ import type { FxTypeLambda } from './TypeLambda.js'
6
6
 
7
7
  export const SemiApplicative: SA.SemiApplicative<FxTypeLambda> = {
8
8
  ...SemiProduct,
@@ -1,10 +1,10 @@
1
- import * as SCP from '@fp-ts/core/typeclass/SemiCoproduct'
1
+ import type * as SCP from '@fp-ts/core/typeclass/SemiCoproduct'
2
2
 
3
3
  import { orElse } from '../operator/orElse.js'
4
4
  import { race, raceAll } from '../operator/race.js'
5
5
 
6
6
  import { Covariant } from './Covariant.js'
7
- import { FxTypeLambda } from './TypeLambda.js'
7
+ import type { FxTypeLambda } from './TypeLambda.js'
8
8
 
9
9
  export const SemiCoproductRace: SCP.SemiCoproduct<FxTypeLambda> = {
10
10
  coproduct: race,
@@ -3,7 +3,7 @@ import * as SP from '@fp-ts/core/typeclass/SemiProduct'
3
3
  import { combine } from '../operator/combine.js'
4
4
 
5
5
  import { Covariant } from './Covariant.js'
6
- import { FxTypeLambda } from './TypeLambda.js'
6
+ import type { FxTypeLambda } from './TypeLambda.js'
7
7
 
8
8
  export const SemiProduct: SP.SemiProduct<FxTypeLambda> = {
9
9
  product: combine,
@@ -1,6 +1,6 @@
1
- import { TypeLambda } from '@fp-ts/core/HKT'
1
+ import type { TypeLambda } from '@fp-ts/core/HKT'
2
2
 
3
- import { Fx } from '../Fx.js'
3
+ import type { Fx } from '../Fx.js'
4
4
 
5
5
  export interface FxTypeLambda extends TypeLambda {
6
6
  readonly type: Fx<this['Out2'], this['Out1'], this['Target']>