@typed/fx 2.0.0-beta.6 → 2.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1 -1
- package/dist/Fx/Fx.d.ts +9 -9
- package/dist/Fx/Fx.js +1 -1
- package/dist/Fx/TypeId.d.ts +3 -3
- package/dist/Fx/TypeId.js +2 -2
- package/dist/Fx/combinators/additive.d.ts +6 -6
- package/dist/Fx/combinators/additive.js +6 -6
- package/dist/Fx/combinators/catch.d.ts +7 -7
- package/dist/Fx/combinators/catch.js +7 -7
- package/dist/Fx/combinators/causes.d.ts +1 -1
- package/dist/Fx/combinators/causes.js +1 -1
- package/dist/Fx/combinators/changesWithEffect.d.ts +1 -1
- package/dist/Fx/combinators/changesWithEffect.js +1 -1
- package/dist/Fx/combinators/compact.d.ts +1 -1
- package/dist/Fx/combinators/compact.js +1 -1
- package/dist/Fx/combinators/concatMap.d.ts +2 -2
- package/dist/Fx/combinators/concatMap.js +2 -2
- package/dist/Fx/combinators/continueWith.d.ts +4 -4
- package/dist/Fx/combinators/continueWith.js +4 -4
- package/dist/Fx/combinators/debounce.d.ts +2 -2
- package/dist/Fx/combinators/debounce.d.ts.map +1 -1
- package/dist/Fx/combinators/debounce.js +1 -1
- package/dist/Fx/combinators/delay.d.ts +9 -7
- package/dist/Fx/combinators/delay.d.ts.map +1 -1
- package/dist/Fx/combinators/delay.js +8 -6
- package/dist/Fx/combinators/dropUntil.d.ts +2 -2
- package/dist/Fx/combinators/dropUntil.js +2 -2
- package/dist/Fx/combinators/during.d.ts +1 -1
- package/dist/Fx/combinators/during.js +1 -1
- package/dist/Fx/combinators/ensuring.d.ts +1 -1
- package/dist/Fx/combinators/ensuring.js +1 -1
- package/dist/Fx/combinators/exhaustLatestMap.d.ts +1 -1
- package/dist/Fx/combinators/exhaustLatestMap.js +1 -1
- package/dist/Fx/combinators/exhaustLatestMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/exhaustLatestMapEffect.js +1 -1
- package/dist/Fx/combinators/exhaustMap.d.ts +1 -1
- package/dist/Fx/combinators/exhaustMap.js +1 -1
- package/dist/Fx/combinators/exhaustMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/exhaustMapEffect.js +1 -1
- package/dist/Fx/combinators/exit.d.ts +1 -1
- package/dist/Fx/combinators/exit.js +1 -1
- package/dist/Fx/combinators/filter.d.ts +1 -1
- package/dist/Fx/combinators/filter.js +1 -1
- package/dist/Fx/combinators/filterEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterEffect.js +1 -1
- package/dist/Fx/combinators/filterMap.d.ts +1 -1
- package/dist/Fx/combinators/filterMap.js +1 -1
- package/dist/Fx/combinators/filterMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterMapEffect.js +1 -1
- package/dist/Fx/combinators/filterMapLoop.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoop.js +1 -1
- package/dist/Fx/combinators/filterMapLoopCause.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoopCause.js +1 -1
- package/dist/Fx/combinators/filterMapLoopCauseEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoopCauseEffect.js +1 -1
- package/dist/Fx/combinators/filterMapLoopEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoopEffect.js +1 -1
- package/dist/Fx/combinators/flatMap.d.ts +2 -2
- package/dist/Fx/combinators/flatMap.js +1 -1
- package/dist/Fx/combinators/flatMapConcurrently.d.ts +1 -1
- package/dist/Fx/combinators/flatMapConcurrently.js +1 -1
- package/dist/Fx/combinators/flatMapConcurrentlyEffect.d.ts +1 -1
- package/dist/Fx/combinators/flatMapConcurrentlyEffect.js +1 -1
- package/dist/Fx/combinators/flatMapEffect.d.ts +2 -2
- package/dist/Fx/combinators/flatMapEffect.js +1 -1
- package/dist/Fx/combinators/flip.d.ts +1 -1
- package/dist/Fx/combinators/flip.js +1 -1
- package/dist/Fx/combinators/gen.d.ts +1 -1
- package/dist/Fx/combinators/gen.js +1 -1
- package/dist/Fx/combinators/genScoped.d.ts +1 -1
- package/dist/Fx/combinators/genScoped.js +1 -1
- package/dist/Fx/combinators/grouped.d.ts +2 -2
- package/dist/Fx/combinators/grouped.js +2 -2
- package/dist/Fx/combinators/keyed.d.ts +2 -2
- package/dist/Fx/combinators/keyed.js +1 -1
- package/dist/Fx/combinators/loop.d.ts +1 -1
- package/dist/Fx/combinators/loop.js +1 -1
- package/dist/Fx/combinators/loopCause.d.ts +1 -1
- package/dist/Fx/combinators/loopCause.js +1 -1
- package/dist/Fx/combinators/loopCauseEffect.d.ts +1 -1
- package/dist/Fx/combinators/loopCauseEffect.js +1 -1
- package/dist/Fx/combinators/loopEffect.d.ts +1 -1
- package/dist/Fx/combinators/loopEffect.js +1 -1
- package/dist/Fx/combinators/map.d.ts +2 -2
- package/dist/Fx/combinators/map.js +2 -2
- package/dist/Fx/combinators/mapBoth.d.ts +1 -1
- package/dist/Fx/combinators/mapBoth.js +1 -1
- package/dist/Fx/combinators/mapEffect.d.ts +1 -1
- package/dist/Fx/combinators/mapEffect.js +1 -1
- package/dist/Fx/combinators/mapError.d.ts +1 -1
- package/dist/Fx/combinators/mapError.js +1 -1
- package/dist/Fx/combinators/mergeAll.d.ts +1 -1
- package/dist/Fx/combinators/mergeAll.js +1 -1
- package/dist/Fx/combinators/mergeOrdered.d.ts +1 -1
- package/dist/Fx/combinators/mergeOrdered.d.ts.map +1 -1
- package/dist/Fx/combinators/mergeOrdered.js +33 -11
- package/dist/Fx/combinators/onError.d.ts +1 -1
- package/dist/Fx/combinators/onError.js +1 -1
- package/dist/Fx/combinators/onExit.d.ts +1 -1
- package/dist/Fx/combinators/onExit.js +1 -1
- package/dist/Fx/combinators/onInterrupt.d.ts +1 -1
- package/dist/Fx/combinators/onInterrupt.js +1 -1
- package/dist/Fx/combinators/pairwise.d.ts +1 -1
- package/dist/Fx/combinators/pairwise.js +1 -1
- package/dist/Fx/combinators/provide.d.ts +4 -4
- package/dist/Fx/combinators/provide.js +4 -4
- package/dist/Fx/combinators/race.d.ts +2 -2
- package/dist/Fx/combinators/race.js +2 -2
- package/dist/Fx/combinators/repeat.d.ts +1 -1
- package/dist/Fx/combinators/repeat.js +1 -1
- package/dist/Fx/combinators/result.d.ts +1 -1
- package/dist/Fx/combinators/result.js +1 -1
- package/dist/Fx/combinators/retry.d.ts +1 -1
- package/dist/Fx/combinators/retry.js +1 -1
- package/dist/Fx/combinators/sample.d.ts +1 -1
- package/dist/Fx/combinators/sample.js +1 -1
- package/dist/Fx/combinators/scan.d.ts +2 -2
- package/dist/Fx/combinators/scan.js +2 -2
- package/dist/Fx/combinators/since.d.ts +1 -1
- package/dist/Fx/combinators/since.js +1 -1
- package/dist/Fx/combinators/skip.d.ts +2 -2
- package/dist/Fx/combinators/skip.js +2 -2
- package/dist/Fx/combinators/skipRepeats.d.ts +1 -1
- package/dist/Fx/combinators/skipRepeats.js +1 -1
- package/dist/Fx/combinators/skipRepeatsWith.d.ts +1 -1
- package/dist/Fx/combinators/skipRepeatsWith.js +1 -1
- package/dist/Fx/combinators/skipWhile.d.ts +4 -4
- package/dist/Fx/combinators/skipWhile.js +4 -4
- package/dist/Fx/combinators/slice.d.ts +3 -3
- package/dist/Fx/combinators/slice.js +2 -2
- package/dist/Fx/combinators/switchMap.d.ts +1 -1
- package/dist/Fx/combinators/switchMap.js +1 -1
- package/dist/Fx/combinators/switchMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/switchMapEffect.js +1 -1
- package/dist/Fx/combinators/take.d.ts +2 -2
- package/dist/Fx/combinators/take.js +2 -2
- package/dist/Fx/combinators/takeUntil.d.ts +3 -3
- package/dist/Fx/combinators/takeUntil.js +3 -3
- package/dist/Fx/combinators/takeWhile.d.ts +2 -2
- package/dist/Fx/combinators/takeWhile.js +2 -2
- package/dist/Fx/combinators/tapEffect.d.ts +1 -1
- package/dist/Fx/combinators/tapEffect.js +1 -1
- package/dist/Fx/combinators/throttle.d.ts +3 -3
- package/dist/Fx/combinators/throttle.d.ts.map +1 -1
- package/dist/Fx/combinators/throttle.js +1 -1
- package/dist/Fx/combinators/timeout.d.ts +2 -2
- package/dist/Fx/combinators/timeout.js +2 -2
- package/dist/Fx/combinators/tuple.d.ts +2 -2
- package/dist/Fx/combinators/tuple.js +2 -2
- package/dist/Fx/combinators/until.d.ts +1 -1
- package/dist/Fx/combinators/until.js +1 -1
- package/dist/Fx/combinators/unwrap.d.ts +1 -1
- package/dist/Fx/combinators/unwrap.js +1 -1
- package/dist/Fx/combinators/unwrapScoped.d.ts +1 -1
- package/dist/Fx/combinators/unwrapScoped.js +1 -1
- package/dist/Fx/combinators/when.d.ts +2 -2
- package/dist/Fx/combinators/when.js +2 -2
- package/dist/Fx/combinators/withLatestFrom.d.ts +2 -2
- package/dist/Fx/combinators/withLatestFrom.js +2 -2
- package/dist/Fx/combinators/withSpan.d.ts +1 -1
- package/dist/Fx/combinators/withSpan.js +1 -1
- package/dist/Fx/combinators/zip.d.ts +4 -4
- package/dist/Fx/combinators/zip.js +4 -4
- package/dist/Fx/constructors/at.d.ts +1 -1
- package/dist/Fx/constructors/at.js +1 -1
- package/dist/Fx/constructors/die.d.ts +1 -1
- package/dist/Fx/constructors/die.js +1 -1
- package/dist/Fx/constructors/empty.d.ts +1 -1
- package/dist/Fx/constructors/empty.js +1 -1
- package/dist/Fx/constructors/fail.d.ts +1 -1
- package/dist/Fx/constructors/fail.js +1 -1
- package/dist/Fx/constructors/failCause.d.ts +1 -1
- package/dist/Fx/constructors/failCause.js +1 -1
- package/dist/Fx/constructors/fn.d.ts +4 -4
- package/dist/Fx/constructors/fn.js +1 -1
- package/dist/Fx/constructors/fromEffect.d.ts +2 -2
- package/dist/Fx/constructors/fromEffect.js +2 -2
- package/dist/Fx/constructors/fromFailures.d.ts +1 -1
- package/dist/Fx/constructors/fromFailures.js +1 -1
- package/dist/Fx/constructors/fromIterable.d.ts +1 -1
- package/dist/Fx/constructors/fromIterable.js +1 -1
- package/dist/Fx/constructors/fromSchedule.d.ts +6 -4
- package/dist/Fx/constructors/fromSchedule.d.ts.map +1 -1
- package/dist/Fx/constructors/fromSchedule.js +6 -4
- package/dist/Fx/constructors/interrupt.d.ts +1 -1
- package/dist/Fx/constructors/interrupt.js +1 -1
- package/dist/Fx/constructors/make.d.ts +9 -7
- package/dist/Fx/constructors/make.d.ts.map +1 -1
- package/dist/Fx/constructors/make.js +8 -6
- package/dist/Fx/constructors/periodic.d.ts +1 -1
- package/dist/Fx/constructors/periodic.js +1 -1
- package/dist/Fx/constructors/succeed.d.ts +4 -4
- package/dist/Fx/constructors/succeed.js +4 -4
- package/dist/Fx/constructors/suspend.d.ts +1 -1
- package/dist/Fx/constructors/suspend.js +1 -1
- package/dist/Fx/constructors/sync.d.ts +1 -1
- package/dist/Fx/constructors/sync.js +1 -1
- package/dist/Fx/run/collect.d.ts +4 -4
- package/dist/Fx/run/collect.js +4 -4
- package/dist/Fx/run/first.d.ts +1 -1
- package/dist/Fx/run/first.js +1 -1
- package/dist/Fx/run/fork.d.ts +2 -2
- package/dist/Fx/run/fork.js +2 -2
- package/dist/Fx/run/observe.d.ts +7 -5
- package/dist/Fx/run/observe.d.ts.map +1 -1
- package/dist/Fx/run/observe.js +30 -15
- package/dist/Fx/run/runPromise.d.ts +2 -2
- package/dist/Fx/run/runPromise.js +2 -2
- package/dist/Fx/stream.d.ts +4 -4
- package/dist/Fx/stream.js +2 -2
- package/dist/Push/Push.d.ts +30 -30
- package/dist/Push/Push.js +26 -26
- package/dist/RefSubject/Hydration.d.ts +24 -24
- package/dist/RefSubject/Hydration.js +5 -5
- package/dist/RefSubject/RefArray.d.ts +31 -31
- package/dist/RefSubject/RefArray.js +30 -30
- package/dist/RefSubject/RefBigDecimal.d.ts +20 -20
- package/dist/RefSubject/RefBigDecimal.js +19 -19
- package/dist/RefSubject/RefBigInt.d.ts +15 -15
- package/dist/RefSubject/RefBigInt.js +14 -14
- package/dist/RefSubject/RefBoolean.d.ts +15 -15
- package/dist/RefSubject/RefBoolean.js +14 -14
- package/dist/RefSubject/RefCause.d.ts +11 -11
- package/dist/RefSubject/RefCause.js +10 -10
- package/dist/RefSubject/RefChunk.d.ts +37 -37
- package/dist/RefSubject/RefChunk.js +36 -36
- package/dist/RefSubject/RefDateTime.d.ts +11 -11
- package/dist/RefSubject/RefDateTime.js +10 -10
- package/dist/RefSubject/RefDuration.d.ts +14 -14
- package/dist/RefSubject/RefDuration.js +13 -13
- package/dist/RefSubject/RefGraph.d.ts +29 -29
- package/dist/RefSubject/RefGraph.js +28 -28
- package/dist/RefSubject/RefHashMap.d.ts +27 -27
- package/dist/RefSubject/RefHashMap.js +26 -26
- package/dist/RefSubject/RefHashRing.d.ts +13 -13
- package/dist/RefSubject/RefHashRing.js +12 -12
- package/dist/RefSubject/RefHashSet.d.ts +21 -21
- package/dist/RefSubject/RefHashSet.js +20 -20
- package/dist/RefSubject/RefIterable.d.ts +30 -30
- package/dist/RefSubject/RefIterable.js +29 -29
- package/dist/RefSubject/RefOption.d.ts +13 -13
- package/dist/RefSubject/RefOption.js +12 -12
- package/dist/RefSubject/RefRecord.d.ts +31 -31
- package/dist/RefSubject/RefRecord.js +30 -30
- package/dist/RefSubject/RefResult.d.ts +12 -12
- package/dist/RefSubject/RefResult.js +11 -11
- package/dist/RefSubject/RefString.d.ts +17 -17
- package/dist/RefSubject/RefString.js +16 -16
- package/dist/RefSubject/RefStruct.d.ts +13 -13
- package/dist/RefSubject/RefStruct.js +12 -12
- package/dist/RefSubject/RefSubject.d.ts +93 -94
- package/dist/RefSubject/RefSubject.d.ts.map +1 -1
- package/dist/RefSubject/RefSubject.js +132 -77
- package/dist/RefSubject/RefTrie.d.ts +26 -26
- package/dist/RefSubject/RefTrie.js +25 -25
- package/dist/RefSubject/RefTuple.d.ts +11 -11
- package/dist/RefSubject/RefTuple.js +9 -9
- package/dist/Sink/Sink.d.ts +21 -19
- package/dist/Sink/Sink.d.ts.map +1 -1
- package/dist/Sink/Sink.js +5 -4
- package/dist/Sink/combinators.d.ts +33 -33
- package/dist/Sink/combinators.js +32 -32
- package/dist/Subject/Subject.d.ts +14 -13
- package/dist/Subject/Subject.d.ts.map +1 -1
- package/dist/Subject/Subject.js +11 -10
- package/dist/Versioned/Versioned.d.ts +31 -28
- package/dist/Versioned/Versioned.d.ts.map +1 -1
- package/dist/Versioned/Versioned.js +45 -37
- package/package.json +5 -4
|
@@ -21,7 +21,7 @@ import * as RefSubject from "./RefSubject.js";
|
|
|
21
21
|
* services, interruption, and Scope requirements expressed by its members.
|
|
22
22
|
*
|
|
23
23
|
* @since 1.18.0
|
|
24
|
-
* @category models
|
|
24
|
+
* @category State models
|
|
25
25
|
*/
|
|
26
26
|
export interface RefBigDecimal<in out E = never, out R = never> extends RefSubject.RefSubject<BigDecimal.BigDecimal, E, R> {
|
|
27
27
|
}
|
|
@@ -52,7 +52,7 @@ export interface RefBigDecimal<in out E = never, out R = never> extends RefSubje
|
|
|
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: BigDecimal.BigDecimal | Effect.Effect<BigDecimal.BigDecimal, E, R> | Fx.Fx<BigDecimal.BigDecimal, E, R>): Effect.Effect<RefBigDecimal<E>, never, R | Scope.Scope>;
|
|
58
58
|
/**
|
|
@@ -69,7 +69,7 @@ export declare function make<E = never, R = never>(initial: BigDecimal.BigDecima
|
|
|
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 Arithmetic queries
|
|
73
73
|
*/
|
|
74
74
|
export declare const add: {
|
|
75
75
|
(that: BigDecimal.BigDecimal): <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<BigDecimal.BigDecimal, E, R>;
|
|
@@ -89,7 +89,7 @@ export declare const add: {
|
|
|
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 Arithmetic queries
|
|
93
93
|
*/
|
|
94
94
|
export declare const subtract: {
|
|
95
95
|
(that: BigDecimal.BigDecimal): <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<BigDecimal.BigDecimal, E, R>;
|
|
@@ -109,7 +109,7 @@ export declare const subtract: {
|
|
|
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 Arithmetic queries
|
|
113
113
|
*/
|
|
114
114
|
export declare const multiply: {
|
|
115
115
|
(that: BigDecimal.BigDecimal): <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<BigDecimal.BigDecimal, E, R>;
|
|
@@ -129,7 +129,7 @@ export declare const multiply: {
|
|
|
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 Arithmetic queries
|
|
133
133
|
*/
|
|
134
134
|
export declare const divide: {
|
|
135
135
|
(that: BigDecimal.BigDecimal): <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<BigDecimal.BigDecimal | undefined, E, R>;
|
|
@@ -149,7 +149,7 @@ export declare const divide: {
|
|
|
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 Arithmetic queries
|
|
153
153
|
*/
|
|
154
154
|
export declare const abs: <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<BigDecimal.BigDecimal, E, R>;
|
|
155
155
|
/**
|
|
@@ -166,7 +166,7 @@ export declare const abs: <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Compute
|
|
|
166
166
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
167
167
|
*
|
|
168
168
|
* @since 1.18.0
|
|
169
|
-
* @category
|
|
169
|
+
* @category Arithmetic queries
|
|
170
170
|
*/
|
|
171
171
|
export declare const negate: <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<BigDecimal.BigDecimal, E, R>;
|
|
172
172
|
/**
|
|
@@ -183,7 +183,7 @@ export declare const negate: <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Comp
|
|
|
183
183
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
184
184
|
*
|
|
185
185
|
* @since 1.18.0
|
|
186
|
-
* @category
|
|
186
|
+
* @category Arithmetic queries
|
|
187
187
|
*/
|
|
188
188
|
export declare const round: {
|
|
189
189
|
(options?: {
|
|
@@ -209,7 +209,7 @@ export declare const round: {
|
|
|
209
209
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
210
210
|
*
|
|
211
211
|
* @since 1.18.0
|
|
212
|
-
* @category
|
|
212
|
+
* @category Arithmetic queries
|
|
213
213
|
*/
|
|
214
214
|
export declare const truncate: {
|
|
215
215
|
(scale?: number): <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<BigDecimal.BigDecimal, E, R>;
|
|
@@ -229,7 +229,7 @@ export declare const truncate: {
|
|
|
229
229
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
230
230
|
*
|
|
231
231
|
* @since 1.18.0
|
|
232
|
-
* @category
|
|
232
|
+
* @category Arithmetic queries
|
|
233
233
|
*/
|
|
234
234
|
export declare const ceil: {
|
|
235
235
|
(scale?: number): <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<BigDecimal.BigDecimal, E, R>;
|
|
@@ -249,7 +249,7 @@ export declare const ceil: {
|
|
|
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 Arithmetic queries
|
|
253
253
|
*/
|
|
254
254
|
export declare const floor: {
|
|
255
255
|
(scale?: number): <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<BigDecimal.BigDecimal, E, R>;
|
|
@@ -269,7 +269,7 @@ export declare const floor: {
|
|
|
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 isZero: <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
275
275
|
/**
|
|
@@ -286,7 +286,7 @@ export declare const isZero: <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Comp
|
|
|
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 isNegative: <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
292
292
|
/**
|
|
@@ -303,7 +303,7 @@ export declare const isNegative: <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.
|
|
|
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 isPositive: <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
309
309
|
/**
|
|
@@ -320,7 +320,7 @@ export declare const isPositive: <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.
|
|
|
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 State predicates
|
|
324
324
|
*/
|
|
325
325
|
export declare const isInteger: <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
326
326
|
/**
|
|
@@ -337,7 +337,7 @@ export declare const isInteger: <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.C
|
|
|
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 declare const sign: <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<number, E, R>;
|
|
343
343
|
/**
|
|
@@ -354,7 +354,7 @@ export declare const sign: <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Comput
|
|
|
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 State predicates
|
|
358
358
|
*/
|
|
359
359
|
export declare const isLessThan: {
|
|
360
360
|
(that: BigDecimal.BigDecimal): <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -374,7 +374,7 @@ export declare const isLessThan: {
|
|
|
374
374
|
* Fx observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
375
375
|
*
|
|
376
376
|
* @since 1.18.0
|
|
377
|
-
* @category
|
|
377
|
+
* @category State predicates
|
|
378
378
|
*/
|
|
379
379
|
export declare const isGreaterThan: {
|
|
380
380
|
(that: BigDecimal.BigDecimal): <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -394,7 +394,7 @@ export declare const isGreaterThan: {
|
|
|
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 Arithmetic queries
|
|
398
398
|
*/
|
|
399
399
|
export declare const equals: {
|
|
400
400
|
(that: BigDecimal.BigDecimal): <E, R>(ref: RefBigDecimal<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -32,7 +32,7 @@ import * as RefSubject from "./RefSubject.js";
|
|
|
32
32
|
* ```
|
|
33
33
|
*
|
|
34
34
|
* @since 1.18.0
|
|
35
|
-
* @category
|
|
35
|
+
* @category Constructors
|
|
36
36
|
*/
|
|
37
37
|
export function make(initial) {
|
|
38
38
|
return RefSubject.make(initial, { eq: BigDecimal.Equivalence });
|
|
@@ -54,7 +54,7 @@ export function make(initial) {
|
|
|
54
54
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
55
55
|
*
|
|
56
56
|
* @since 1.18.0
|
|
57
|
-
* @category
|
|
57
|
+
* @category Arithmetic queries
|
|
58
58
|
*/
|
|
59
59
|
export const add = dual(2, function add(ref, that) {
|
|
60
60
|
return RefSubject.map(ref, (self) => BigDecimal.sum(self, that));
|
|
@@ -73,7 +73,7 @@ export const add = dual(2, function add(ref, that) {
|
|
|
73
73
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
74
74
|
*
|
|
75
75
|
* @since 1.18.0
|
|
76
|
-
* @category
|
|
76
|
+
* @category Arithmetic queries
|
|
77
77
|
*/
|
|
78
78
|
export const subtract = dual(2, function subtract(ref, that) {
|
|
79
79
|
return RefSubject.map(ref, (self) => BigDecimal.subtract(self, that));
|
|
@@ -92,7 +92,7 @@ export const subtract = dual(2, function subtract(ref, that) {
|
|
|
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 Arithmetic queries
|
|
96
96
|
*/
|
|
97
97
|
export const multiply = dual(2, function multiply(ref, that) {
|
|
98
98
|
return RefSubject.map(ref, (self) => BigDecimal.multiply(self, that));
|
|
@@ -111,7 +111,7 @@ export const multiply = dual(2, function multiply(ref, that) {
|
|
|
111
111
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
112
112
|
*
|
|
113
113
|
* @since 1.18.0
|
|
114
|
-
* @category
|
|
114
|
+
* @category Arithmetic queries
|
|
115
115
|
*/
|
|
116
116
|
export const divide = dual(2, function divide(ref, that) {
|
|
117
117
|
return RefSubject.map(ref, (self) => BigDecimal.divide(self, that));
|
|
@@ -130,7 +130,7 @@ export const divide = dual(2, function divide(ref, that) {
|
|
|
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 Arithmetic queries
|
|
134
134
|
*/
|
|
135
135
|
export const abs = (ref) => RefSubject.map(ref, BigDecimal.abs);
|
|
136
136
|
/**
|
|
@@ -147,7 +147,7 @@ export const abs = (ref) => RefSubject.map(ref, BigDecimal.abs);
|
|
|
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 Arithmetic queries
|
|
151
151
|
*/
|
|
152
152
|
export const negate = (ref) => RefSubject.map(ref, BigDecimal.negate);
|
|
153
153
|
/**
|
|
@@ -164,7 +164,7 @@ export const negate = (ref) => RefSubject.map(ref, BigDecimal.negate);
|
|
|
164
164
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
165
165
|
*
|
|
166
166
|
* @since 1.18.0
|
|
167
|
-
* @category
|
|
167
|
+
* @category Arithmetic queries
|
|
168
168
|
*/
|
|
169
169
|
export const round = dual(2, function round(ref, options) {
|
|
170
170
|
return RefSubject.map(ref, (self) => BigDecimal.round(self, options));
|
|
@@ -183,7 +183,7 @@ export const round = dual(2, function round(ref, options) {
|
|
|
183
183
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
184
184
|
*
|
|
185
185
|
* @since 1.18.0
|
|
186
|
-
* @category
|
|
186
|
+
* @category Arithmetic queries
|
|
187
187
|
*/
|
|
188
188
|
export const truncate = dual(2, function truncate(ref, scale) {
|
|
189
189
|
return RefSubject.map(ref, (self) => BigDecimal.truncate(self, scale));
|
|
@@ -202,7 +202,7 @@ export const truncate = dual(2, function truncate(ref, scale) {
|
|
|
202
202
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
203
203
|
*
|
|
204
204
|
* @since 1.18.0
|
|
205
|
-
* @category
|
|
205
|
+
* @category Arithmetic queries
|
|
206
206
|
*/
|
|
207
207
|
export const ceil = dual(2, function ceil(ref, scale) {
|
|
208
208
|
return RefSubject.map(ref, (self) => BigDecimal.ceil(self, scale));
|
|
@@ -221,7 +221,7 @@ export const ceil = dual(2, function ceil(ref, scale) {
|
|
|
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 Arithmetic queries
|
|
225
225
|
*/
|
|
226
226
|
export const floor = dual(2, function floor(ref, scale) {
|
|
227
227
|
return RefSubject.map(ref, (self) => BigDecimal.floor(self, scale));
|
|
@@ -240,7 +240,7 @@ export const floor = dual(2, function floor(ref, scale) {
|
|
|
240
240
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
241
241
|
*
|
|
242
242
|
* @since 1.18.0
|
|
243
|
-
* @category
|
|
243
|
+
* @category State predicates
|
|
244
244
|
*/
|
|
245
245
|
export const isZero = (ref) => RefSubject.map(ref, BigDecimal.isZero);
|
|
246
246
|
/**
|
|
@@ -257,7 +257,7 @@ export const isZero = (ref) => RefSubject.map(ref, BigDecimal.isZero);
|
|
|
257
257
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
258
258
|
*
|
|
259
259
|
* @since 1.18.0
|
|
260
|
-
* @category
|
|
260
|
+
* @category State predicates
|
|
261
261
|
*/
|
|
262
262
|
export const isNegative = (ref) => RefSubject.map(ref, BigDecimal.isNegative);
|
|
263
263
|
/**
|
|
@@ -274,7 +274,7 @@ export const isNegative = (ref) => RefSubject.map(ref, BigDecimal.isNegative);
|
|
|
274
274
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
275
275
|
*
|
|
276
276
|
* @since 1.18.0
|
|
277
|
-
* @category
|
|
277
|
+
* @category State predicates
|
|
278
278
|
*/
|
|
279
279
|
export const isPositive = (ref) => RefSubject.map(ref, BigDecimal.isPositive);
|
|
280
280
|
/**
|
|
@@ -291,7 +291,7 @@ export const isPositive = (ref) => RefSubject.map(ref, BigDecimal.isPositive);
|
|
|
291
291
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
292
292
|
*
|
|
293
293
|
* @since 1.18.0
|
|
294
|
-
* @category
|
|
294
|
+
* @category State predicates
|
|
295
295
|
*/
|
|
296
296
|
export const isInteger = (ref) => RefSubject.map(ref, BigDecimal.isInteger);
|
|
297
297
|
/**
|
|
@@ -308,7 +308,7 @@ export const isInteger = (ref) => RefSubject.map(ref, BigDecimal.isInteger);
|
|
|
308
308
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
309
309
|
*
|
|
310
310
|
* @since 1.18.0
|
|
311
|
-
* @category
|
|
311
|
+
* @category Derived queries
|
|
312
312
|
*/
|
|
313
313
|
export const sign = (ref) => RefSubject.map(ref, BigDecimal.sign);
|
|
314
314
|
/**
|
|
@@ -325,7 +325,7 @@ export const sign = (ref) => RefSubject.map(ref, BigDecimal.sign);
|
|
|
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 State predicates
|
|
329
329
|
*/
|
|
330
330
|
export const isLessThan = dual(2, function isLessThan(ref, that) {
|
|
331
331
|
return RefSubject.map(ref, (self) => BigDecimal.isLessThan(self, that));
|
|
@@ -344,7 +344,7 @@ export const isLessThan = dual(2, function isLessThan(ref, that) {
|
|
|
344
344
|
* Fx observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
345
345
|
*
|
|
346
346
|
* @since 1.18.0
|
|
347
|
-
* @category
|
|
347
|
+
* @category State predicates
|
|
348
348
|
*/
|
|
349
349
|
export const isGreaterThan = dual(2, function isGreaterThan(ref, that) {
|
|
350
350
|
return RefSubject.map(ref, (self) => BigDecimal.isGreaterThan(self, that));
|
|
@@ -363,7 +363,7 @@ export const isGreaterThan = dual(2, function isGreaterThan(ref, that) {
|
|
|
363
363
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
364
364
|
*
|
|
365
365
|
* @since 1.18.0
|
|
366
|
-
* @category
|
|
366
|
+
* @category Arithmetic queries
|
|
367
367
|
*/
|
|
368
368
|
export const equals = dual(2, function equals(ref, that) {
|
|
369
369
|
return RefSubject.map(ref, (self) => BigDecimal.equals(self, that));
|
|
@@ -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 RefBigInt<in out E = never, out R = never> extends RefSubject.RefSubject<bigint, E, R> {
|
|
27
27
|
}
|
|
@@ -52,7 +52,7 @@ export interface RefBigInt<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: bigint | Effect.Effect<bigint, E, R> | Fx.Fx<bigint, E, R>, eq?: Equivalence<bigint>): Effect.Effect<RefBigInt<E>, never, R | Scope.Scope>;
|
|
58
58
|
/**
|
|
@@ -69,7 +69,7 @@ export declare function make<E = never, R = never>(initial: bigint | 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 Arithmetic queries
|
|
73
73
|
*/
|
|
74
74
|
export declare const add: {
|
|
75
75
|
(that: bigint): <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed<bigint, E, R>;
|
|
@@ -89,7 +89,7 @@ export declare const add: {
|
|
|
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 Arithmetic queries
|
|
93
93
|
*/
|
|
94
94
|
export declare const subtract: {
|
|
95
95
|
(that: bigint): <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed<bigint, E, R>;
|
|
@@ -109,7 +109,7 @@ export declare const subtract: {
|
|
|
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 Arithmetic queries
|
|
113
113
|
*/
|
|
114
114
|
export declare const multiply: {
|
|
115
115
|
(that: bigint): <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed<bigint, E, R>;
|
|
@@ -129,7 +129,7 @@ export declare const multiply: {
|
|
|
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 Arithmetic queries
|
|
133
133
|
*/
|
|
134
134
|
export declare const divide: {
|
|
135
135
|
(that: bigint): <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed<bigint | undefined, E, R>;
|
|
@@ -149,7 +149,7 @@ export declare const divide: {
|
|
|
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 Arithmetic queries
|
|
153
153
|
*/
|
|
154
154
|
export declare const mod: {
|
|
155
155
|
(that: bigint): <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed<bigint, E, R>;
|
|
@@ -169,7 +169,7 @@ export declare const mod: {
|
|
|
169
169
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
170
170
|
*
|
|
171
171
|
* @since 1.18.0
|
|
172
|
-
* @category
|
|
172
|
+
* @category Arithmetic queries
|
|
173
173
|
*/
|
|
174
174
|
export declare const abs: <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed<bigint, E, R>;
|
|
175
175
|
/**
|
|
@@ -186,7 +186,7 @@ export declare const abs: <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed<bi
|
|
|
186
186
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
187
187
|
*
|
|
188
188
|
* @since 1.18.0
|
|
189
|
-
* @category
|
|
189
|
+
* @category Arithmetic queries
|
|
190
190
|
*/
|
|
191
191
|
export declare const negate: <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed<bigint, E, R>;
|
|
192
192
|
/**
|
|
@@ -203,7 +203,7 @@ export declare const negate: <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed
|
|
|
203
203
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
204
204
|
*
|
|
205
205
|
* @since 1.18.0
|
|
206
|
-
* @category
|
|
206
|
+
* @category State predicates
|
|
207
207
|
*/
|
|
208
208
|
export declare const isZero: <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
209
209
|
/**
|
|
@@ -220,7 +220,7 @@ export declare const isZero: <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed
|
|
|
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 declare const isNegative: <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
226
226
|
/**
|
|
@@ -237,7 +237,7 @@ export declare const isNegative: <E, R>(ref: RefBigInt<E, R>) => RefSubject.Comp
|
|
|
237
237
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
238
238
|
*
|
|
239
239
|
* @since 1.18.0
|
|
240
|
-
* @category
|
|
240
|
+
* @category State predicates
|
|
241
241
|
*/
|
|
242
242
|
export declare const isPositive: <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
243
243
|
/**
|
|
@@ -254,7 +254,7 @@ export declare const isPositive: <E, R>(ref: RefBigInt<E, R>) => RefSubject.Comp
|
|
|
254
254
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
255
255
|
*
|
|
256
256
|
* @since 1.18.0
|
|
257
|
-
* @category
|
|
257
|
+
* @category State predicates
|
|
258
258
|
*/
|
|
259
259
|
export declare const isLessThan: {
|
|
260
260
|
(that: bigint): <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -274,7 +274,7 @@ export declare const isLessThan: {
|
|
|
274
274
|
* Fx observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
275
275
|
*
|
|
276
276
|
* @since 1.18.0
|
|
277
|
-
* @category
|
|
277
|
+
* @category State predicates
|
|
278
278
|
*/
|
|
279
279
|
export declare const isGreaterThan: {
|
|
280
280
|
(that: bigint): <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -294,7 +294,7 @@ export declare const isGreaterThan: {
|
|
|
294
294
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
295
295
|
*
|
|
296
296
|
* @since 1.18.0
|
|
297
|
-
* @category
|
|
297
|
+
* @category Arithmetic queries
|
|
298
298
|
*/
|
|
299
299
|
export declare const equals: {
|
|
300
300
|
(that: bigint): <E, R>(ref: RefBigInt<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -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 });
|
|
@@ -55,7 +55,7 @@ export function make(initial, eq = Equivalence_.strictEqual()) {
|
|
|
55
55
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
56
56
|
*
|
|
57
57
|
* @since 1.18.0
|
|
58
|
-
* @category
|
|
58
|
+
* @category Arithmetic queries
|
|
59
59
|
*/
|
|
60
60
|
export const add = dual(2, function add(ref, that) {
|
|
61
61
|
return RefSubject.map(ref, (self) => BigInt_.sum(self, that));
|
|
@@ -74,7 +74,7 @@ export const add = dual(2, function add(ref, that) {
|
|
|
74
74
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
75
75
|
*
|
|
76
76
|
* @since 1.18.0
|
|
77
|
-
* @category
|
|
77
|
+
* @category Arithmetic queries
|
|
78
78
|
*/
|
|
79
79
|
export const subtract = dual(2, function subtract(ref, that) {
|
|
80
80
|
return RefSubject.map(ref, (self) => BigInt_.subtract(self, that));
|
|
@@ -93,7 +93,7 @@ export const subtract = dual(2, function subtract(ref, that) {
|
|
|
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 Arithmetic queries
|
|
97
97
|
*/
|
|
98
98
|
export const multiply = dual(2, function multiply(ref, that) {
|
|
99
99
|
return RefSubject.map(ref, (self) => BigInt_.multiply(self, that));
|
|
@@ -112,7 +112,7 @@ export const multiply = dual(2, function multiply(ref, that) {
|
|
|
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 Arithmetic queries
|
|
116
116
|
*/
|
|
117
117
|
export const divide = dual(2, function divide(ref, that) {
|
|
118
118
|
return RefSubject.map(ref, (self) => BigInt_.divide(self, that));
|
|
@@ -131,7 +131,7 @@ export const divide = dual(2, function divide(ref, that) {
|
|
|
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 Arithmetic queries
|
|
135
135
|
*/
|
|
136
136
|
export const mod = dual(2, function mod(ref, that) {
|
|
137
137
|
return RefSubject.map(ref, (self) => BigInt_.remainder(self, that));
|
|
@@ -150,7 +150,7 @@ export const mod = dual(2, function mod(ref, that) {
|
|
|
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 Arithmetic queries
|
|
154
154
|
*/
|
|
155
155
|
export const abs = (ref) => RefSubject.map(ref, BigInt_.abs);
|
|
156
156
|
/**
|
|
@@ -167,7 +167,7 @@ export const abs = (ref) => RefSubject.map(ref, BigInt_.abs);
|
|
|
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 Arithmetic queries
|
|
171
171
|
*/
|
|
172
172
|
export const negate = (ref) => RefSubject.map(ref, (self) => -self);
|
|
173
173
|
/**
|
|
@@ -184,7 +184,7 @@ export const negate = (ref) => RefSubject.map(ref, (self) => -self);
|
|
|
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 isZero = (ref) => RefSubject.map(ref, (self) => self === BigInt_.BigInt(0));
|
|
190
190
|
/**
|
|
@@ -201,7 +201,7 @@ export const isZero = (ref) => RefSubject.map(ref, (self) => self === BigInt_.Bi
|
|
|
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 isNegative = (ref) => RefSubject.map(ref, (self) => self < BigInt_.BigInt(0));
|
|
207
207
|
/**
|
|
@@ -218,7 +218,7 @@ export const isNegative = (ref) => RefSubject.map(ref, (self) => self < BigInt_.
|
|
|
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 State predicates
|
|
222
222
|
*/
|
|
223
223
|
export const isPositive = (ref) => RefSubject.map(ref, (self) => self > BigInt_.BigInt(0));
|
|
224
224
|
/**
|
|
@@ -235,7 +235,7 @@ export const isPositive = (ref) => RefSubject.map(ref, (self) => self > BigInt_.
|
|
|
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 State predicates
|
|
239
239
|
*/
|
|
240
240
|
export const isLessThan = dual(2, function isLessThan(ref, that) {
|
|
241
241
|
return RefSubject.map(ref, (self) => BigInt_.isLessThan(self, that));
|
|
@@ -254,7 +254,7 @@ export const isLessThan = dual(2, function isLessThan(ref, that) {
|
|
|
254
254
|
* Fx observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
255
255
|
*
|
|
256
256
|
* @since 1.18.0
|
|
257
|
-
* @category
|
|
257
|
+
* @category State predicates
|
|
258
258
|
*/
|
|
259
259
|
export const isGreaterThan = dual(2, function isGreaterThan(ref, that) {
|
|
260
260
|
return RefSubject.map(ref, (self) => BigInt_.isGreaterThan(self, that));
|
|
@@ -273,7 +273,7 @@ export const isGreaterThan = dual(2, function isGreaterThan(ref, that) {
|
|
|
273
273
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
274
274
|
*
|
|
275
275
|
* @since 1.18.0
|
|
276
|
-
* @category
|
|
276
|
+
* @category Arithmetic queries
|
|
277
277
|
*/
|
|
278
278
|
export const equals = dual(2, function equals(ref, that) {
|
|
279
279
|
return RefSubject.map(ref, (self) => self === that);
|