@typed/fx 2.0.0-beta.6 → 2.0.0-beta.8
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.
- package/LICENSE +21 -0
- package/README.md +1 -1
- package/dist/Fx/Fx.d.ts +9 -9
- package/dist/Fx/Fx.js +1 -1
- package/dist/Fx/TypeId.d.ts +3 -3
- package/dist/Fx/TypeId.js +2 -2
- package/dist/Fx/combinators/additive.d.ts +6 -6
- package/dist/Fx/combinators/additive.js +6 -6
- package/dist/Fx/combinators/catch.d.ts +7 -7
- package/dist/Fx/combinators/catch.js +7 -7
- package/dist/Fx/combinators/causes.d.ts +1 -1
- package/dist/Fx/combinators/causes.js +1 -1
- package/dist/Fx/combinators/changesWithEffect.d.ts +1 -1
- package/dist/Fx/combinators/changesWithEffect.js +1 -1
- package/dist/Fx/combinators/compact.d.ts +1 -1
- package/dist/Fx/combinators/compact.js +1 -1
- package/dist/Fx/combinators/concatMap.d.ts +2 -2
- package/dist/Fx/combinators/concatMap.js +2 -2
- package/dist/Fx/combinators/continueWith.d.ts +4 -4
- package/dist/Fx/combinators/continueWith.js +4 -4
- package/dist/Fx/combinators/debounce.d.ts +2 -2
- package/dist/Fx/combinators/debounce.d.ts.map +1 -1
- package/dist/Fx/combinators/debounce.js +1 -1
- package/dist/Fx/combinators/delay.d.ts +9 -7
- package/dist/Fx/combinators/delay.d.ts.map +1 -1
- package/dist/Fx/combinators/delay.js +8 -6
- package/dist/Fx/combinators/dropUntil.d.ts +2 -2
- package/dist/Fx/combinators/dropUntil.js +2 -2
- package/dist/Fx/combinators/during.d.ts +1 -1
- package/dist/Fx/combinators/during.js +1 -1
- package/dist/Fx/combinators/ensuring.d.ts +1 -1
- package/dist/Fx/combinators/ensuring.js +1 -1
- package/dist/Fx/combinators/exhaustLatestMap.d.ts +1 -1
- package/dist/Fx/combinators/exhaustLatestMap.js +1 -1
- package/dist/Fx/combinators/exhaustLatestMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/exhaustLatestMapEffect.js +1 -1
- package/dist/Fx/combinators/exhaustMap.d.ts +1 -1
- package/dist/Fx/combinators/exhaustMap.js +1 -1
- package/dist/Fx/combinators/exhaustMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/exhaustMapEffect.js +1 -1
- package/dist/Fx/combinators/exit.d.ts +1 -1
- package/dist/Fx/combinators/exit.js +1 -1
- package/dist/Fx/combinators/filter.d.ts +1 -1
- package/dist/Fx/combinators/filter.js +1 -1
- package/dist/Fx/combinators/filterEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterEffect.js +1 -1
- package/dist/Fx/combinators/filterMap.d.ts +1 -1
- package/dist/Fx/combinators/filterMap.js +1 -1
- package/dist/Fx/combinators/filterMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterMapEffect.js +1 -1
- package/dist/Fx/combinators/filterMapLoop.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoop.js +1 -1
- package/dist/Fx/combinators/filterMapLoopCause.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoopCause.js +1 -1
- package/dist/Fx/combinators/filterMapLoopCauseEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoopCauseEffect.js +1 -1
- package/dist/Fx/combinators/filterMapLoopEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoopEffect.js +1 -1
- package/dist/Fx/combinators/flatMap.d.ts +2 -2
- package/dist/Fx/combinators/flatMap.js +1 -1
- package/dist/Fx/combinators/flatMapConcurrently.d.ts +1 -1
- package/dist/Fx/combinators/flatMapConcurrently.js +1 -1
- package/dist/Fx/combinators/flatMapConcurrentlyEffect.d.ts +1 -1
- package/dist/Fx/combinators/flatMapConcurrentlyEffect.js +1 -1
- package/dist/Fx/combinators/flatMapEffect.d.ts +2 -2
- package/dist/Fx/combinators/flatMapEffect.js +1 -1
- package/dist/Fx/combinators/flip.d.ts +1 -1
- package/dist/Fx/combinators/flip.js +1 -1
- package/dist/Fx/combinators/gen.d.ts +1 -1
- package/dist/Fx/combinators/gen.js +1 -1
- package/dist/Fx/combinators/genScoped.d.ts +1 -1
- package/dist/Fx/combinators/genScoped.js +1 -1
- package/dist/Fx/combinators/grouped.d.ts +2 -2
- package/dist/Fx/combinators/grouped.js +2 -2
- package/dist/Fx/combinators/keyed.d.ts +2 -2
- package/dist/Fx/combinators/keyed.js +1 -1
- package/dist/Fx/combinators/loop.d.ts +1 -1
- package/dist/Fx/combinators/loop.js +1 -1
- package/dist/Fx/combinators/loopCause.d.ts +1 -1
- package/dist/Fx/combinators/loopCause.js +1 -1
- package/dist/Fx/combinators/loopCauseEffect.d.ts +1 -1
- package/dist/Fx/combinators/loopCauseEffect.js +1 -1
- package/dist/Fx/combinators/loopEffect.d.ts +1 -1
- package/dist/Fx/combinators/loopEffect.js +1 -1
- package/dist/Fx/combinators/map.d.ts +2 -2
- package/dist/Fx/combinators/map.js +2 -2
- package/dist/Fx/combinators/mapBoth.d.ts +1 -1
- package/dist/Fx/combinators/mapBoth.js +1 -1
- package/dist/Fx/combinators/mapEffect.d.ts +1 -1
- package/dist/Fx/combinators/mapEffect.js +1 -1
- package/dist/Fx/combinators/mapError.d.ts +1 -1
- package/dist/Fx/combinators/mapError.js +1 -1
- package/dist/Fx/combinators/mergeAll.d.ts +1 -1
- package/dist/Fx/combinators/mergeAll.js +1 -1
- package/dist/Fx/combinators/mergeOrdered.d.ts +1 -1
- package/dist/Fx/combinators/mergeOrdered.d.ts.map +1 -1
- package/dist/Fx/combinators/mergeOrdered.js +33 -11
- package/dist/Fx/combinators/onError.d.ts +1 -1
- package/dist/Fx/combinators/onError.js +1 -1
- package/dist/Fx/combinators/onExit.d.ts +1 -1
- package/dist/Fx/combinators/onExit.js +1 -1
- package/dist/Fx/combinators/onInterrupt.d.ts +1 -1
- package/dist/Fx/combinators/onInterrupt.js +1 -1
- package/dist/Fx/combinators/pairwise.d.ts +1 -1
- package/dist/Fx/combinators/pairwise.js +1 -1
- package/dist/Fx/combinators/provide.d.ts +4 -4
- package/dist/Fx/combinators/provide.js +4 -4
- package/dist/Fx/combinators/race.d.ts +2 -2
- package/dist/Fx/combinators/race.js +2 -2
- package/dist/Fx/combinators/repeat.d.ts +1 -1
- package/dist/Fx/combinators/repeat.js +1 -1
- package/dist/Fx/combinators/result.d.ts +1 -1
- package/dist/Fx/combinators/result.js +1 -1
- package/dist/Fx/combinators/retry.d.ts +1 -1
- package/dist/Fx/combinators/retry.js +1 -1
- package/dist/Fx/combinators/sample.d.ts +1 -1
- package/dist/Fx/combinators/sample.js +1 -1
- package/dist/Fx/combinators/scan.d.ts +2 -2
- package/dist/Fx/combinators/scan.js +2 -2
- package/dist/Fx/combinators/since.d.ts +1 -1
- package/dist/Fx/combinators/since.js +1 -1
- package/dist/Fx/combinators/skip.d.ts +2 -2
- package/dist/Fx/combinators/skip.js +2 -2
- package/dist/Fx/combinators/skipRepeats.d.ts +1 -1
- package/dist/Fx/combinators/skipRepeats.js +1 -1
- package/dist/Fx/combinators/skipRepeatsWith.d.ts +1 -1
- package/dist/Fx/combinators/skipRepeatsWith.js +1 -1
- package/dist/Fx/combinators/skipWhile.d.ts +4 -4
- package/dist/Fx/combinators/skipWhile.js +4 -4
- package/dist/Fx/combinators/slice.d.ts +3 -3
- package/dist/Fx/combinators/slice.js +2 -2
- package/dist/Fx/combinators/switchMap.d.ts +1 -1
- package/dist/Fx/combinators/switchMap.js +1 -1
- package/dist/Fx/combinators/switchMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/switchMapEffect.js +1 -1
- package/dist/Fx/combinators/take.d.ts +2 -2
- package/dist/Fx/combinators/take.js +2 -2
- package/dist/Fx/combinators/takeUntil.d.ts +3 -3
- package/dist/Fx/combinators/takeUntil.js +3 -3
- package/dist/Fx/combinators/takeWhile.d.ts +2 -2
- package/dist/Fx/combinators/takeWhile.js +2 -2
- package/dist/Fx/combinators/tapEffect.d.ts +1 -1
- package/dist/Fx/combinators/tapEffect.js +1 -1
- package/dist/Fx/combinators/throttle.d.ts +3 -3
- package/dist/Fx/combinators/throttle.d.ts.map +1 -1
- package/dist/Fx/combinators/throttle.js +1 -1
- package/dist/Fx/combinators/timeout.d.ts +2 -2
- package/dist/Fx/combinators/timeout.js +2 -2
- package/dist/Fx/combinators/tuple.d.ts +2 -2
- package/dist/Fx/combinators/tuple.js +2 -2
- package/dist/Fx/combinators/until.d.ts +1 -1
- package/dist/Fx/combinators/until.js +1 -1
- package/dist/Fx/combinators/unwrap.d.ts +1 -1
- package/dist/Fx/combinators/unwrap.js +1 -1
- package/dist/Fx/combinators/unwrapScoped.d.ts +1 -1
- package/dist/Fx/combinators/unwrapScoped.js +1 -1
- package/dist/Fx/combinators/when.d.ts +2 -2
- package/dist/Fx/combinators/when.js +2 -2
- package/dist/Fx/combinators/withLatestFrom.d.ts +2 -2
- package/dist/Fx/combinators/withLatestFrom.js +2 -2
- package/dist/Fx/combinators/withSpan.d.ts +1 -1
- package/dist/Fx/combinators/withSpan.js +1 -1
- package/dist/Fx/combinators/zip.d.ts +4 -4
- package/dist/Fx/combinators/zip.js +4 -4
- package/dist/Fx/constructors/at.d.ts +1 -1
- package/dist/Fx/constructors/at.js +1 -1
- package/dist/Fx/constructors/die.d.ts +1 -1
- package/dist/Fx/constructors/die.js +1 -1
- package/dist/Fx/constructors/empty.d.ts +1 -1
- package/dist/Fx/constructors/empty.js +1 -1
- package/dist/Fx/constructors/fail.d.ts +1 -1
- package/dist/Fx/constructors/fail.js +1 -1
- package/dist/Fx/constructors/failCause.d.ts +1 -1
- package/dist/Fx/constructors/failCause.js +1 -1
- package/dist/Fx/constructors/fn.d.ts +4 -4
- package/dist/Fx/constructors/fn.js +1 -1
- package/dist/Fx/constructors/fromEffect.d.ts +2 -2
- package/dist/Fx/constructors/fromEffect.js +2 -2
- package/dist/Fx/constructors/fromFailures.d.ts +1 -1
- package/dist/Fx/constructors/fromFailures.js +1 -1
- package/dist/Fx/constructors/fromIterable.d.ts +1 -1
- package/dist/Fx/constructors/fromIterable.js +1 -1
- package/dist/Fx/constructors/fromSchedule.d.ts +6 -4
- package/dist/Fx/constructors/fromSchedule.d.ts.map +1 -1
- package/dist/Fx/constructors/fromSchedule.js +6 -4
- package/dist/Fx/constructors/interrupt.d.ts +1 -1
- package/dist/Fx/constructors/interrupt.js +1 -1
- package/dist/Fx/constructors/make.d.ts +9 -7
- package/dist/Fx/constructors/make.d.ts.map +1 -1
- package/dist/Fx/constructors/make.js +8 -6
- package/dist/Fx/constructors/periodic.d.ts +1 -1
- package/dist/Fx/constructors/periodic.js +1 -1
- package/dist/Fx/constructors/succeed.d.ts +4 -4
- package/dist/Fx/constructors/succeed.js +4 -4
- package/dist/Fx/constructors/suspend.d.ts +1 -1
- package/dist/Fx/constructors/suspend.js +1 -1
- package/dist/Fx/constructors/sync.d.ts +1 -1
- package/dist/Fx/constructors/sync.js +1 -1
- package/dist/Fx/run/collect.d.ts +4 -4
- package/dist/Fx/run/collect.js +4 -4
- package/dist/Fx/run/first.d.ts +1 -1
- package/dist/Fx/run/first.js +1 -1
- package/dist/Fx/run/fork.d.ts +2 -2
- package/dist/Fx/run/fork.js +2 -2
- package/dist/Fx/run/observe.d.ts +7 -5
- package/dist/Fx/run/observe.d.ts.map +1 -1
- package/dist/Fx/run/observe.js +30 -15
- package/dist/Fx/run/runPromise.d.ts +2 -2
- package/dist/Fx/run/runPromise.js +2 -2
- package/dist/Fx/stream.d.ts +4 -4
- package/dist/Fx/stream.js +2 -2
- package/dist/Push/Push.d.ts +30 -30
- package/dist/Push/Push.js +26 -26
- package/dist/RefSubject/Hydration.d.ts +24 -24
- package/dist/RefSubject/Hydration.js +5 -5
- package/dist/RefSubject/RefArray.d.ts +31 -31
- package/dist/RefSubject/RefArray.js +30 -30
- package/dist/RefSubject/RefBigDecimal.d.ts +20 -20
- package/dist/RefSubject/RefBigDecimal.js +19 -19
- package/dist/RefSubject/RefBigInt.d.ts +15 -15
- package/dist/RefSubject/RefBigInt.js +14 -14
- package/dist/RefSubject/RefBoolean.d.ts +15 -15
- package/dist/RefSubject/RefBoolean.js +14 -14
- package/dist/RefSubject/RefCause.d.ts +11 -11
- package/dist/RefSubject/RefCause.js +10 -10
- package/dist/RefSubject/RefChunk.d.ts +37 -37
- package/dist/RefSubject/RefChunk.js +36 -36
- package/dist/RefSubject/RefDateTime.d.ts +11 -11
- package/dist/RefSubject/RefDateTime.js +10 -10
- package/dist/RefSubject/RefDuration.d.ts +14 -14
- package/dist/RefSubject/RefDuration.js +13 -13
- package/dist/RefSubject/RefGraph.d.ts +29 -29
- package/dist/RefSubject/RefGraph.js +28 -28
- package/dist/RefSubject/RefHashMap.d.ts +27 -27
- package/dist/RefSubject/RefHashMap.js +26 -26
- package/dist/RefSubject/RefHashRing.d.ts +13 -13
- package/dist/RefSubject/RefHashRing.js +12 -12
- package/dist/RefSubject/RefHashSet.d.ts +21 -21
- package/dist/RefSubject/RefHashSet.js +20 -20
- package/dist/RefSubject/RefIterable.d.ts +30 -30
- package/dist/RefSubject/RefIterable.js +29 -29
- package/dist/RefSubject/RefOption.d.ts +13 -13
- package/dist/RefSubject/RefOption.js +12 -12
- package/dist/RefSubject/RefRecord.d.ts +31 -31
- package/dist/RefSubject/RefRecord.js +30 -30
- package/dist/RefSubject/RefResult.d.ts +12 -12
- package/dist/RefSubject/RefResult.js +11 -11
- package/dist/RefSubject/RefString.d.ts +17 -17
- package/dist/RefSubject/RefString.js +16 -16
- package/dist/RefSubject/RefStruct.d.ts +13 -13
- package/dist/RefSubject/RefStruct.js +12 -12
- package/dist/RefSubject/RefSubject.d.ts +93 -94
- package/dist/RefSubject/RefSubject.d.ts.map +1 -1
- package/dist/RefSubject/RefSubject.js +132 -77
- package/dist/RefSubject/RefTrie.d.ts +26 -26
- package/dist/RefSubject/RefTrie.js +25 -25
- package/dist/RefSubject/RefTuple.d.ts +11 -11
- package/dist/RefSubject/RefTuple.js +9 -9
- package/dist/Sink/Sink.d.ts +21 -19
- package/dist/Sink/Sink.d.ts.map +1 -1
- package/dist/Sink/Sink.js +5 -4
- package/dist/Sink/combinators.d.ts +33 -33
- package/dist/Sink/combinators.js +32 -32
- package/dist/Subject/Subject.d.ts +14 -13
- package/dist/Subject/Subject.d.ts.map +1 -1
- package/dist/Subject/Subject.js +11 -10
- package/dist/Versioned/Versioned.d.ts +31 -28
- package/dist/Versioned/Versioned.d.ts.map +1 -1
- package/dist/Versioned/Versioned.js +45 -37
- package/package.json +5 -4
|
@@ -21,7 +21,7 @@ import * as RefSubject from "./RefSubject.js";
|
|
|
21
21
|
* services, interruption, and Scope requirements expressed by its members.
|
|
22
22
|
*
|
|
23
23
|
* @since 1.18.0
|
|
24
|
-
* @category models
|
|
24
|
+
* @category State models
|
|
25
25
|
*/
|
|
26
26
|
export interface RefBoolean<in out E = never, out R = never> extends RefSubject.RefSubject<boolean, E, R> {
|
|
27
27
|
}
|
|
@@ -52,7 +52,7 @@ export interface RefBoolean<in out E = never, out R = never> extends RefSubject.
|
|
|
52
52
|
* ```
|
|
53
53
|
*
|
|
54
54
|
* @since 1.18.0
|
|
55
|
-
* @category
|
|
55
|
+
* @category Constructors
|
|
56
56
|
*/
|
|
57
57
|
export declare function make<E = never, R = never>(initial: boolean | Effect.Effect<boolean, E, R> | Fx.Fx<boolean, E, R>, eq?: Equivalence<boolean>): Effect.Effect<RefBoolean<E>, never, R | Scope.Scope>;
|
|
58
58
|
/**
|
|
@@ -69,7 +69,7 @@ export declare function make<E = never, R = never>(initial: boolean | Effect.Eff
|
|
|
69
69
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
70
70
|
*
|
|
71
71
|
* @since 1.18.0
|
|
72
|
-
* @category
|
|
72
|
+
* @category State updates
|
|
73
73
|
*/
|
|
74
74
|
export declare const toggle: <E, R>(ref: RefBoolean<E, R>) => Effect.Effect<boolean, E, R>;
|
|
75
75
|
/**
|
|
@@ -86,7 +86,7 @@ export declare const toggle: <E, R>(ref: RefBoolean<E, R>) => Effect.Effect<bool
|
|
|
86
86
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
87
87
|
*
|
|
88
88
|
* @since 1.18.0
|
|
89
|
-
* @category
|
|
89
|
+
* @category State updates
|
|
90
90
|
*/
|
|
91
91
|
export declare const setTrue: <E, R>(ref: RefBoolean<E, R>) => Effect.Effect<boolean, E, R>;
|
|
92
92
|
/**
|
|
@@ -103,7 +103,7 @@ export declare const setTrue: <E, R>(ref: RefBoolean<E, R>) => Effect.Effect<boo
|
|
|
103
103
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
104
104
|
*
|
|
105
105
|
* @since 1.18.0
|
|
106
|
-
* @category
|
|
106
|
+
* @category State updates
|
|
107
107
|
*/
|
|
108
108
|
export declare const setFalse: <E, R>(ref: RefBoolean<E, R>) => Effect.Effect<boolean, E, R>;
|
|
109
109
|
/**
|
|
@@ -120,7 +120,7 @@ export declare const setFalse: <E, R>(ref: RefBoolean<E, R>) => Effect.Effect<bo
|
|
|
120
120
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
121
121
|
*
|
|
122
122
|
* @since 1.18.0
|
|
123
|
-
* @category
|
|
123
|
+
* @category Derived queries
|
|
124
124
|
*/
|
|
125
125
|
export declare const and: {
|
|
126
126
|
(that: boolean): <E, R>(ref: RefBoolean<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -140,7 +140,7 @@ export declare const and: {
|
|
|
140
140
|
* follows later pushes and its observing Scope owns subscription cleanup.
|
|
141
141
|
*
|
|
142
142
|
* @since 1.18.0
|
|
143
|
-
* @category
|
|
143
|
+
* @category Derived queries
|
|
144
144
|
*/
|
|
145
145
|
export declare const or: {
|
|
146
146
|
(that: boolean): <E, R>(ref: RefBoolean<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -160,7 +160,7 @@ export declare const or: {
|
|
|
160
160
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
161
161
|
*
|
|
162
162
|
* @since 1.18.0
|
|
163
|
-
* @category
|
|
163
|
+
* @category Derived queries
|
|
164
164
|
*/
|
|
165
165
|
export declare const not: <E, R>(ref: RefBoolean<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
166
166
|
/**
|
|
@@ -177,7 +177,7 @@ export declare const not: <E, R>(ref: RefBoolean<E, R>) => RefSubject.Computed<b
|
|
|
177
177
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
178
178
|
*
|
|
179
179
|
* @since 1.18.0
|
|
180
|
-
* @category
|
|
180
|
+
* @category Derived queries
|
|
181
181
|
*/
|
|
182
182
|
export declare const xor: {
|
|
183
183
|
(that: boolean): <E, R>(ref: RefBoolean<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -197,7 +197,7 @@ export declare const xor: {
|
|
|
197
197
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
198
198
|
*
|
|
199
199
|
* @since 1.18.0
|
|
200
|
-
* @category
|
|
200
|
+
* @category Derived queries
|
|
201
201
|
*/
|
|
202
202
|
export declare const nand: {
|
|
203
203
|
(that: boolean): <E, R>(ref: RefBoolean<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -217,7 +217,7 @@ export declare const nand: {
|
|
|
217
217
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
218
218
|
*
|
|
219
219
|
* @since 1.18.0
|
|
220
|
-
* @category
|
|
220
|
+
* @category Derived queries
|
|
221
221
|
*/
|
|
222
222
|
export declare const nor: {
|
|
223
223
|
(that: boolean): <E, R>(ref: RefBoolean<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -237,7 +237,7 @@ export declare const nor: {
|
|
|
237
237
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
238
238
|
*
|
|
239
239
|
* @since 1.18.0
|
|
240
|
-
* @category
|
|
240
|
+
* @category Derived queries
|
|
241
241
|
*/
|
|
242
242
|
export declare const eqv: {
|
|
243
243
|
(that: boolean): <E, R>(ref: RefBoolean<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -257,7 +257,7 @@ export declare const eqv: {
|
|
|
257
257
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
258
258
|
*
|
|
259
259
|
* @since 1.18.0
|
|
260
|
-
* @category
|
|
260
|
+
* @category Derived queries
|
|
261
261
|
*/
|
|
262
262
|
export declare const implies: {
|
|
263
263
|
(that: boolean): <E, R>(ref: RefBoolean<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -277,7 +277,7 @@ export declare const implies: {
|
|
|
277
277
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
278
278
|
*
|
|
279
279
|
* @since 1.18.0
|
|
280
|
-
* @category
|
|
280
|
+
* @category State predicates
|
|
281
281
|
*/
|
|
282
282
|
export declare const isTrue: <E, R>(ref: RefBoolean<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
283
283
|
/**
|
|
@@ -294,7 +294,7 @@ export declare const isTrue: <E, R>(ref: RefBoolean<E, R>) => RefSubject.Compute
|
|
|
294
294
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
295
295
|
*
|
|
296
296
|
* @since 1.18.0
|
|
297
|
-
* @category
|
|
297
|
+
* @category State predicates
|
|
298
298
|
*/
|
|
299
299
|
export declare const isFalse: <E, R>(ref: RefBoolean<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
300
300
|
//# sourceMappingURL=RefBoolean.d.ts.map
|
|
@@ -33,7 +33,7 @@ import * as RefSubject from "./RefSubject.js";
|
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
35
35
|
* @since 1.18.0
|
|
36
|
-
* @category
|
|
36
|
+
* @category Constructors
|
|
37
37
|
*/
|
|
38
38
|
export function make(initial, eq = Equivalence_.strictEqual()) {
|
|
39
39
|
return RefSubject.make(initial, { eq });
|
|
@@ -52,7 +52,7 @@ export function make(initial, eq = Equivalence_.strictEqual()) {
|
|
|
52
52
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
53
53
|
*
|
|
54
54
|
* @since 1.18.0
|
|
55
|
-
* @category
|
|
55
|
+
* @category State updates
|
|
56
56
|
*/
|
|
57
57
|
export const toggle = (ref) => RefSubject.update(ref, Boolean_.not);
|
|
58
58
|
/**
|
|
@@ -69,7 +69,7 @@ export const toggle = (ref) => RefSubject.update(ref, Boolean_.not);
|
|
|
69
69
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
70
70
|
*
|
|
71
71
|
* @since 1.18.0
|
|
72
|
-
* @category
|
|
72
|
+
* @category State updates
|
|
73
73
|
*/
|
|
74
74
|
export const setTrue = (ref) => RefSubject.set(ref, true);
|
|
75
75
|
/**
|
|
@@ -86,7 +86,7 @@ export const setTrue = (ref) => RefSubject.set(ref, true);
|
|
|
86
86
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
87
87
|
*
|
|
88
88
|
* @since 1.18.0
|
|
89
|
-
* @category
|
|
89
|
+
* @category State updates
|
|
90
90
|
*/
|
|
91
91
|
export const setFalse = (ref) => RefSubject.set(ref, false);
|
|
92
92
|
// ========================================
|
|
@@ -106,7 +106,7 @@ export const setFalse = (ref) => RefSubject.set(ref, false);
|
|
|
106
106
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
107
107
|
*
|
|
108
108
|
* @since 1.18.0
|
|
109
|
-
* @category
|
|
109
|
+
* @category Derived queries
|
|
110
110
|
*/
|
|
111
111
|
export const and = dual(2, function and(ref, that) {
|
|
112
112
|
return RefSubject.map(ref, (self) => Boolean_.and(self, that));
|
|
@@ -125,7 +125,7 @@ export const and = dual(2, function and(ref, that) {
|
|
|
125
125
|
* follows later pushes and its observing Scope owns subscription cleanup.
|
|
126
126
|
*
|
|
127
127
|
* @since 1.18.0
|
|
128
|
-
* @category
|
|
128
|
+
* @category Derived queries
|
|
129
129
|
*/
|
|
130
130
|
export const or = dual(2, function or(ref, that) {
|
|
131
131
|
return RefSubject.map(ref, (self) => Boolean_.or(self, that));
|
|
@@ -144,7 +144,7 @@ export const or = dual(2, function or(ref, that) {
|
|
|
144
144
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
145
145
|
*
|
|
146
146
|
* @since 1.18.0
|
|
147
|
-
* @category
|
|
147
|
+
* @category Derived queries
|
|
148
148
|
*/
|
|
149
149
|
export const not = (ref) => RefSubject.map(ref, Boolean_.not);
|
|
150
150
|
/**
|
|
@@ -161,7 +161,7 @@ export const not = (ref) => RefSubject.map(ref, Boolean_.not);
|
|
|
161
161
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
162
162
|
*
|
|
163
163
|
* @since 1.18.0
|
|
164
|
-
* @category
|
|
164
|
+
* @category Derived queries
|
|
165
165
|
*/
|
|
166
166
|
export const xor = dual(2, function xor(ref, that) {
|
|
167
167
|
return RefSubject.map(ref, (self) => Boolean_.xor(self, that));
|
|
@@ -180,7 +180,7 @@ export const xor = dual(2, function xor(ref, that) {
|
|
|
180
180
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
181
181
|
*
|
|
182
182
|
* @since 1.18.0
|
|
183
|
-
* @category
|
|
183
|
+
* @category Derived queries
|
|
184
184
|
*/
|
|
185
185
|
export const nand = dual(2, function nand(ref, that) {
|
|
186
186
|
return RefSubject.map(ref, (self) => Boolean_.nand(self, that));
|
|
@@ -199,7 +199,7 @@ export const nand = dual(2, function nand(ref, that) {
|
|
|
199
199
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
200
200
|
*
|
|
201
201
|
* @since 1.18.0
|
|
202
|
-
* @category
|
|
202
|
+
* @category Derived queries
|
|
203
203
|
*/
|
|
204
204
|
export const nor = dual(2, function nor(ref, that) {
|
|
205
205
|
return RefSubject.map(ref, (self) => Boolean_.nor(self, that));
|
|
@@ -218,7 +218,7 @@ export const nor = dual(2, function nor(ref, that) {
|
|
|
218
218
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
219
219
|
*
|
|
220
220
|
* @since 1.18.0
|
|
221
|
-
* @category
|
|
221
|
+
* @category Derived queries
|
|
222
222
|
*/
|
|
223
223
|
export const eqv = dual(2, function eqv(ref, that) {
|
|
224
224
|
return RefSubject.map(ref, (self) => Boolean_.eqv(self, that));
|
|
@@ -237,7 +237,7 @@ export const eqv = dual(2, function eqv(ref, that) {
|
|
|
237
237
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
238
238
|
*
|
|
239
239
|
* @since 1.18.0
|
|
240
|
-
* @category
|
|
240
|
+
* @category Derived queries
|
|
241
241
|
*/
|
|
242
242
|
export const implies = dual(2, function implies(ref, that) {
|
|
243
243
|
return RefSubject.map(ref, (self) => Boolean_.implies(self, that));
|
|
@@ -256,7 +256,7 @@ export const implies = dual(2, function implies(ref, that) {
|
|
|
256
256
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
257
257
|
*
|
|
258
258
|
* @since 1.18.0
|
|
259
|
-
* @category
|
|
259
|
+
* @category State predicates
|
|
260
260
|
*/
|
|
261
261
|
export const isTrue = (ref) => RefSubject.map(ref, (self) => self === true);
|
|
262
262
|
/**
|
|
@@ -273,6 +273,6 @@ export const isTrue = (ref) => RefSubject.map(ref, (self) => self === true);
|
|
|
273
273
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
274
274
|
*
|
|
275
275
|
* @since 1.18.0
|
|
276
|
-
* @category
|
|
276
|
+
* @category State predicates
|
|
277
277
|
*/
|
|
278
278
|
export const isFalse = (ref) => RefSubject.map(ref, (self) => self === false);
|
|
@@ -22,7 +22,7 @@ import * as RefSubject from "./RefSubject.js";
|
|
|
22
22
|
* interruption, and Scope requirements expressed by its members.
|
|
23
23
|
*
|
|
24
24
|
* @since 1.18.0
|
|
25
|
-
* @category models
|
|
25
|
+
* @category State models
|
|
26
26
|
*/
|
|
27
27
|
export interface RefCause<in out E, in out Err = never, out R = never> extends RefSubject.RefSubject<Cause.Cause<E>, Err, R> {
|
|
28
28
|
}
|
|
@@ -53,7 +53,7 @@ export interface RefCause<in out E, in out Err = never, out R = never> extends R
|
|
|
53
53
|
* ```
|
|
54
54
|
*
|
|
55
55
|
* @since 1.18.0
|
|
56
|
-
* @category
|
|
56
|
+
* @category Constructors
|
|
57
57
|
*/
|
|
58
58
|
export declare function make<E = never, Err = never, R = never>(initial: Cause.Cause<E> | Effect.Effect<Cause.Cause<E>, Err, R> | Fx.Fx<Cause.Cause<E>, Err, R>, eq?: Equivalence<Cause.Cause<E>>): Effect.Effect<RefCause<E, Err>, never, R | Scope.Scope>;
|
|
59
59
|
/**
|
|
@@ -70,7 +70,7 @@ export declare function make<E = never, Err = never, R = never>(initial: Cause.C
|
|
|
70
70
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
71
71
|
*
|
|
72
72
|
* @since 1.18.0
|
|
73
|
-
* @category
|
|
73
|
+
* @category State updates
|
|
74
74
|
*/
|
|
75
75
|
export declare const setFail: {
|
|
76
76
|
<E>(error: E): <Err, R>(ref: RefCause<E, Err, R>) => Effect.Effect<Cause.Cause<E>, Err, R>;
|
|
@@ -90,7 +90,7 @@ export declare const setFail: {
|
|
|
90
90
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
91
91
|
*
|
|
92
92
|
* @since 1.18.0
|
|
93
|
-
* @category
|
|
93
|
+
* @category State updates
|
|
94
94
|
*/
|
|
95
95
|
export declare const setDie: {
|
|
96
96
|
(defect: unknown): <E, Err, R>(ref: RefCause<E, Err, R>) => Effect.Effect<Cause.Cause<E>, Err, R>;
|
|
@@ -110,7 +110,7 @@ export declare const setDie: {
|
|
|
110
110
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
111
111
|
*
|
|
112
112
|
* @since 1.18.0
|
|
113
|
-
* @category
|
|
113
|
+
* @category State updates
|
|
114
114
|
*/
|
|
115
115
|
export declare const setInterrupt: {
|
|
116
116
|
(fiberId?: number): <E, Err, R>(ref: RefCause<E, Err, R>) => Effect.Effect<Cause.Cause<E>, Err, R>;
|
|
@@ -130,7 +130,7 @@ export declare const setInterrupt: {
|
|
|
130
130
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
131
131
|
*
|
|
132
132
|
* @since 1.18.0
|
|
133
|
-
* @category
|
|
133
|
+
* @category State predicates
|
|
134
134
|
*/
|
|
135
135
|
export declare const hasFails: <E, Err, R>(ref: RefCause<E, Err, R>) => RefSubject.Computed<boolean, Err, R>;
|
|
136
136
|
/**
|
|
@@ -147,7 +147,7 @@ export declare const hasFails: <E, Err, R>(ref: RefCause<E, Err, R>) => RefSubje
|
|
|
147
147
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
148
148
|
*
|
|
149
149
|
* @since 1.18.0
|
|
150
|
-
* @category
|
|
150
|
+
* @category State predicates
|
|
151
151
|
*/
|
|
152
152
|
export declare const hasDies: <E, Err, R>(ref: RefCause<E, Err, R>) => RefSubject.Computed<boolean, Err, R>;
|
|
153
153
|
/**
|
|
@@ -164,7 +164,7 @@ export declare const hasDies: <E, Err, R>(ref: RefCause<E, Err, R>) => RefSubjec
|
|
|
164
164
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
165
165
|
*
|
|
166
166
|
* @since 1.18.0
|
|
167
|
-
* @category
|
|
167
|
+
* @category State predicates
|
|
168
168
|
*/
|
|
169
169
|
export declare const hasInterrupts: <E, Err, R>(ref: RefCause<E, Err, R>) => RefSubject.Computed<boolean, Err, R>;
|
|
170
170
|
/**
|
|
@@ -181,7 +181,7 @@ export declare const hasInterrupts: <E, Err, R>(ref: RefCause<E, Err, R>) => Ref
|
|
|
181
181
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
182
182
|
*
|
|
183
183
|
* @since 1.18.0
|
|
184
|
-
* @category
|
|
184
|
+
* @category State predicates
|
|
185
185
|
*/
|
|
186
186
|
export declare const isEmpty: <E, Err, R>(ref: RefCause<E, Err, R>) => RefSubject.Computed<boolean, Err, R>;
|
|
187
187
|
/**
|
|
@@ -198,7 +198,7 @@ export declare const isEmpty: <E, Err, R>(ref: RefCause<E, Err, R>) => RefSubjec
|
|
|
198
198
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
199
199
|
*
|
|
200
200
|
* @since 1.18.0
|
|
201
|
-
* @category
|
|
201
|
+
* @category Derived queries
|
|
202
202
|
*/
|
|
203
203
|
export declare const size: <E, Err, R>(ref: RefCause<E, Err, R>) => RefSubject.Computed<number, Err, R>;
|
|
204
204
|
/**
|
|
@@ -215,7 +215,7 @@ export declare const size: <E, Err, R>(ref: RefCause<E, Err, R>) => RefSubject.C
|
|
|
215
215
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
216
216
|
*
|
|
217
217
|
* @since 1.18.0
|
|
218
|
-
* @category
|
|
218
|
+
* @category Derived queries
|
|
219
219
|
*/
|
|
220
220
|
export declare const reasons: <E, Err, R>(ref: RefCause<E, Err, R>) => RefSubject.Computed<ReadonlyArray<Cause.Reason<E>>, Err, R>;
|
|
221
221
|
//# sourceMappingURL=RefCause.d.ts.map
|
|
@@ -34,7 +34,7 @@ import * as RefSubject from "./RefSubject.js";
|
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* @since 1.18.0
|
|
37
|
-
* @category
|
|
37
|
+
* @category Constructors
|
|
38
38
|
*/
|
|
39
39
|
export function make(initial, eq = equals) {
|
|
40
40
|
return RefSubject.make(initial, { eq: Equivalence_.make(eq) });
|
|
@@ -53,7 +53,7 @@ export function make(initial, eq = equals) {
|
|
|
53
53
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
54
54
|
*
|
|
55
55
|
* @since 1.18.0
|
|
56
|
-
* @category
|
|
56
|
+
* @category State updates
|
|
57
57
|
*/
|
|
58
58
|
export const setFail = dual(2, function setFail(ref, error) {
|
|
59
59
|
return RefSubject.set(ref, Cause.fail(error));
|
|
@@ -72,7 +72,7 @@ export const setFail = dual(2, function setFail(ref, error) {
|
|
|
72
72
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
73
73
|
*
|
|
74
74
|
* @since 1.18.0
|
|
75
|
-
* @category
|
|
75
|
+
* @category State updates
|
|
76
76
|
*/
|
|
77
77
|
export const setDie = dual(2, function setDie(ref, defect) {
|
|
78
78
|
return RefSubject.set(ref, Cause.die(defect));
|
|
@@ -91,7 +91,7 @@ export const setDie = dual(2, function setDie(ref, defect) {
|
|
|
91
91
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
92
92
|
*
|
|
93
93
|
* @since 1.18.0
|
|
94
|
-
* @category
|
|
94
|
+
* @category State updates
|
|
95
95
|
*/
|
|
96
96
|
export const setInterrupt = dual(2, function setInterrupt(ref, fiberId) {
|
|
97
97
|
return RefSubject.set(ref, Cause.interrupt(fiberId));
|
|
@@ -113,7 +113,7 @@ export const setInterrupt = dual(2, function setInterrupt(ref, fiberId) {
|
|
|
113
113
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
114
114
|
*
|
|
115
115
|
* @since 1.18.0
|
|
116
|
-
* @category
|
|
116
|
+
* @category State predicates
|
|
117
117
|
*/
|
|
118
118
|
export const hasFails = (ref) => RefSubject.map(ref, Cause.hasFails);
|
|
119
119
|
/**
|
|
@@ -130,7 +130,7 @@ export const hasFails = (ref) => RefSubject.map(ref, Cause.hasFails);
|
|
|
130
130
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
131
131
|
*
|
|
132
132
|
* @since 1.18.0
|
|
133
|
-
* @category
|
|
133
|
+
* @category State predicates
|
|
134
134
|
*/
|
|
135
135
|
export const hasDies = (ref) => RefSubject.map(ref, Cause.hasDies);
|
|
136
136
|
/**
|
|
@@ -147,7 +147,7 @@ export const hasDies = (ref) => RefSubject.map(ref, Cause.hasDies);
|
|
|
147
147
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
148
148
|
*
|
|
149
149
|
* @since 1.18.0
|
|
150
|
-
* @category
|
|
150
|
+
* @category State predicates
|
|
151
151
|
*/
|
|
152
152
|
export const hasInterrupts = (ref) => RefSubject.map(ref, Cause.hasInterrupts);
|
|
153
153
|
/**
|
|
@@ -164,7 +164,7 @@ export const hasInterrupts = (ref) => RefSubject.map(ref, Cause.hasInterrupts);
|
|
|
164
164
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
165
165
|
*
|
|
166
166
|
* @since 1.18.0
|
|
167
|
-
* @category
|
|
167
|
+
* @category State predicates
|
|
168
168
|
*/
|
|
169
169
|
export const isEmpty = (ref) => RefSubject.map(ref, (self) => self.reasons.length === 0);
|
|
170
170
|
/**
|
|
@@ -181,7 +181,7 @@ export const isEmpty = (ref) => RefSubject.map(ref, (self) => self.reasons.lengt
|
|
|
181
181
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
182
182
|
*
|
|
183
183
|
* @since 1.18.0
|
|
184
|
-
* @category
|
|
184
|
+
* @category Derived queries
|
|
185
185
|
*/
|
|
186
186
|
export const size = (ref) => RefSubject.map(ref, (self) => self.reasons.length);
|
|
187
187
|
/**
|
|
@@ -198,6 +198,6 @@ export const size = (ref) => RefSubject.map(ref, (self) => self.reasons.length);
|
|
|
198
198
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
199
199
|
*
|
|
200
200
|
* @since 1.18.0
|
|
201
|
-
* @category
|
|
201
|
+
* @category Derived queries
|
|
202
202
|
*/
|
|
203
203
|
export const reasons = (ref) => RefSubject.map(ref, (self) => self.reasons);
|