@typed/fx 2.0.0-beta.5 → 2.0.0-beta.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.
- 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 +2 -1
|
@@ -22,7 +22,7 @@ import * as RefSubject from "./RefSubject.js";
|
|
|
22
22
|
* and cleanup; source failures and services stay on reads and pushes.
|
|
23
23
|
*
|
|
24
24
|
* @since 1.18.0
|
|
25
|
-
* @category
|
|
25
|
+
* @category Constructors
|
|
26
26
|
*/
|
|
27
27
|
export function make(initial) {
|
|
28
28
|
return RefSubject.make(initial, { eq: equals });
|
|
@@ -44,7 +44,7 @@ export function make(initial) {
|
|
|
44
44
|
* acquires no resource; failures and services remain those of the source ref.
|
|
45
45
|
*
|
|
46
46
|
* @since 1.18.0
|
|
47
|
-
* @category
|
|
47
|
+
* @category State updates
|
|
48
48
|
*/
|
|
49
49
|
export const set = dual(3, function set(ref, key, value) {
|
|
50
50
|
return RefSubject.update(ref, Record.set(key, value));
|
|
@@ -63,7 +63,7 @@ export const set = dual(3, function set(ref, key, value) {
|
|
|
63
63
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
64
64
|
*
|
|
65
65
|
* @since 1.18.0
|
|
66
|
-
* @category
|
|
66
|
+
* @category State updates
|
|
67
67
|
*/
|
|
68
68
|
export const remove = dual(2, function remove(ref, key) {
|
|
69
69
|
return RefSubject.update(ref, (r) => Record.remove(r, key));
|
|
@@ -82,7 +82,7 @@ export const remove = dual(2, function remove(ref, key) {
|
|
|
82
82
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
83
83
|
*
|
|
84
84
|
* @since 1.18.0
|
|
85
|
-
* @category
|
|
85
|
+
* @category State updates
|
|
86
86
|
*/
|
|
87
87
|
export const modify = dual(3, function modify(ref, key, f) {
|
|
88
88
|
return RefSubject.update(ref, (r) => Option.getOrElse(Record.modify(r, key, f), () => r));
|
|
@@ -101,7 +101,7 @@ export const modify = dual(3, function modify(ref, key, f) {
|
|
|
101
101
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
102
102
|
*
|
|
103
103
|
* @since 1.18.0
|
|
104
|
-
* @category
|
|
104
|
+
* @category State updates
|
|
105
105
|
*/
|
|
106
106
|
export const replace = dual(3, function replace(ref, key, value) {
|
|
107
107
|
return RefSubject.update(ref, (r) => Option.getOrElse(Record.replace(r, key, value), () => r));
|
|
@@ -120,7 +120,7 @@ export const replace = dual(3, function replace(ref, key, value) {
|
|
|
120
120
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
121
121
|
*
|
|
122
122
|
* @since 1.18.0
|
|
123
|
-
* @category
|
|
123
|
+
* @category State updates
|
|
124
124
|
*/
|
|
125
125
|
export const clear = (ref) => RefSubject.update(ref, () => Record.empty());
|
|
126
126
|
/**
|
|
@@ -137,7 +137,7 @@ export const clear = (ref) => RefSubject.update(ref, () => Record.empty());
|
|
|
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 const union = dual((args) => RefSubject.isRefSubject(args[0]), function union(ref, that, combine) {
|
|
143
143
|
return RefSubject.update(ref, (r) => Record.union(r, that, combine ?? ((_, b) => b)));
|
|
@@ -156,7 +156,7 @@ export const union = dual((args) => RefSubject.isRefSubject(args[0]), function u
|
|
|
156
156
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
157
157
|
*
|
|
158
158
|
* @since 1.18.0
|
|
159
|
-
* @category
|
|
159
|
+
* @category State updates
|
|
160
160
|
*/
|
|
161
161
|
export const intersection = dual((args) => RefSubject.isRefSubject(args[0]), function intersection(ref, that, combine) {
|
|
162
162
|
return RefSubject.update(ref, (r) => Record.intersection(r, that, combine ?? ((_, b) => b)));
|
|
@@ -175,7 +175,7 @@ export const intersection = dual((args) => RefSubject.isRefSubject(args[0]), fun
|
|
|
175
175
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
176
176
|
*
|
|
177
177
|
* @since 1.18.0
|
|
178
|
-
* @category
|
|
178
|
+
* @category State updates
|
|
179
179
|
*/
|
|
180
180
|
export const difference = dual(2, function difference(ref, that) {
|
|
181
181
|
return RefSubject.update(ref, (r) => Record.difference(r, that));
|
|
@@ -193,7 +193,7 @@ export const difference = dual(2, function difference(ref, that) {
|
|
|
193
193
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
194
194
|
* acquires no resource. It returns the committed Record and retains the ref's E and R channels.
|
|
195
195
|
* @since 1.18.0
|
|
196
|
-
* @category
|
|
196
|
+
* @category State updates
|
|
197
197
|
*/
|
|
198
198
|
export const filter = dual(2, function filter(ref, predicate) {
|
|
199
199
|
return RefSubject.update(ref, (r) => Record.filter(r, predicate));
|
|
@@ -211,7 +211,7 @@ export const filter = dual(2, function filter(ref, predicate) {
|
|
|
211
211
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
212
212
|
* acquires no resource. It returns the committed Record and retains the ref's E and R channels.
|
|
213
213
|
* @since 1.18.0
|
|
214
|
-
* @category
|
|
214
|
+
* @category State updates
|
|
215
215
|
*/
|
|
216
216
|
export const map = dual(2, function map(ref, f) {
|
|
217
217
|
return RefSubject.update(ref, (r) => Record.map(r, f));
|
|
@@ -233,7 +233,7 @@ export const map = dual(2, function map(ref, f) {
|
|
|
233
233
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
234
234
|
*
|
|
235
235
|
* @since 1.18.0
|
|
236
|
-
* @category
|
|
236
|
+
* @category Derived queries
|
|
237
237
|
*/
|
|
238
238
|
export const size = (ref) => RefSubject.map(ref, Record.size);
|
|
239
239
|
/**
|
|
@@ -250,7 +250,7 @@ export const size = (ref) => RefSubject.map(ref, Record.size);
|
|
|
250
250
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
251
251
|
*
|
|
252
252
|
* @since 1.18.0
|
|
253
|
-
* @category
|
|
253
|
+
* @category State predicates
|
|
254
254
|
*/
|
|
255
255
|
export const isEmpty = (ref) => RefSubject.map(ref, Record.isEmptyRecord);
|
|
256
256
|
/**
|
|
@@ -267,7 +267,7 @@ export const isEmpty = (ref) => RefSubject.map(ref, Record.isEmptyRecord);
|
|
|
267
267
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
268
268
|
*
|
|
269
269
|
* @since 1.18.0
|
|
270
|
-
* @category
|
|
270
|
+
* @category State predicates
|
|
271
271
|
*/
|
|
272
272
|
export const isNonEmpty = (ref) => RefSubject.map(ref, (r) => !Record.isEmptyRecord(r));
|
|
273
273
|
/**
|
|
@@ -284,7 +284,7 @@ export const isNonEmpty = (ref) => RefSubject.map(ref, (r) => !Record.isEmptyRec
|
|
|
284
284
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
285
285
|
*
|
|
286
286
|
* @since 1.18.0
|
|
287
|
-
* @category
|
|
287
|
+
* @category State predicates
|
|
288
288
|
*/
|
|
289
289
|
export const has = dual(2, function has(ref, key) {
|
|
290
290
|
return RefSubject.map(ref, Record.has(key));
|
|
@@ -303,7 +303,7 @@ export const has = dual(2, function has(ref, key) {
|
|
|
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 Derived queries
|
|
307
307
|
*/
|
|
308
308
|
export const keys = (ref) => RefSubject.map(ref, Record.keys);
|
|
309
309
|
/**
|
|
@@ -320,7 +320,7 @@ export const keys = (ref) => RefSubject.map(ref, Record.keys);
|
|
|
320
320
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
321
321
|
*
|
|
322
322
|
* @since 1.18.0
|
|
323
|
-
* @category
|
|
323
|
+
* @category Derived queries
|
|
324
324
|
*/
|
|
325
325
|
export const values = (ref) => RefSubject.map(ref, Record.values);
|
|
326
326
|
/**
|
|
@@ -337,7 +337,7 @@ export const values = (ref) => RefSubject.map(ref, Record.values);
|
|
|
337
337
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
338
338
|
*
|
|
339
339
|
* @since 1.18.0
|
|
340
|
-
* @category
|
|
340
|
+
* @category Derived queries
|
|
341
341
|
*/
|
|
342
342
|
export const entries = (ref) => RefSubject.map(ref, Record.toEntries);
|
|
343
343
|
/**
|
|
@@ -354,7 +354,7 @@ export const entries = (ref) => RefSubject.map(ref, Record.toEntries);
|
|
|
354
354
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
355
355
|
*
|
|
356
356
|
* @since 1.18.0
|
|
357
|
-
* @category
|
|
357
|
+
* @category Derived queries
|
|
358
358
|
*/
|
|
359
359
|
export const mapValues = dual(2, function mapValues(ref, f) {
|
|
360
360
|
return RefSubject.map(ref, (r) => Record.map(r, f));
|
|
@@ -373,7 +373,7 @@ export const mapValues = dual(2, function mapValues(ref, f) {
|
|
|
373
373
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
374
374
|
*
|
|
375
375
|
* @since 1.18.0
|
|
376
|
-
* @category
|
|
376
|
+
* @category Derived queries
|
|
377
377
|
*/
|
|
378
378
|
export const mapKeys = dual(2, function mapKeys(ref, f) {
|
|
379
379
|
return RefSubject.map(ref, (r) => Record.mapKeys(r, f));
|
|
@@ -392,7 +392,7 @@ export const mapKeys = dual(2, function mapKeys(ref, f) {
|
|
|
392
392
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
393
393
|
*
|
|
394
394
|
* @since 1.18.0
|
|
395
|
-
* @category
|
|
395
|
+
* @category Derived queries
|
|
396
396
|
*/
|
|
397
397
|
export const mapEntries = dual(2, function mapEntries(ref, f) {
|
|
398
398
|
return RefSubject.map(ref, (r) => Record.mapEntries(r, f));
|
|
@@ -411,7 +411,7 @@ export const mapEntries = dual(2, function mapEntries(ref, f) {
|
|
|
411
411
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
412
412
|
*
|
|
413
413
|
* @since 1.18.0
|
|
414
|
-
* @category
|
|
414
|
+
* @category Derived queries
|
|
415
415
|
*/
|
|
416
416
|
export const filterValues = dual(2, function filterValues(ref, predicate) {
|
|
417
417
|
return RefSubject.map(ref, (r) => Record.filter(r, predicate));
|
|
@@ -430,7 +430,7 @@ export const filterValues = dual(2, function filterValues(ref, predicate) {
|
|
|
430
430
|
* Fx observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
431
431
|
*
|
|
432
432
|
* @since 1.18.0
|
|
433
|
-
* @category
|
|
433
|
+
* @category Derived queries
|
|
434
434
|
*/
|
|
435
435
|
export const filterMapValues = dual(2, function filterMapValues(ref, f) {
|
|
436
436
|
return RefSubject.map(ref, (r) => Record.filterMap(r, (value, key) => f(value, key) ? Result.succeed(value) : Result.fail(value)));
|
|
@@ -448,7 +448,7 @@ export const filterMapValues = dual(2, function filterMapValues(ref, f) {
|
|
|
448
448
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
449
449
|
*
|
|
450
450
|
* @since 1.18.0
|
|
451
|
-
* @category
|
|
451
|
+
* @category Derived queries
|
|
452
452
|
*/
|
|
453
453
|
export const partition = dual(2, function partition(ref, predicate) {
|
|
454
454
|
return RefSubject.map(ref, (r) => Record.partition(r, (value, key) => predicate(value, key) ? Result.succeed(value) : Result.fail(value)));
|
|
@@ -467,7 +467,7 @@ export const partition = dual(2, function partition(ref, predicate) {
|
|
|
467
467
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
468
468
|
*
|
|
469
469
|
* @since 1.18.0
|
|
470
|
-
* @category
|
|
470
|
+
* @category State predicates
|
|
471
471
|
*/
|
|
472
472
|
export const some = dual(2, function some(ref, predicate) {
|
|
473
473
|
return RefSubject.map(ref, Record.some(predicate));
|
|
@@ -486,7 +486,7 @@ export const some = dual(2, function some(ref, predicate) {
|
|
|
486
486
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
487
487
|
*
|
|
488
488
|
* @since 1.18.0
|
|
489
|
-
* @category
|
|
489
|
+
* @category State predicates
|
|
490
490
|
*/
|
|
491
491
|
export const every = dual(2, function every(ref, predicate) {
|
|
492
492
|
return RefSubject.map(ref, Record.every(predicate));
|
|
@@ -505,7 +505,7 @@ export const every = dual(2, function every(ref, predicate) {
|
|
|
505
505
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
506
506
|
*
|
|
507
507
|
* @since 1.18.0
|
|
508
|
-
* @category
|
|
508
|
+
* @category Derived queries
|
|
509
509
|
*/
|
|
510
510
|
export const reduce = dual(3, function reduce(ref, b, f) {
|
|
511
511
|
return RefSubject.map(ref, Record.reduce(b, f));
|
|
@@ -527,7 +527,7 @@ export const reduce = dual(3, function reduce(ref, b, f) {
|
|
|
527
527
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
528
528
|
*
|
|
529
529
|
* @since 1.18.0
|
|
530
|
-
* @category
|
|
530
|
+
* @category Optional queries
|
|
531
531
|
*/
|
|
532
532
|
export const get = dual(2, function get(ref, key) {
|
|
533
533
|
return RefSubject.filterMap(ref, Record.get(key));
|
|
@@ -546,7 +546,7 @@ export const get = dual(2, function get(ref, key) {
|
|
|
546
546
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
547
547
|
*
|
|
548
548
|
* @since 1.18.0
|
|
549
|
-
* @category
|
|
549
|
+
* @category Optional queries
|
|
550
550
|
*/
|
|
551
551
|
export const findFirst = dual(2, function findFirst(ref, predicate) {
|
|
552
552
|
return RefSubject.filterMap(ref, (r) => Record.findFirst(r, predicate));
|
|
@@ -565,7 +565,7 @@ export const findFirst = dual(2, function findFirst(ref, predicate) {
|
|
|
565
565
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
566
566
|
*
|
|
567
567
|
* @since 1.18.0
|
|
568
|
-
* @category
|
|
568
|
+
* @category Optional queries
|
|
569
569
|
*/
|
|
570
570
|
export const pop = dual(2, function pop(ref, key) {
|
|
571
571
|
return RefSubject.filterMap(ref, (r) => {
|
|
@@ -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 RefResult<in out A, in out ResultE, in out Err = never, out R = never> extends RefSubject.RefSubject<Result.Result<A, ResultE>, Err, R> {
|
|
28
28
|
}
|
|
@@ -53,7 +53,7 @@ export interface RefResult<in out A, in out ResultE, in out Err = never, out R =
|
|
|
53
53
|
* ```
|
|
54
54
|
*
|
|
55
55
|
* @since 1.18.0
|
|
56
|
-
* @category
|
|
56
|
+
* @category Constructors
|
|
57
57
|
*/
|
|
58
58
|
export declare function make<A, ResultE, Err = never, R = never>(initial: Result.Result<A, ResultE> | Effect.Effect<Result.Result<A, ResultE>, Err, R> | Fx.Fx<Result.Result<A, ResultE>, Err, R>, successEq?: Equivalence<A>, failureEq?: Equivalence<ResultE>): Effect.Effect<RefResult<A, ResultE, Err, R>, never, R | Scope.Scope>;
|
|
59
59
|
/**
|
|
@@ -70,7 +70,7 @@ export declare function make<A, ResultE, Err = never, R = never>(initial: Result
|
|
|
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 setSuccess: {
|
|
76
76
|
<A>(value: A): <ResultE, Err, R>(ref: RefResult<A, ResultE, Err, R>) => Effect.Effect<Result.Result<A, ResultE>, Err, R>;
|
|
@@ -90,7 +90,7 @@ export declare const setSuccess: {
|
|
|
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 setFailure: {
|
|
96
96
|
<ResultE>(error: ResultE): <A, Err, R>(ref: RefResult<A, ResultE, Err, R>) => Effect.Effect<Result.Result<A, ResultE>, Err, R>;
|
|
@@ -110,7 +110,7 @@ export declare const setFailure: {
|
|
|
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 declare const map: {
|
|
116
116
|
<A, B>(f: (a: A) => B): <ResultE, Err, R>(ref: RefResult<A, ResultE, Err, R>) => RefSubject.Computed<Result.Result<B, ResultE>, Err, R>;
|
|
@@ -130,7 +130,7 @@ export declare const map: {
|
|
|
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 Derived queries
|
|
134
134
|
*/
|
|
135
135
|
export declare const mapError: {
|
|
136
136
|
<ResultE, ResultE2>(f: (e: ResultE) => ResultE2): <A, Err, R>(ref: RefResult<A, ResultE, Err, R>) => RefSubject.Computed<Result.Result<A, ResultE2>, Err, R>;
|
|
@@ -150,7 +150,7 @@ export declare const mapError: {
|
|
|
150
150
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
151
151
|
*
|
|
152
152
|
* @since 1.18.0
|
|
153
|
-
* @category
|
|
153
|
+
* @category Derived queries
|
|
154
154
|
*/
|
|
155
155
|
export declare const flatMap: {
|
|
156
156
|
<A, B, ResultE2>(f: (a: A) => Result.Result<B, ResultE2>): <ResultE, Err, R>(ref: RefResult<A, ResultE, Err, R>) => RefSubject.Computed<Result.Result<B, ResultE | ResultE2>, Err, R>;
|
|
@@ -170,7 +170,7 @@ export declare const flatMap: {
|
|
|
170
170
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
171
171
|
*
|
|
172
172
|
* @since 1.18.0
|
|
173
|
-
* @category
|
|
173
|
+
* @category State predicates
|
|
174
174
|
*/
|
|
175
175
|
export declare const isSuccess: <A, ResultE, Err, R>(ref: RefResult<A, ResultE, Err, R>) => RefSubject.Computed<boolean, Err, R>;
|
|
176
176
|
/**
|
|
@@ -187,7 +187,7 @@ export declare const isSuccess: <A, ResultE, Err, R>(ref: RefResult<A, ResultE,
|
|
|
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 isFailure: <A, ResultE, Err, R>(ref: RefResult<A, ResultE, Err, R>) => RefSubject.Computed<boolean, Err, R>;
|
|
193
193
|
/**
|
|
@@ -204,7 +204,7 @@ export declare const isFailure: <A, ResultE, Err, R>(ref: RefResult<A, ResultE,
|
|
|
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 Derived queries
|
|
208
208
|
*/
|
|
209
209
|
export declare const match: {
|
|
210
210
|
<A, ResultE, B>(options: {
|
|
@@ -230,7 +230,7 @@ export declare const match: {
|
|
|
230
230
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
231
231
|
*
|
|
232
232
|
* @since 1.18.0
|
|
233
|
-
* @category
|
|
233
|
+
* @category Optional queries
|
|
234
234
|
*/
|
|
235
235
|
export declare const getSuccess: <A, ResultE, Err, R>(ref: RefResult<A, ResultE, Err, R>) => RefSubject.Filtered<A, Err, R>;
|
|
236
236
|
/**
|
|
@@ -247,7 +247,7 @@ export declare const getSuccess: <A, ResultE, Err, R>(ref: RefResult<A, ResultE,
|
|
|
247
247
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
248
248
|
*
|
|
249
249
|
* @since 1.18.0
|
|
250
|
-
* @category
|
|
250
|
+
* @category Optional queries
|
|
251
251
|
*/
|
|
252
252
|
export declare const getFailure: <A, ResultE, Err, R>(ref: RefResult<A, ResultE, Err, R>) => RefSubject.Filtered<ResultE, Err, R>;
|
|
253
253
|
//# sourceMappingURL=RefResult.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, successEq = Equivalence_.strictEqual(), failureEq = Equivalence_.strictEqual()) {
|
|
39
39
|
return RefSubject.make(initial, { eq: Result.makeEquivalence(successEq, failureEq) });
|
|
@@ -52,7 +52,7 @@ export function make(initial, successEq = Equivalence_.strictEqual(), failureEq
|
|
|
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 setSuccess = dual(2, function setSuccess(ref, value) {
|
|
58
58
|
return RefSubject.set(ref, Result.succeed(value));
|
|
@@ -71,7 +71,7 @@ export const setSuccess = dual(2, function setSuccess(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 setFailure = dual(2, function setFailure(ref, error) {
|
|
77
77
|
return RefSubject.set(ref, Result.fail(error));
|
|
@@ -93,7 +93,7 @@ export const setFailure = dual(2, function setFailure(ref, error) {
|
|
|
93
93
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
94
94
|
*
|
|
95
95
|
* @since 1.18.0
|
|
96
|
-
* @category
|
|
96
|
+
* @category Derived queries
|
|
97
97
|
*/
|
|
98
98
|
export const map = dual(2, function map(ref, f) {
|
|
99
99
|
return RefSubject.map(ref, (self) => Result.map(self, f));
|
|
@@ -112,7 +112,7 @@ export const map = dual(2, function map(ref, f) {
|
|
|
112
112
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
113
113
|
*
|
|
114
114
|
* @since 1.18.0
|
|
115
|
-
* @category
|
|
115
|
+
* @category Derived queries
|
|
116
116
|
*/
|
|
117
117
|
export const mapError = dual(2, function mapError(ref, f) {
|
|
118
118
|
return RefSubject.map(ref, (self) => Result.mapError(self, f));
|
|
@@ -131,7 +131,7 @@ export const mapError = dual(2, function mapError(ref, f) {
|
|
|
131
131
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
132
132
|
*
|
|
133
133
|
* @since 1.18.0
|
|
134
|
-
* @category
|
|
134
|
+
* @category Derived queries
|
|
135
135
|
*/
|
|
136
136
|
export const flatMap = dual(2, function flatMap(ref, f) {
|
|
137
137
|
return RefSubject.map(ref, (self) => Result.flatMap(self, f));
|
|
@@ -150,7 +150,7 @@ export const flatMap = dual(2, function flatMap(ref, f) {
|
|
|
150
150
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
151
151
|
*
|
|
152
152
|
* @since 1.18.0
|
|
153
|
-
* @category
|
|
153
|
+
* @category State predicates
|
|
154
154
|
*/
|
|
155
155
|
export const isSuccess = (ref) => RefSubject.map(ref, Result.isSuccess);
|
|
156
156
|
/**
|
|
@@ -167,7 +167,7 @@ export const isSuccess = (ref) => RefSubject.map(ref, Result.isSuccess);
|
|
|
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 isFailure = (ref) => RefSubject.map(ref, Result.isFailure);
|
|
173
173
|
/**
|
|
@@ -184,7 +184,7 @@ export const isFailure = (ref) => RefSubject.map(ref, Result.isFailure);
|
|
|
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 Derived queries
|
|
188
188
|
*/
|
|
189
189
|
export const match = dual(2, function match(ref, options) {
|
|
190
190
|
return RefSubject.map(ref, (self) => Result.match(self, options));
|
|
@@ -206,7 +206,7 @@ export const match = dual(2, function match(ref, options) {
|
|
|
206
206
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
207
207
|
*
|
|
208
208
|
* @since 1.18.0
|
|
209
|
-
* @category
|
|
209
|
+
* @category Optional queries
|
|
210
210
|
*/
|
|
211
211
|
export const getSuccess = (ref) => RefSubject.filterMap(ref, Result.getSuccess);
|
|
212
212
|
/**
|
|
@@ -223,6 +223,6 @@ export const getSuccess = (ref) => RefSubject.filterMap(ref, Result.getSuccess);
|
|
|
223
223
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
224
224
|
*
|
|
225
225
|
* @since 1.18.0
|
|
226
|
-
* @category
|
|
226
|
+
* @category Optional queries
|
|
227
227
|
*/
|
|
228
228
|
export const getFailure = (ref) => RefSubject.filterMap(ref, Result.getFailure);
|
|
@@ -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 RefString<in out E = never, out R = never> extends RefSubject.RefSubject<string, E, R> {
|
|
27
27
|
}
|
|
@@ -52,7 +52,7 @@ export interface RefString<in out E = never, out R = never> extends RefSubject.R
|
|
|
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: string | Effect.Effect<string, E, R> | Fx.Fx<string, E, R>, eq?: Equivalence<string>): Effect.Effect<RefString<E>, never, R | Scope.Scope>;
|
|
58
58
|
/**
|
|
@@ -69,7 +69,7 @@ export declare function make<E = never, R = never>(initial: string | Effect.Effe
|
|
|
69
69
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
70
70
|
*
|
|
71
71
|
* @since 1.18.0
|
|
72
|
-
* @category
|
|
72
|
+
* @category Derived queries
|
|
73
73
|
*/
|
|
74
74
|
export declare const concat: {
|
|
75
75
|
(that: string): <E, R>(ref: RefString<E, R>) => RefSubject.Computed<string, E, R>;
|
|
@@ -89,7 +89,7 @@ export declare const concat: {
|
|
|
89
89
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
90
90
|
*
|
|
91
91
|
* @since 1.18.0
|
|
92
|
-
* @category
|
|
92
|
+
* @category Derived queries
|
|
93
93
|
*/
|
|
94
94
|
export declare const toUpperCase: <E, R>(ref: RefString<E, R>) => RefSubject.Computed<string, E, R>;
|
|
95
95
|
/**
|
|
@@ -106,7 +106,7 @@ export declare const toUpperCase: <E, R>(ref: RefString<E, R>) => RefSubject.Com
|
|
|
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 declare const toLowerCase: <E, R>(ref: RefString<E, R>) => RefSubject.Computed<string, E, R>;
|
|
112
112
|
/**
|
|
@@ -123,7 +123,7 @@ export declare const toLowerCase: <E, R>(ref: RefString<E, R>) => RefSubject.Com
|
|
|
123
123
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
124
124
|
*
|
|
125
125
|
* @since 1.18.0
|
|
126
|
-
* @category
|
|
126
|
+
* @category Derived queries
|
|
127
127
|
*/
|
|
128
128
|
export declare const trim: <E, R>(ref: RefString<E, R>) => RefSubject.Computed<string, E, R>;
|
|
129
129
|
/**
|
|
@@ -140,7 +140,7 @@ export declare const trim: <E, R>(ref: RefString<E, R>) => RefSubject.Computed<s
|
|
|
140
140
|
* observation 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 trimStart: <E, R>(ref: RefString<E, R>) => RefSubject.Computed<string, E, R>;
|
|
146
146
|
/**
|
|
@@ -157,7 +157,7 @@ export declare const trimStart: <E, R>(ref: RefString<E, R>) => RefSubject.Compu
|
|
|
157
157
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
158
158
|
*
|
|
159
159
|
* @since 1.18.0
|
|
160
|
-
* @category
|
|
160
|
+
* @category Derived queries
|
|
161
161
|
*/
|
|
162
162
|
export declare const trimEnd: <E, R>(ref: RefString<E, R>) => RefSubject.Computed<string, E, R>;
|
|
163
163
|
/**
|
|
@@ -174,7 +174,7 @@ export declare const trimEnd: <E, R>(ref: RefString<E, R>) => RefSubject.Compute
|
|
|
174
174
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
175
175
|
*
|
|
176
176
|
* @since 1.18.0
|
|
177
|
-
* @category
|
|
177
|
+
* @category Derived queries
|
|
178
178
|
*/
|
|
179
179
|
export declare const replace: {
|
|
180
180
|
(searchValue: string | RegExp, replaceValue: string): <E, R>(ref: RefString<E, R>) => RefSubject.Computed<string, E, R>;
|
|
@@ -194,7 +194,7 @@ export declare const replace: {
|
|
|
194
194
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
195
195
|
*
|
|
196
196
|
* @since 1.18.0
|
|
197
|
-
* @category
|
|
197
|
+
* @category Derived queries
|
|
198
198
|
*/
|
|
199
199
|
export declare const replaceAll: {
|
|
200
200
|
(searchValue: string | RegExp, replaceValue: string): <E, R>(ref: RefString<E, R>) => RefSubject.Computed<string, E, R>;
|
|
@@ -214,7 +214,7 @@ export declare const replaceAll: {
|
|
|
214
214
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
215
215
|
*
|
|
216
216
|
* @since 1.18.0
|
|
217
|
-
* @category
|
|
217
|
+
* @category State predicates
|
|
218
218
|
*/
|
|
219
219
|
export declare const isEmpty: <E, R>(ref: RefString<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
220
220
|
/**
|
|
@@ -231,7 +231,7 @@ export declare const isEmpty: <E, R>(ref: RefString<E, R>) => RefSubject.Compute
|
|
|
231
231
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
232
232
|
*
|
|
233
233
|
* @since 1.18.0
|
|
234
|
-
* @category
|
|
234
|
+
* @category State predicates
|
|
235
235
|
*/
|
|
236
236
|
export declare const isNonEmpty: <E, R>(ref: RefString<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
237
237
|
/**
|
|
@@ -248,7 +248,7 @@ export declare const isNonEmpty: <E, R>(ref: RefString<E, R>) => RefSubject.Comp
|
|
|
248
248
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
249
249
|
*
|
|
250
250
|
* @since 1.18.0
|
|
251
|
-
* @category
|
|
251
|
+
* @category Derived queries
|
|
252
252
|
*/
|
|
253
253
|
export declare const length: <E, R>(ref: RefString<E, R>) => RefSubject.Computed<number, E, R>;
|
|
254
254
|
/**
|
|
@@ -265,7 +265,7 @@ export declare const length: <E, R>(ref: RefString<E, R>) => RefSubject.Computed
|
|
|
265
265
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
266
266
|
*
|
|
267
267
|
* @since 1.18.0
|
|
268
|
-
* @category
|
|
268
|
+
* @category Derived queries
|
|
269
269
|
*/
|
|
270
270
|
export declare const startsWith: {
|
|
271
271
|
(searchString: string, position?: number): <E, R>(ref: RefString<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -285,7 +285,7 @@ export declare const startsWith: {
|
|
|
285
285
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
286
286
|
*
|
|
287
287
|
* @since 1.18.0
|
|
288
|
-
* @category
|
|
288
|
+
* @category Derived queries
|
|
289
289
|
*/
|
|
290
290
|
export declare const endsWith: {
|
|
291
291
|
(searchString: string, position?: number): <E, R>(ref: RefString<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -305,7 +305,7 @@ export declare const endsWith: {
|
|
|
305
305
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
306
306
|
*
|
|
307
307
|
* @since 1.18.0
|
|
308
|
-
* @category
|
|
308
|
+
* @category Derived queries
|
|
309
309
|
*/
|
|
310
310
|
export declare const includes: {
|
|
311
311
|
(searchString: string, position?: number): <E, R>(ref: RefString<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -325,7 +325,7 @@ export declare const includes: {
|
|
|
325
325
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
326
326
|
*
|
|
327
327
|
* @since 1.18.0
|
|
328
|
-
* @category
|
|
328
|
+
* @category Derived queries
|
|
329
329
|
*/
|
|
330
330
|
export declare const slice: {
|
|
331
331
|
(start?: number, end?: number): <E, R>(ref: RefString<E, R>) => RefSubject.Computed<string, E, R>;
|