@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
|
@@ -34,7 +34,7 @@ const isRefStringDataFirst = (args) => RefSubject.isRefSubject(args[0]);
|
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* @since 1.18.0
|
|
37
|
-
* @category
|
|
37
|
+
* @category Constructors
|
|
38
38
|
*/
|
|
39
39
|
export function make(initial, eq = Equivalence_.strictEqual()) {
|
|
40
40
|
return RefSubject.make(initial, { eq });
|
|
@@ -56,7 +56,7 @@ export function make(initial, eq = Equivalence_.strictEqual()) {
|
|
|
56
56
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
57
57
|
*
|
|
58
58
|
* @since 1.18.0
|
|
59
|
-
* @category
|
|
59
|
+
* @category Derived queries
|
|
60
60
|
*/
|
|
61
61
|
export const concat = dual(2, function concat(ref, that) {
|
|
62
62
|
return RefSubject.map(ref, (self) => String_.concat(self, that));
|
|
@@ -75,7 +75,7 @@ export const concat = dual(2, function concat(ref, that) {
|
|
|
75
75
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
76
76
|
*
|
|
77
77
|
* @since 1.18.0
|
|
78
|
-
* @category
|
|
78
|
+
* @category Derived queries
|
|
79
79
|
*/
|
|
80
80
|
export const toUpperCase = (ref) => RefSubject.map(ref, String_.toUpperCase);
|
|
81
81
|
/**
|
|
@@ -92,7 +92,7 @@ export const toUpperCase = (ref) => RefSubject.map(ref, String_.toUpperCase);
|
|
|
92
92
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
93
93
|
*
|
|
94
94
|
* @since 1.18.0
|
|
95
|
-
* @category
|
|
95
|
+
* @category Derived queries
|
|
96
96
|
*/
|
|
97
97
|
export const toLowerCase = (ref) => RefSubject.map(ref, String_.toLowerCase);
|
|
98
98
|
/**
|
|
@@ -109,7 +109,7 @@ export const toLowerCase = (ref) => RefSubject.map(ref, String_.toLowerCase);
|
|
|
109
109
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
110
110
|
*
|
|
111
111
|
* @since 1.18.0
|
|
112
|
-
* @category
|
|
112
|
+
* @category Derived queries
|
|
113
113
|
*/
|
|
114
114
|
export const trim = (ref) => RefSubject.map(ref, String_.trim);
|
|
115
115
|
/**
|
|
@@ -126,7 +126,7 @@ export const trim = (ref) => RefSubject.map(ref, String_.trim);
|
|
|
126
126
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
127
127
|
*
|
|
128
128
|
* @since 1.18.0
|
|
129
|
-
* @category
|
|
129
|
+
* @category Derived queries
|
|
130
130
|
*/
|
|
131
131
|
export const trimStart = (ref) => RefSubject.map(ref, String_.trimStart);
|
|
132
132
|
/**
|
|
@@ -143,7 +143,7 @@ export const trimStart = (ref) => RefSubject.map(ref, String_.trimStart);
|
|
|
143
143
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
144
144
|
*
|
|
145
145
|
* @since 1.18.0
|
|
146
|
-
* @category
|
|
146
|
+
* @category Derived queries
|
|
147
147
|
*/
|
|
148
148
|
export const trimEnd = (ref) => RefSubject.map(ref, String_.trimEnd);
|
|
149
149
|
/**
|
|
@@ -160,7 +160,7 @@ export const trimEnd = (ref) => RefSubject.map(ref, String_.trimEnd);
|
|
|
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 const replace = dual(3, function replace(ref, searchValue, replaceValue) {
|
|
166
166
|
return RefSubject.map(ref, String_.replace(searchValue, replaceValue));
|
|
@@ -179,7 +179,7 @@ export const replace = dual(3, function replace(ref, searchValue, replaceValue)
|
|
|
179
179
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
180
180
|
*
|
|
181
181
|
* @since 1.18.0
|
|
182
|
-
* @category
|
|
182
|
+
* @category Derived queries
|
|
183
183
|
*/
|
|
184
184
|
export const replaceAll = dual(3, function replaceAll(ref, searchValue, replaceValue) {
|
|
185
185
|
return RefSubject.map(ref, String_.replaceAll(searchValue, replaceValue));
|
|
@@ -198,7 +198,7 @@ export const replaceAll = dual(3, function replaceAll(ref, searchValue, replaceV
|
|
|
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 State predicates
|
|
202
202
|
*/
|
|
203
203
|
export const isEmpty = (ref) => RefSubject.map(ref, String_.isEmpty);
|
|
204
204
|
/**
|
|
@@ -215,7 +215,7 @@ export const isEmpty = (ref) => RefSubject.map(ref, String_.isEmpty);
|
|
|
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 State predicates
|
|
219
219
|
*/
|
|
220
220
|
export const isNonEmpty = (ref) => RefSubject.map(ref, String_.isNonEmpty);
|
|
221
221
|
/**
|
|
@@ -232,7 +232,7 @@ export const isNonEmpty = (ref) => RefSubject.map(ref, String_.isNonEmpty);
|
|
|
232
232
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
233
233
|
*
|
|
234
234
|
* @since 1.18.0
|
|
235
|
-
* @category
|
|
235
|
+
* @category Derived queries
|
|
236
236
|
*/
|
|
237
237
|
export const length = (ref) => RefSubject.map(ref, String_.length);
|
|
238
238
|
/**
|
|
@@ -249,7 +249,7 @@ export const length = (ref) => RefSubject.map(ref, String_.length);
|
|
|
249
249
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
250
250
|
*
|
|
251
251
|
* @since 1.18.0
|
|
252
|
-
* @category
|
|
252
|
+
* @category Derived queries
|
|
253
253
|
*/
|
|
254
254
|
export const startsWith = dual(isRefStringDataFirst, function startsWith(ref, searchString, position) {
|
|
255
255
|
return RefSubject.map(ref, String_.startsWith(searchString, position));
|
|
@@ -268,7 +268,7 @@ export const startsWith = dual(isRefStringDataFirst, function startsWith(ref, se
|
|
|
268
268
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
269
269
|
*
|
|
270
270
|
* @since 1.18.0
|
|
271
|
-
* @category
|
|
271
|
+
* @category Derived queries
|
|
272
272
|
*/
|
|
273
273
|
export const endsWith = dual(isRefStringDataFirst, function endsWith(ref, searchString, position) {
|
|
274
274
|
return RefSubject.map(ref, String_.endsWith(searchString, position));
|
|
@@ -287,7 +287,7 @@ export const endsWith = dual(isRefStringDataFirst, function endsWith(ref, search
|
|
|
287
287
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
288
288
|
*
|
|
289
289
|
* @since 1.18.0
|
|
290
|
-
* @category
|
|
290
|
+
* @category Derived queries
|
|
291
291
|
*/
|
|
292
292
|
export const includes = dual(isRefStringDataFirst, function includes(ref, searchString, position) {
|
|
293
293
|
return RefSubject.map(ref, String_.includes(searchString, position));
|
|
@@ -306,7 +306,7 @@ export const includes = dual(isRefStringDataFirst, function includes(ref, search
|
|
|
306
306
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
307
307
|
*
|
|
308
308
|
* @since 1.18.0
|
|
309
|
-
* @category
|
|
309
|
+
* @category Derived queries
|
|
310
310
|
*/
|
|
311
311
|
export const slice = dual(isRefStringDataFirst, function slice(ref, start, end) {
|
|
312
312
|
return RefSubject.map(ref, String_.slice(start, end));
|
|
@@ -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 RefStruct<in out S extends object, in out E = never, out R = never> extends RefSubject.RefSubject<S, E, R> {
|
|
27
27
|
}
|
|
@@ -52,7 +52,7 @@ export interface RefStruct<in out S extends object, in out E = never, out R = ne
|
|
|
52
52
|
* ```
|
|
53
53
|
*
|
|
54
54
|
* @since 1.18.0
|
|
55
|
-
* @category
|
|
55
|
+
* @category Constructors
|
|
56
56
|
*/
|
|
57
57
|
export declare function make<S extends object, E = never, R = never>(initial: S | Effect.Effect<S, E, R> | Fx.Fx<S, E, R>, eq?: Equivalence<S>): Effect.Effect<RefStruct<S, E>, never, R | Scope.Scope>;
|
|
58
58
|
/**
|
|
@@ -69,7 +69,7 @@ export declare function make<S extends object, E = never, R = never>(initial: S
|
|
|
69
69
|
* 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 set: {
|
|
75
75
|
<S extends object, K extends keyof S>(key: K, value: S[K]): <E, R>(ref: RefStruct<S, E, R>) => Effect.Effect<S, E, R>;
|
|
@@ -89,7 +89,7 @@ export declare const set: {
|
|
|
89
89
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
90
90
|
*
|
|
91
91
|
* @since 1.18.0
|
|
92
|
-
* @category
|
|
92
|
+
* @category State updates
|
|
93
93
|
*/
|
|
94
94
|
export declare const update: {
|
|
95
95
|
<S extends object, K extends keyof S>(key: K, f: (value: S[K]) => S[K]): <E, R>(ref: RefStruct<S, E, R>) => Effect.Effect<S, E, R>;
|
|
@@ -109,7 +109,7 @@ export declare const update: {
|
|
|
109
109
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
110
110
|
*
|
|
111
111
|
* @since 1.18.0
|
|
112
|
-
* @category
|
|
112
|
+
* @category State updates
|
|
113
113
|
*/
|
|
114
114
|
export declare const merge: {
|
|
115
115
|
<O extends object>(that: O): <S extends object, E, R>(ref: RefStruct<S, E, R>) => Effect.Effect<S, E, R>;
|
|
@@ -129,7 +129,7 @@ export declare const merge: {
|
|
|
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 declare const pick: {
|
|
135
135
|
<S extends object, const Keys extends ReadonlyArray<keyof S>>(keys: Keys): <E, R>(ref: RefStruct<S, E, R>) => RefSubject.Computed<Pick<S, Keys[number]>, E, R>;
|
|
@@ -149,7 +149,7 @@ export declare const pick: {
|
|
|
149
149
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
150
150
|
*
|
|
151
151
|
* @since 1.18.0
|
|
152
|
-
* @category
|
|
152
|
+
* @category Derived queries
|
|
153
153
|
*/
|
|
154
154
|
export declare const omit: {
|
|
155
155
|
<S extends object, const Keys extends ReadonlyArray<keyof S>>(keys: Keys): <E, R>(ref: RefStruct<S, E, R>) => RefSubject.Computed<Omit<S, Keys[number]>, E, R>;
|
|
@@ -181,7 +181,7 @@ export declare const omit: {
|
|
|
181
181
|
* ```
|
|
182
182
|
*
|
|
183
183
|
* @since 1.18.0
|
|
184
|
-
* @category
|
|
184
|
+
* @category Derived queries
|
|
185
185
|
*/
|
|
186
186
|
export declare const get: {
|
|
187
187
|
<S extends object, const K extends keyof S>(key: K): <E, R>(ref: RefStruct<S, E, R>) => RefSubject.Computed<S[K], E, R>;
|
|
@@ -201,7 +201,7 @@ export declare const get: {
|
|
|
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 Derived queries
|
|
205
205
|
*/
|
|
206
206
|
export declare const keys: <S extends object, E, R>(ref: RefStruct<S, E, R>) => RefSubject.Computed<Array<keyof S & string>, E, R>;
|
|
207
207
|
/**
|
|
@@ -218,7 +218,7 @@ export declare const keys: <S extends object, E, R>(ref: RefStruct<S, E, R>) =>
|
|
|
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 declare const values: <S extends object, E, R>(ref: RefStruct<S, E, R>) => RefSubject.Computed<Array<S[keyof S]>, E, R>;
|
|
224
224
|
/**
|
|
@@ -235,7 +235,7 @@ export declare const values: <S extends object, E, R>(ref: RefStruct<S, E, R>) =
|
|
|
235
235
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
236
236
|
*
|
|
237
237
|
* @since 1.18.0
|
|
238
|
-
* @category
|
|
238
|
+
* @category Derived queries
|
|
239
239
|
*/
|
|
240
240
|
export declare const entries: <S extends object, E, R>(ref: RefStruct<S, E, R>) => RefSubject.Computed<Array<[keyof S, S[keyof S]]>, E, R>;
|
|
241
241
|
/**
|
|
@@ -252,7 +252,7 @@ export declare const entries: <S extends object, E, R>(ref: RefStruct<S, E, R>)
|
|
|
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 State predicates
|
|
256
256
|
*/
|
|
257
257
|
export declare const has: {
|
|
258
258
|
<S extends object, const K extends keyof S>(key: K): <E, R>(ref: RefStruct<S, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -272,7 +272,7 @@ export declare const has: {
|
|
|
272
272
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
273
273
|
*
|
|
274
274
|
* @since 1.18.0
|
|
275
|
-
* @category
|
|
275
|
+
* @category Derived queries
|
|
276
276
|
*/
|
|
277
277
|
export declare const size: <S extends object, E, R>(ref: RefStruct<S, E, R>) => RefSubject.Computed<number, E, R>;
|
|
278
278
|
//# sourceMappingURL=RefStruct.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 = Equivalence_.make((a, b) => equals(a, b))) {
|
|
40
40
|
return RefSubject.make(initial, { eq });
|
|
@@ -53,7 +53,7 @@ export function make(initial, eq = Equivalence_.make((a, b) => equals(a, b))) {
|
|
|
53
53
|
* 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 set = dual(3, function set(ref, key, value) {
|
|
59
59
|
return RefSubject.update(ref, (self) => Struct.assign(self, { [key]: value }));
|
|
@@ -72,7 +72,7 @@ export const set = dual(3, function set(ref, key, value) {
|
|
|
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 update = dual(3, function update(ref, key, f) {
|
|
78
78
|
return RefSubject.update(ref, (self) => Struct.evolve(self, { [key]: f }));
|
|
@@ -91,7 +91,7 @@ export const update = dual(3, function update(ref, key, f) {
|
|
|
91
91
|
* 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 merge = dual(2, function merge(ref, that) {
|
|
97
97
|
return RefSubject.update(ref, (self) => Struct.assign(self, that));
|
|
@@ -113,7 +113,7 @@ export const merge = dual(2, function merge(ref, that) {
|
|
|
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 Derived queries
|
|
117
117
|
*/
|
|
118
118
|
export const pick = dual(2, function pick(ref, keys) {
|
|
119
119
|
return RefSubject.map(ref, (self) => Struct.pick(self, keys));
|
|
@@ -132,7 +132,7 @@ export const pick = dual(2, function pick(ref, keys) {
|
|
|
132
132
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
133
133
|
*
|
|
134
134
|
* @since 1.18.0
|
|
135
|
-
* @category
|
|
135
|
+
* @category Derived queries
|
|
136
136
|
*/
|
|
137
137
|
export const omit = dual(2, function omit(ref, keys) {
|
|
138
138
|
return RefSubject.map(ref, (self) => Struct.omit(self, keys));
|
|
@@ -163,7 +163,7 @@ export const omit = dual(2, function omit(ref, keys) {
|
|
|
163
163
|
* ```
|
|
164
164
|
*
|
|
165
165
|
* @since 1.18.0
|
|
166
|
-
* @category
|
|
166
|
+
* @category Derived queries
|
|
167
167
|
*/
|
|
168
168
|
export const get = dual(2, function get(ref, key) {
|
|
169
169
|
return RefSubject.map(ref, (self) => Struct.get(self, key));
|
|
@@ -182,7 +182,7 @@ export const get = dual(2, function get(ref, key) {
|
|
|
182
182
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
183
183
|
*
|
|
184
184
|
* @since 1.18.0
|
|
185
|
-
* @category
|
|
185
|
+
* @category Derived queries
|
|
186
186
|
*/
|
|
187
187
|
export const keys = (ref) => RefSubject.map(ref, Struct.keys);
|
|
188
188
|
/**
|
|
@@ -199,7 +199,7 @@ export const keys = (ref) => RefSubject.map(ref, Struct.keys);
|
|
|
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 values = (ref) => RefSubject.map(ref, (self) => Object.values(self));
|
|
205
205
|
/**
|
|
@@ -216,7 +216,7 @@ export const values = (ref) => RefSubject.map(ref, (self) => Object.values(self)
|
|
|
216
216
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
217
217
|
*
|
|
218
218
|
* @since 1.18.0
|
|
219
|
-
* @category
|
|
219
|
+
* @category Derived queries
|
|
220
220
|
*/
|
|
221
221
|
export const entries = (ref) => RefSubject.map(ref, (self) => Object.entries(self));
|
|
222
222
|
/**
|
|
@@ -233,7 +233,7 @@ export const entries = (ref) => RefSubject.map(ref, (self) => Object.entries(sel
|
|
|
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 State predicates
|
|
237
237
|
*/
|
|
238
238
|
export const has = dual(2, function has(ref, key) {
|
|
239
239
|
return RefSubject.map(ref, (self) => key in self);
|
|
@@ -252,6 +252,6 @@ export const has = dual(2, function has(ref, key) {
|
|
|
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 const size = (ref) => RefSubject.map(ref, (self) => Object.keys(self).length);
|