@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
|
@@ -22,7 +22,7 @@ import * as RefSubject from "./RefSubject.js";
|
|
|
22
22
|
* services, 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 RefOption<in out A, in out E = never, out R = never> extends RefSubject.RefSubject<Option.Option<A>, E, R> {
|
|
28
28
|
}
|
|
@@ -53,7 +53,7 @@ export interface RefOption<in out A, in out E = never, out R = never> extends Re
|
|
|
53
53
|
* ```
|
|
54
54
|
*
|
|
55
55
|
* @since 1.18.0
|
|
56
|
-
* @category
|
|
56
|
+
* @category Constructors
|
|
57
57
|
*/
|
|
58
58
|
export declare function make<A, E = never, R = never>(initial: Option.Option<A> | Effect.Effect<Option.Option<A>, E, R> | Fx.Fx<Option.Option<A>, E, R>, eq?: Equivalence<A>): Effect.Effect<RefOption<A, E>, never, R | Scope.Scope>;
|
|
59
59
|
/**
|
|
@@ -70,7 +70,7 @@ export declare function make<A, E = never, R = never>(initial: Option.Option<A>
|
|
|
70
70
|
* value. 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 setSome: {
|
|
76
76
|
<A>(value: A): <E, R>(ref: RefOption<A, E, R>) => Effect.Effect<Option.Option<A>, E, R>;
|
|
@@ -90,7 +90,7 @@ export declare const setSome: {
|
|
|
90
90
|
* value. 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 setNone: <A, E, R>(ref: RefOption<A, E, R>) => Effect.Effect<Option.Option<A>, E, R>;
|
|
96
96
|
/**
|
|
@@ -107,7 +107,7 @@ export declare const setNone: <A, E, R>(ref: RefOption<A, E, R>) => Effect.Effec
|
|
|
107
107
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
108
108
|
*
|
|
109
109
|
* @since 1.18.0
|
|
110
|
-
* @category
|
|
110
|
+
* @category Derived queries
|
|
111
111
|
*/
|
|
112
112
|
export declare const map: {
|
|
113
113
|
<A, B>(f: (a: A) => B): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<Option.Option<B>, E, R>;
|
|
@@ -127,7 +127,7 @@ export declare const map: {
|
|
|
127
127
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
128
128
|
*
|
|
129
129
|
* @since 1.18.0
|
|
130
|
-
* @category
|
|
130
|
+
* @category Derived queries
|
|
131
131
|
*/
|
|
132
132
|
export declare const flatMap: {
|
|
133
133
|
<A, B>(f: (a: A) => Option.Option<B>): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<Option.Option<B>, E, R>;
|
|
@@ -147,7 +147,7 @@ export declare const flatMap: {
|
|
|
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 Derived queries
|
|
151
151
|
*/
|
|
152
152
|
export declare const filter: {
|
|
153
153
|
<A>(predicate: (a: A) => boolean): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<Option.Option<A>, E, R>;
|
|
@@ -167,7 +167,7 @@ export declare const filter: {
|
|
|
167
167
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
168
168
|
*
|
|
169
169
|
* @since 1.18.0
|
|
170
|
-
* @category
|
|
170
|
+
* @category Derived queries
|
|
171
171
|
*/
|
|
172
172
|
export declare const getOrElse: {
|
|
173
173
|
<A>(fallback: () => A): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<A, E, R>;
|
|
@@ -187,7 +187,7 @@ export declare const getOrElse: {
|
|
|
187
187
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
188
188
|
*
|
|
189
189
|
* @since 1.18.0
|
|
190
|
-
* @category
|
|
190
|
+
* @category State predicates
|
|
191
191
|
*/
|
|
192
192
|
export declare const isSome: <A, E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
193
193
|
/**
|
|
@@ -204,7 +204,7 @@ export declare const isSome: <A, E, R>(ref: RefOption<A, E, R>) => RefSubject.Co
|
|
|
204
204
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
205
205
|
*
|
|
206
206
|
* @since 1.18.0
|
|
207
|
-
* @category
|
|
207
|
+
* @category State predicates
|
|
208
208
|
*/
|
|
209
209
|
export declare const isNone: <A, E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
210
210
|
/**
|
|
@@ -221,7 +221,7 @@ export declare const isNone: <A, E, R>(ref: RefOption<A, E, R>) => RefSubject.Co
|
|
|
221
221
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
222
222
|
*
|
|
223
223
|
* @since 1.18.0
|
|
224
|
-
* @category
|
|
224
|
+
* @category State predicates
|
|
225
225
|
*/
|
|
226
226
|
export declare const contains: {
|
|
227
227
|
<A>(value: A): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -241,7 +241,7 @@ export declare const contains: {
|
|
|
241
241
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
242
242
|
*
|
|
243
243
|
* @since 1.18.0
|
|
244
|
-
* @category
|
|
244
|
+
* @category State predicates
|
|
245
245
|
*/
|
|
246
246
|
export declare const exists: {
|
|
247
247
|
<A>(predicate: (a: A) => boolean): <E, R>(ref: RefOption<A, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -261,7 +261,7 @@ export declare const exists: {
|
|
|
261
261
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
262
262
|
*
|
|
263
263
|
* @since 1.18.0
|
|
264
|
-
* @category
|
|
264
|
+
* @category Optional queries
|
|
265
265
|
*/
|
|
266
266
|
export declare const getValue: <A, E, R>(ref: RefOption<A, E, R>) => RefSubject.Filtered<A, E, R>;
|
|
267
267
|
//# sourceMappingURL=RefOption.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: Option.makeEquivalence(eq) });
|
|
@@ -52,7 +52,7 @@ export function make(initial, eq = Equivalence_.strictEqual()) {
|
|
|
52
52
|
* value. 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 setSome = dual(2, function setSome(ref, value) {
|
|
58
58
|
return RefSubject.set(ref, Option.some(value));
|
|
@@ -71,7 +71,7 @@ export const setSome = dual(2, function setSome(ref, value) {
|
|
|
71
71
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
72
72
|
*
|
|
73
73
|
* @since 1.18.0
|
|
74
|
-
* @category
|
|
74
|
+
* @category State updates
|
|
75
75
|
*/
|
|
76
76
|
export const setNone = (ref) => RefSubject.set(ref, Option.none());
|
|
77
77
|
// ========================================
|
|
@@ -91,7 +91,7 @@ export const setNone = (ref) => RefSubject.set(ref, Option.none());
|
|
|
91
91
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
92
92
|
*
|
|
93
93
|
* @since 1.18.0
|
|
94
|
-
* @category
|
|
94
|
+
* @category Derived queries
|
|
95
95
|
*/
|
|
96
96
|
export const map = dual(2, function map(ref, f) {
|
|
97
97
|
return RefSubject.map(ref, (self) => Option.map(self, f));
|
|
@@ -110,7 +110,7 @@ export const map = dual(2, function map(ref, f) {
|
|
|
110
110
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
111
111
|
*
|
|
112
112
|
* @since 1.18.0
|
|
113
|
-
* @category
|
|
113
|
+
* @category Derived queries
|
|
114
114
|
*/
|
|
115
115
|
export const flatMap = dual(2, function flatMap(ref, f) {
|
|
116
116
|
return RefSubject.map(ref, (self) => Option.flatMap(self, f));
|
|
@@ -129,7 +129,7 @@ export const flatMap = dual(2, function flatMap(ref, f) {
|
|
|
129
129
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
130
130
|
*
|
|
131
131
|
* @since 1.18.0
|
|
132
|
-
* @category
|
|
132
|
+
* @category Derived queries
|
|
133
133
|
*/
|
|
134
134
|
export const filter = dual(2, function filter(ref, predicate) {
|
|
135
135
|
return RefSubject.map(ref, (self) => Option.filter(self, predicate));
|
|
@@ -148,7 +148,7 @@ export const filter = dual(2, function filter(ref, predicate) {
|
|
|
148
148
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
149
149
|
*
|
|
150
150
|
* @since 1.18.0
|
|
151
|
-
* @category
|
|
151
|
+
* @category Derived queries
|
|
152
152
|
*/
|
|
153
153
|
export const getOrElse = dual(2, function getOrElse(ref, fallback) {
|
|
154
154
|
return RefSubject.map(ref, (self) => Option.getOrElse(self, fallback));
|
|
@@ -167,7 +167,7 @@ export const getOrElse = dual(2, function getOrElse(ref, fallback) {
|
|
|
167
167
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
168
168
|
*
|
|
169
169
|
* @since 1.18.0
|
|
170
|
-
* @category
|
|
170
|
+
* @category State predicates
|
|
171
171
|
*/
|
|
172
172
|
export const isSome = (ref) => RefSubject.map(ref, Option.isSome);
|
|
173
173
|
/**
|
|
@@ -184,7 +184,7 @@ export const isSome = (ref) => RefSubject.map(ref, Option.isSome);
|
|
|
184
184
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
185
185
|
*
|
|
186
186
|
* @since 1.18.0
|
|
187
|
-
* @category
|
|
187
|
+
* @category State predicates
|
|
188
188
|
*/
|
|
189
189
|
export const isNone = (ref) => RefSubject.map(ref, Option.isNone);
|
|
190
190
|
/**
|
|
@@ -201,7 +201,7 @@ export const isNone = (ref) => RefSubject.map(ref, Option.isNone);
|
|
|
201
201
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
202
202
|
*
|
|
203
203
|
* @since 1.18.0
|
|
204
|
-
* @category
|
|
204
|
+
* @category State predicates
|
|
205
205
|
*/
|
|
206
206
|
export const contains = dual(2, function contains(ref, value) {
|
|
207
207
|
return RefSubject.map(ref, (self) => Option.contains(self, value));
|
|
@@ -220,7 +220,7 @@ export const contains = dual(2, function contains(ref, value) {
|
|
|
220
220
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
221
221
|
*
|
|
222
222
|
* @since 1.18.0
|
|
223
|
-
* @category
|
|
223
|
+
* @category State predicates
|
|
224
224
|
*/
|
|
225
225
|
export const exists = dual(2, function exists(ref, predicate) {
|
|
226
226
|
return RefSubject.map(ref, (self) => Option.exists(self, predicate));
|
|
@@ -242,6 +242,6 @@ export const exists = dual(2, function exists(ref, predicate) {
|
|
|
242
242
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
243
243
|
*
|
|
244
244
|
* @since 1.18.0
|
|
245
|
-
* @category
|
|
245
|
+
* @category Optional queries
|
|
246
246
|
*/
|
|
247
247
|
export const getValue = (ref) => RefSubject.compact(ref);
|
|
@@ -22,7 +22,7 @@ import * as RefSubject from "./RefSubject.js";
|
|
|
22
22
|
* services, 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 RefRecord<in out K extends string, in out V, in out E = never, out R = never> extends RefSubject.RefSubject<Record.ReadonlyRecord<K, V>, E, R> {
|
|
28
28
|
}
|
|
@@ -40,7 +40,7 @@ export interface RefRecord<in out K extends string, in out V, in out E = never,
|
|
|
40
40
|
* and cleanup; source failures and services stay on reads and pushes.
|
|
41
41
|
*
|
|
42
42
|
* @since 1.18.0
|
|
43
|
-
* @category
|
|
43
|
+
* @category Constructors
|
|
44
44
|
*/
|
|
45
45
|
export declare function make<K extends string, V, E = never, R = never>(initial: Record.ReadonlyRecord<K, V> | Effect.Effect<Record.ReadonlyRecord<K, V>, E, R> | Fx.Fx<Record.ReadonlyRecord<K, V>, E, R>): Effect.Effect<RefRecord<K, V, E>, never, R | Scope.Scope>;
|
|
46
46
|
/**
|
|
@@ -57,7 +57,7 @@ export declare function make<K extends string, V, E = never, R = never>(initial:
|
|
|
57
57
|
* acquires no resource; failures and services remain those of the source ref.
|
|
58
58
|
*
|
|
59
59
|
* @since 1.18.0
|
|
60
|
-
* @category
|
|
60
|
+
* @category State updates
|
|
61
61
|
*/
|
|
62
62
|
export declare const set: {
|
|
63
63
|
<K extends string, V>(key: K, value: V): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;
|
|
@@ -77,7 +77,7 @@ export declare const set: {
|
|
|
77
77
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
78
78
|
*
|
|
79
79
|
* @since 1.18.0
|
|
80
|
-
* @category
|
|
80
|
+
* @category State updates
|
|
81
81
|
*/
|
|
82
82
|
export declare const remove: {
|
|
83
83
|
<K extends string>(key: K): <V, E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;
|
|
@@ -97,7 +97,7 @@ export declare const remove: {
|
|
|
97
97
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
98
98
|
*
|
|
99
99
|
* @since 1.18.0
|
|
100
|
-
* @category
|
|
100
|
+
* @category State updates
|
|
101
101
|
*/
|
|
102
102
|
export declare const modify: {
|
|
103
103
|
<K extends string, V>(key: K, f: (v: V) => V): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;
|
|
@@ -117,7 +117,7 @@ export declare const modify: {
|
|
|
117
117
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
118
118
|
*
|
|
119
119
|
* @since 1.18.0
|
|
120
|
-
* @category
|
|
120
|
+
* @category State updates
|
|
121
121
|
*/
|
|
122
122
|
export declare const replace: {
|
|
123
123
|
<K extends string, V>(key: K, value: V): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;
|
|
@@ -137,7 +137,7 @@ export declare const replace: {
|
|
|
137
137
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
138
138
|
*
|
|
139
139
|
* @since 1.18.0
|
|
140
|
-
* @category
|
|
140
|
+
* @category State updates
|
|
141
141
|
*/
|
|
142
142
|
export declare const clear: <K extends string, V, E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;
|
|
143
143
|
/**
|
|
@@ -154,7 +154,7 @@ export declare const clear: <K extends string, V, E, R>(ref: RefRecord<K, V, E,
|
|
|
154
154
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
155
155
|
*
|
|
156
156
|
* @since 1.18.0
|
|
157
|
-
* @category
|
|
157
|
+
* @category State updates
|
|
158
158
|
*/
|
|
159
159
|
export declare const union: {
|
|
160
160
|
<K extends string, V>(that: Record.ReadonlyRecord<K, V>, combine?: (selfValue: V, thatValue: V) => V): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;
|
|
@@ -174,7 +174,7 @@ export declare const union: {
|
|
|
174
174
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
175
175
|
*
|
|
176
176
|
* @since 1.18.0
|
|
177
|
-
* @category
|
|
177
|
+
* @category State updates
|
|
178
178
|
*/
|
|
179
179
|
export declare const intersection: {
|
|
180
180
|
<K extends string, V>(that: Record.ReadonlyRecord<K, V>, combine?: (selfValue: V, thatValue: V) => V): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;
|
|
@@ -194,7 +194,7 @@ export declare const intersection: {
|
|
|
194
194
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
195
195
|
*
|
|
196
196
|
* @since 1.18.0
|
|
197
|
-
* @category
|
|
197
|
+
* @category State updates
|
|
198
198
|
*/
|
|
199
199
|
export declare const difference: {
|
|
200
200
|
<K extends string, V>(that: Record.ReadonlyRecord<K, V>): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;
|
|
@@ -213,7 +213,7 @@ export declare const difference: {
|
|
|
213
213
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
214
214
|
* acquires no resource. It returns the committed Record and retains the ref's E and R channels.
|
|
215
215
|
* @since 1.18.0
|
|
216
|
-
* @category
|
|
216
|
+
* @category State updates
|
|
217
217
|
*/
|
|
218
218
|
export declare const filter: {
|
|
219
219
|
<K extends string, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;
|
|
@@ -232,7 +232,7 @@ export declare const filter: {
|
|
|
232
232
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
233
233
|
* acquires no resource. It returns the committed Record and retains the ref's E and R channels.
|
|
234
234
|
* @since 1.18.0
|
|
235
|
-
* @category
|
|
235
|
+
* @category State updates
|
|
236
236
|
*/
|
|
237
237
|
export declare const map: {
|
|
238
238
|
<K extends string, V>(f: (value: V, key: K) => V): <E, R>(ref: RefRecord<K, V, E, R>) => Effect.Effect<Record.ReadonlyRecord<K, V>, E, R>;
|
|
@@ -252,7 +252,7 @@ export declare const map: {
|
|
|
252
252
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
253
253
|
*
|
|
254
254
|
* @since 1.18.0
|
|
255
|
-
* @category
|
|
255
|
+
* @category Derived queries
|
|
256
256
|
*/
|
|
257
257
|
export declare const size: <K extends string, V, E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<number, E, R>;
|
|
258
258
|
/**
|
|
@@ -269,7 +269,7 @@ export declare const size: <K extends string, V, E, R>(ref: RefRecord<K, V, E, R
|
|
|
269
269
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
270
270
|
*
|
|
271
271
|
* @since 1.18.0
|
|
272
|
-
* @category
|
|
272
|
+
* @category State predicates
|
|
273
273
|
*/
|
|
274
274
|
export declare const isEmpty: <K extends string, V, E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
275
275
|
/**
|
|
@@ -286,7 +286,7 @@ export declare const isEmpty: <K extends string, V, E, R>(ref: RefRecord<K, V, E
|
|
|
286
286
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
287
287
|
*
|
|
288
288
|
* @since 1.18.0
|
|
289
|
-
* @category
|
|
289
|
+
* @category State predicates
|
|
290
290
|
*/
|
|
291
291
|
export declare const isNonEmpty: <K extends string, V, E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
292
292
|
/**
|
|
@@ -303,7 +303,7 @@ export declare const isNonEmpty: <K extends string, V, E, R>(ref: RefRecord<K, V
|
|
|
303
303
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
304
304
|
*
|
|
305
305
|
* @since 1.18.0
|
|
306
|
-
* @category
|
|
306
|
+
* @category State predicates
|
|
307
307
|
*/
|
|
308
308
|
export declare const has: {
|
|
309
309
|
<K extends string>(key: K): <V, E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -323,7 +323,7 @@ export declare const has: {
|
|
|
323
323
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
324
324
|
*
|
|
325
325
|
* @since 1.18.0
|
|
326
|
-
* @category
|
|
326
|
+
* @category Derived queries
|
|
327
327
|
*/
|
|
328
328
|
export declare const keys: <K extends string, V, E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<Array<K>, E, R>;
|
|
329
329
|
/**
|
|
@@ -340,7 +340,7 @@ export declare const keys: <K extends string, V, E, R>(ref: RefRecord<K, V, E, R
|
|
|
340
340
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
341
341
|
*
|
|
342
342
|
* @since 1.18.0
|
|
343
|
-
* @category
|
|
343
|
+
* @category Derived queries
|
|
344
344
|
*/
|
|
345
345
|
export declare const values: <K extends string, V, E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<Array<V>, E, R>;
|
|
346
346
|
/**
|
|
@@ -357,7 +357,7 @@ export declare const values: <K extends string, V, E, R>(ref: RefRecord<K, V, E,
|
|
|
357
357
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
358
358
|
*
|
|
359
359
|
* @since 1.18.0
|
|
360
|
-
* @category
|
|
360
|
+
* @category Derived queries
|
|
361
361
|
*/
|
|
362
362
|
export declare const entries: <K extends string, V, E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<Array<[K, V]>, E, R>;
|
|
363
363
|
/**
|
|
@@ -374,7 +374,7 @@ export declare const entries: <K extends string, V, E, R>(ref: RefRecord<K, V, E
|
|
|
374
374
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
375
375
|
*
|
|
376
376
|
* @since 1.18.0
|
|
377
|
-
* @category
|
|
377
|
+
* @category Derived queries
|
|
378
378
|
*/
|
|
379
379
|
export declare const mapValues: {
|
|
380
380
|
<K extends string, V, B>(f: (value: V, key: K) => B): <E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<Record.ReadonlyRecord<K, B>, E, R>;
|
|
@@ -394,7 +394,7 @@ export declare const mapValues: {
|
|
|
394
394
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
395
395
|
*
|
|
396
396
|
* @since 1.18.0
|
|
397
|
-
* @category
|
|
397
|
+
* @category Derived queries
|
|
398
398
|
*/
|
|
399
399
|
export declare const mapKeys: {
|
|
400
400
|
<K extends string, K2 extends string>(f: (key: K) => K2): <V, E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<Record.ReadonlyRecord<K2, V>, E, R>;
|
|
@@ -414,7 +414,7 @@ export declare const mapKeys: {
|
|
|
414
414
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
415
415
|
*
|
|
416
416
|
* @since 1.18.0
|
|
417
|
-
* @category
|
|
417
|
+
* @category Derived queries
|
|
418
418
|
*/
|
|
419
419
|
export declare const mapEntries: {
|
|
420
420
|
<K extends string, V, K2 extends string, B>(f: (value: V, key: K) => [K2, B]): <E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<Record.ReadonlyRecord<K2, B>, E, R>;
|
|
@@ -434,7 +434,7 @@ export declare const mapEntries: {
|
|
|
434
434
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
435
435
|
*
|
|
436
436
|
* @since 1.18.0
|
|
437
|
-
* @category
|
|
437
|
+
* @category Derived queries
|
|
438
438
|
*/
|
|
439
439
|
export declare const filterValues: {
|
|
440
440
|
<K extends string, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<Record.ReadonlyRecord<K, V>, E, R>;
|
|
@@ -454,7 +454,7 @@ export declare const filterValues: {
|
|
|
454
454
|
* Fx observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
455
455
|
*
|
|
456
456
|
* @since 1.18.0
|
|
457
|
-
* @category
|
|
457
|
+
* @category Derived queries
|
|
458
458
|
*/
|
|
459
459
|
export declare const filterMapValues: {
|
|
460
460
|
<K extends string, V, B>(f: (value: V, key: K) => Option.Option<B>): <E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<Record.ReadonlyRecord<K, B>, E, R>;
|
|
@@ -473,7 +473,7 @@ export declare const filterMapValues: {
|
|
|
473
473
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
474
474
|
*
|
|
475
475
|
* @since 1.18.0
|
|
476
|
-
* @category
|
|
476
|
+
* @category Derived queries
|
|
477
477
|
*/
|
|
478
478
|
export declare const partition: {
|
|
479
479
|
<K extends string, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<[Record.ReadonlyRecord<K, V>, Record.ReadonlyRecord<K, V>], E, R>;
|
|
@@ -493,7 +493,7 @@ export declare const partition: {
|
|
|
493
493
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
494
494
|
*
|
|
495
495
|
* @since 1.18.0
|
|
496
|
-
* @category
|
|
496
|
+
* @category State predicates
|
|
497
497
|
*/
|
|
498
498
|
export declare const some: {
|
|
499
499
|
<K extends string, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -513,7 +513,7 @@ export declare const some: {
|
|
|
513
513
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
514
514
|
*
|
|
515
515
|
* @since 1.18.0
|
|
516
|
-
* @category
|
|
516
|
+
* @category State predicates
|
|
517
517
|
*/
|
|
518
518
|
export declare const every: {
|
|
519
519
|
<K extends string, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -533,7 +533,7 @@ export declare const every: {
|
|
|
533
533
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
534
534
|
*
|
|
535
535
|
* @since 1.18.0
|
|
536
|
-
* @category
|
|
536
|
+
* @category Derived queries
|
|
537
537
|
*/
|
|
538
538
|
export declare const reduce: {
|
|
539
539
|
<K extends string, V, B>(b: B, f: (b: B, value: V, key: K) => B): <E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Computed<B, E, R>;
|
|
@@ -553,7 +553,7 @@ export declare const reduce: {
|
|
|
553
553
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
554
554
|
*
|
|
555
555
|
* @since 1.18.0
|
|
556
|
-
* @category
|
|
556
|
+
* @category Optional queries
|
|
557
557
|
*/
|
|
558
558
|
export declare const get: {
|
|
559
559
|
<K extends string>(key: K): <V, E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Filtered<V, E, R>;
|
|
@@ -573,7 +573,7 @@ export declare const get: {
|
|
|
573
573
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
574
574
|
*
|
|
575
575
|
* @since 1.18.0
|
|
576
|
-
* @category
|
|
576
|
+
* @category Optional queries
|
|
577
577
|
*/
|
|
578
578
|
export declare const findFirst: {
|
|
579
579
|
<K extends string, V>(predicate: (value: V, key: K) => boolean): <E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Filtered<[K, V], E, R>;
|
|
@@ -593,7 +593,7 @@ export declare const findFirst: {
|
|
|
593
593
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
594
594
|
*
|
|
595
595
|
* @since 1.18.0
|
|
596
|
-
* @category
|
|
596
|
+
* @category Optional queries
|
|
597
597
|
*/
|
|
598
598
|
export declare const pop: {
|
|
599
599
|
<K extends string>(key: K): <V, E, R>(ref: RefRecord<K, V, E, R>) => RefSubject.Filtered<[V, Record.ReadonlyRecord<K, V>], E, R>;
|