@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
|
* 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 RefDateTime<in out E = never, out R = never> extends RefSubject.RefSubject<DateTime.DateTime, E, R> {
|
|
28
28
|
}
|
|
@@ -53,7 +53,7 @@ export interface RefDateTime<in out E = never, out R = never> extends RefSubject
|
|
|
53
53
|
* ```
|
|
54
54
|
*
|
|
55
55
|
* @since 1.18.0
|
|
56
|
-
* @category
|
|
56
|
+
* @category Constructors
|
|
57
57
|
*/
|
|
58
58
|
export declare function make<E = never, R = never>(initial: DateTime.DateTime | Effect.Effect<DateTime.DateTime, E, R> | Fx.Fx<DateTime.DateTime, E, R>): Effect.Effect<RefDateTime<E>, never, R | Scope.Scope>;
|
|
59
59
|
/**
|
|
@@ -70,7 +70,7 @@ export declare function make<E = never, R = never>(initial: DateTime.DateTime |
|
|
|
70
70
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
71
71
|
*
|
|
72
72
|
* @since 1.18.0
|
|
73
|
-
* @category
|
|
73
|
+
* @category Date arithmetic
|
|
74
74
|
*/
|
|
75
75
|
export declare const add: {
|
|
76
76
|
(parts: Partial<{
|
|
@@ -108,7 +108,7 @@ export declare const add: {
|
|
|
108
108
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
109
109
|
*
|
|
110
110
|
* @since 1.18.0
|
|
111
|
-
* @category
|
|
111
|
+
* @category Date arithmetic
|
|
112
112
|
*/
|
|
113
113
|
export declare const addDuration: {
|
|
114
114
|
(duration: Duration.Input): <E, R>(ref: RefDateTime<E, R>) => RefSubject.Computed<DateTime.DateTime, E, R>;
|
|
@@ -128,7 +128,7 @@ export declare const addDuration: {
|
|
|
128
128
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
129
129
|
*
|
|
130
130
|
* @since 1.18.0
|
|
131
|
-
* @category
|
|
131
|
+
* @category Date arithmetic
|
|
132
132
|
*/
|
|
133
133
|
export declare const subtract: {
|
|
134
134
|
(parts: Partial<{
|
|
@@ -166,7 +166,7 @@ export declare const subtract: {
|
|
|
166
166
|
* Fx observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
167
167
|
*
|
|
168
168
|
* @since 1.18.0
|
|
169
|
-
* @category
|
|
169
|
+
* @category Date arithmetic
|
|
170
170
|
*/
|
|
171
171
|
export declare const subtractDuration: {
|
|
172
172
|
(duration: Duration.Input): <E, R>(ref: RefDateTime<E, R>) => RefSubject.Computed<DateTime.DateTime, E, R>;
|
|
@@ -186,7 +186,7 @@ export declare const subtractDuration: {
|
|
|
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 Date formatting
|
|
190
190
|
*/
|
|
191
191
|
export declare const epochMillis: <E, R>(ref: RefDateTime<E, R>) => RefSubject.Computed<number, E, R>;
|
|
192
192
|
/**
|
|
@@ -203,7 +203,7 @@ export declare const epochMillis: <E, R>(ref: RefDateTime<E, R>) => RefSubject.C
|
|
|
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 Date formatting
|
|
207
207
|
*/
|
|
208
208
|
export declare const format: {
|
|
209
209
|
(options?: Intl.DateTimeFormatOptions & {
|
|
@@ -227,7 +227,7 @@ export declare const format: {
|
|
|
227
227
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
228
228
|
*
|
|
229
229
|
* @since 1.18.0
|
|
230
|
-
* @category
|
|
230
|
+
* @category State predicates
|
|
231
231
|
*/
|
|
232
232
|
export declare const isBefore: {
|
|
233
233
|
(that: DateTime.DateTime): <E, R>(ref: RefDateTime<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -247,7 +247,7 @@ export declare const isBefore: {
|
|
|
247
247
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
248
248
|
*
|
|
249
249
|
* @since 1.18.0
|
|
250
|
-
* @category
|
|
250
|
+
* @category State predicates
|
|
251
251
|
*/
|
|
252
252
|
export declare const isAfter: {
|
|
253
253
|
(that: DateTime.DateTime): <E, R>(ref: RefDateTime<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -267,7 +267,7 @@ export declare const isAfter: {
|
|
|
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 declare const isEqual: {
|
|
273
273
|
(that: DateTime.DateTime): <E, R>(ref: RefDateTime<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: DateTime.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 Date arithmetic
|
|
58
58
|
*/
|
|
59
59
|
export const add = dual(2, function add(ref, parts) {
|
|
60
60
|
return RefSubject.map(ref, (self) => DateTime.add(self, parts));
|
|
@@ -73,7 +73,7 @@ export const add = dual(2, function add(ref, parts) {
|
|
|
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 Date arithmetic
|
|
77
77
|
*/
|
|
78
78
|
export const addDuration = dual(2, function addDuration(ref, duration) {
|
|
79
79
|
return RefSubject.map(ref, (self) => DateTime.addDuration(self, duration));
|
|
@@ -92,7 +92,7 @@ export const addDuration = dual(2, function addDuration(ref, duration) {
|
|
|
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 Date arithmetic
|
|
96
96
|
*/
|
|
97
97
|
export const subtract = dual(2, function subtract(ref, parts) {
|
|
98
98
|
return RefSubject.map(ref, (self) => DateTime.subtract(self, parts));
|
|
@@ -111,7 +111,7 @@ export const subtract = dual(2, function subtract(ref, parts) {
|
|
|
111
111
|
* Fx observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
112
112
|
*
|
|
113
113
|
* @since 1.18.0
|
|
114
|
-
* @category
|
|
114
|
+
* @category Date arithmetic
|
|
115
115
|
*/
|
|
116
116
|
export const subtractDuration = dual(2, function subtractDuration(ref, duration) {
|
|
117
117
|
return RefSubject.map(ref, (self) => DateTime.subtractDuration(self, duration));
|
|
@@ -130,7 +130,7 @@ export const subtractDuration = dual(2, function subtractDuration(ref, duration)
|
|
|
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 Date formatting
|
|
134
134
|
*/
|
|
135
135
|
export const epochMillis = (ref) => RefSubject.map(ref, (self) => DateTime.toEpochMillis(self));
|
|
136
136
|
/**
|
|
@@ -147,7 +147,7 @@ export const epochMillis = (ref) => RefSubject.map(ref, (self) => DateTime.toEpo
|
|
|
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 Date formatting
|
|
151
151
|
*/
|
|
152
152
|
export const format = dual(2, function format(ref, options) {
|
|
153
153
|
return RefSubject.map(ref, (self) => DateTime.format(self, options));
|
|
@@ -166,7 +166,7 @@ export const format = dual(2, function format(ref, options) {
|
|
|
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 State predicates
|
|
170
170
|
*/
|
|
171
171
|
export const isBefore = dual(2, function isBefore(ref, that) {
|
|
172
172
|
return RefSubject.map(ref, (self) => DateTime.isLessThan(self, that));
|
|
@@ -185,7 +185,7 @@ export const isBefore = dual(2, function isBefore(ref, that) {
|
|
|
185
185
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
186
186
|
*
|
|
187
187
|
* @since 1.18.0
|
|
188
|
-
* @category
|
|
188
|
+
* @category State predicates
|
|
189
189
|
*/
|
|
190
190
|
export const isAfter = dual(2, function isAfter(ref, that) {
|
|
191
191
|
return RefSubject.map(ref, (self) => DateTime.isGreaterThan(self, that));
|
|
@@ -204,7 +204,7 @@ export const isAfter = dual(2, function isAfter(ref, that) {
|
|
|
204
204
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
205
205
|
*
|
|
206
206
|
* @since 1.18.0
|
|
207
|
-
* @category
|
|
207
|
+
* @category State predicates
|
|
208
208
|
*/
|
|
209
209
|
export const isEqual = dual(2, function isEqual(ref, that) {
|
|
210
210
|
return RefSubject.map(ref, (self) => DateTime.Equivalence(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 RefDuration<in out E = never, out R = never> extends RefSubject.RefSubject<Duration.Duration, E, R> {
|
|
27
27
|
}
|
|
@@ -52,7 +52,7 @@ export interface RefDuration<in out E = never, out R = never> extends RefSubject
|
|
|
52
52
|
* ```
|
|
53
53
|
*
|
|
54
54
|
* @since 1.18.0
|
|
55
|
-
* @category
|
|
55
|
+
* @category Constructors
|
|
56
56
|
*/
|
|
57
57
|
export declare function make<E = never, R = never>(initial: Duration.Duration | Effect.Effect<Duration.Duration, E, R> | Fx.Fx<Duration.Duration, E, R>): Effect.Effect<RefDuration<E>, never, R | Scope.Scope>;
|
|
58
58
|
/**
|
|
@@ -69,7 +69,7 @@ export declare function make<E = never, R = never>(initial: Duration.Duration |
|
|
|
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: Duration.Duration): <E, R>(ref: RefDuration<E, R>) => RefSubject.Computed<Duration.Duration, 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: Duration.Duration): <E, R>(ref: RefDuration<E, R>) => RefSubject.Computed<Duration.Duration, 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: number): <E, R>(ref: RefDuration<E, R>) => RefSubject.Computed<Duration.Duration, 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: number): <E, R>(ref: RefDuration<E, R>) => RefSubject.Computed<Duration.Duration | 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 State predicates
|
|
153
153
|
*/
|
|
154
154
|
export declare const isZero: <E, R>(ref: RefDuration<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
155
155
|
/**
|
|
@@ -166,7 +166,7 @@ export declare const isZero: <E, R>(ref: RefDuration<E, R>) => RefSubject.Comput
|
|
|
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 State predicates
|
|
170
170
|
*/
|
|
171
171
|
export declare const isLessThan: {
|
|
172
172
|
(that: Duration.Duration): <E, R>(ref: RefDuration<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -186,7 +186,7 @@ export declare const isLessThan: {
|
|
|
186
186
|
* Fx observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
187
187
|
*
|
|
188
188
|
* @since 1.18.0
|
|
189
|
-
* @category
|
|
189
|
+
* @category State predicates
|
|
190
190
|
*/
|
|
191
191
|
export declare const isGreaterThan: {
|
|
192
192
|
(that: Duration.Duration): <E, R>(ref: RefDuration<E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -206,7 +206,7 @@ export declare const isGreaterThan: {
|
|
|
206
206
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
207
207
|
*
|
|
208
208
|
* @since 1.18.0
|
|
209
|
-
* @category
|
|
209
|
+
* @category Unit conversions
|
|
210
210
|
*/
|
|
211
211
|
export declare const millis: <E, R>(ref: RefDuration<E, R>) => RefSubject.Computed<number, E, R>;
|
|
212
212
|
/**
|
|
@@ -223,7 +223,7 @@ export declare const millis: <E, R>(ref: RefDuration<E, R>) => RefSubject.Comput
|
|
|
223
223
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
224
224
|
*
|
|
225
225
|
* @since 1.18.0
|
|
226
|
-
* @category
|
|
226
|
+
* @category Unit conversions
|
|
227
227
|
*/
|
|
228
228
|
export declare const seconds: <E, R>(ref: RefDuration<E, R>) => RefSubject.Computed<number, E, R>;
|
|
229
229
|
/**
|
|
@@ -240,7 +240,7 @@ export declare const seconds: <E, R>(ref: RefDuration<E, R>) => RefSubject.Compu
|
|
|
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 Unit conversions
|
|
244
244
|
*/
|
|
245
245
|
export declare const minutes: <E, R>(ref: RefDuration<E, R>) => RefSubject.Computed<number, E, R>;
|
|
246
246
|
/**
|
|
@@ -257,7 +257,7 @@ export declare const minutes: <E, R>(ref: RefDuration<E, R>) => RefSubject.Compu
|
|
|
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 Unit conversions
|
|
261
261
|
*/
|
|
262
262
|
export declare const hours: <E, R>(ref: RefDuration<E, R>) => RefSubject.Computed<number, E, R>;
|
|
263
263
|
/**
|
|
@@ -274,7 +274,7 @@ export declare const hours: <E, R>(ref: RefDuration<E, R>) => RefSubject.Compute
|
|
|
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 Unit conversions
|
|
278
278
|
*/
|
|
279
279
|
export declare const days: <E, R>(ref: RefDuration<E, R>) => RefSubject.Computed<number, E, R>;
|
|
280
280
|
//# sourceMappingURL=RefDuration.d.ts.map
|
|
@@ -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: Duration.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) => Duration.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) => Duration.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) => Duration.times(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) => Duration.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 State predicates
|
|
134
134
|
*/
|
|
135
135
|
export const isZero = (ref) => RefSubject.map(ref, Duration.isZero);
|
|
136
136
|
/**
|
|
@@ -147,7 +147,7 @@ export const isZero = (ref) => RefSubject.map(ref, Duration.isZero);
|
|
|
147
147
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
148
148
|
*
|
|
149
149
|
* @since 1.18.0
|
|
150
|
-
* @category
|
|
150
|
+
* @category State predicates
|
|
151
151
|
*/
|
|
152
152
|
export const isLessThan = dual(2, function isLessThan(ref, that) {
|
|
153
153
|
return RefSubject.map(ref, (self) => Duration.isLessThan(self, that));
|
|
@@ -166,7 +166,7 @@ export const isLessThan = dual(2, function isLessThan(ref, that) {
|
|
|
166
166
|
* Fx observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
167
167
|
*
|
|
168
168
|
* @since 1.18.0
|
|
169
|
-
* @category
|
|
169
|
+
* @category State predicates
|
|
170
170
|
*/
|
|
171
171
|
export const isGreaterThan = dual(2, function isGreaterThan(ref, that) {
|
|
172
172
|
return RefSubject.map(ref, (self) => Duration.isGreaterThan(self, that));
|
|
@@ -185,7 +185,7 @@ export const isGreaterThan = dual(2, function isGreaterThan(ref, that) {
|
|
|
185
185
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
186
186
|
*
|
|
187
187
|
* @since 1.18.0
|
|
188
|
-
* @category
|
|
188
|
+
* @category Unit conversions
|
|
189
189
|
*/
|
|
190
190
|
export const millis = (ref) => RefSubject.map(ref, Duration.toMillis);
|
|
191
191
|
/**
|
|
@@ -202,7 +202,7 @@ export const millis = (ref) => RefSubject.map(ref, Duration.toMillis);
|
|
|
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 Unit conversions
|
|
206
206
|
*/
|
|
207
207
|
export const seconds = (ref) => RefSubject.map(ref, Duration.toSeconds);
|
|
208
208
|
/**
|
|
@@ -219,7 +219,7 @@ export const seconds = (ref) => RefSubject.map(ref, Duration.toSeconds);
|
|
|
219
219
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
220
220
|
*
|
|
221
221
|
* @since 1.18.0
|
|
222
|
-
* @category
|
|
222
|
+
* @category Unit conversions
|
|
223
223
|
*/
|
|
224
224
|
export const minutes = (ref) => RefSubject.map(ref, Duration.toMinutes);
|
|
225
225
|
/**
|
|
@@ -236,7 +236,7 @@ export const minutes = (ref) => RefSubject.map(ref, Duration.toMinutes);
|
|
|
236
236
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
237
237
|
*
|
|
238
238
|
* @since 1.18.0
|
|
239
|
-
* @category
|
|
239
|
+
* @category Unit conversions
|
|
240
240
|
*/
|
|
241
241
|
export const hours = (ref) => RefSubject.map(ref, Duration.toHours);
|
|
242
242
|
/**
|
|
@@ -253,6 +253,6 @@ export const hours = (ref) => RefSubject.map(ref, Duration.toHours);
|
|
|
253
253
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
254
254
|
*
|
|
255
255
|
* @since 1.18.0
|
|
256
|
-
* @category
|
|
256
|
+
* @category Unit conversions
|
|
257
257
|
*/
|
|
258
258
|
export const days = (ref) => RefSubject.map(ref, Duration.toDays);
|
|
@@ -21,7 +21,7 @@ import * as RefSubject from "./RefSubject.js";
|
|
|
21
21
|
* 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 RefGraph<in out N, in out E, T extends Graph.Kind = "directed", in out Err = never, out R = never> extends RefSubject.RefSubject<Graph.Graph<N, E, T>, Err, R> {
|
|
27
27
|
}
|
|
@@ -39,7 +39,7 @@ export interface RefGraph<in out N, in out E, T extends Graph.Kind = "directed",
|
|
|
39
39
|
* and cleanup; source failures and services stay on reads and pushes.
|
|
40
40
|
*
|
|
41
41
|
* @since 1.18.0
|
|
42
|
-
* @category
|
|
42
|
+
* @category Constructors
|
|
43
43
|
*/
|
|
44
44
|
export declare function make<N, E, T extends Graph.Kind, Err = never, R = never>(initial: Graph.Graph<N, E, T> | Effect.Effect<Graph.Graph<N, E, T>, Err, R> | Fx.Fx<Graph.Graph<N, E, T>, Err, R>): Effect.Effect<RefGraph<N, E, T, Err>, never, R | Scope.Scope>;
|
|
45
45
|
/**
|
|
@@ -56,7 +56,7 @@ export declare function make<N, E, T extends Graph.Kind, Err = never, R = never>
|
|
|
56
56
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
57
57
|
*
|
|
58
58
|
* @since 1.18.0
|
|
59
|
-
* @category
|
|
59
|
+
* @category Constructors
|
|
60
60
|
*/
|
|
61
61
|
export declare function directed<N, E, Err = never, R = never>(): Effect.Effect<RefGraph<N, E, "directed", Err>, never, R | Scope.Scope>;
|
|
62
62
|
/**
|
|
@@ -73,7 +73,7 @@ export declare function directed<N, E, Err = never, R = never>(): Effect.Effect<
|
|
|
73
73
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
74
74
|
*
|
|
75
75
|
* @since 1.18.0
|
|
76
|
-
* @category
|
|
76
|
+
* @category Constructors
|
|
77
77
|
*/
|
|
78
78
|
export declare function undirected<N, E, Err = never, R = never>(): Effect.Effect<RefGraph<N, E, "undirected", Err>, never, R | Scope.Scope>;
|
|
79
79
|
/**
|
|
@@ -90,7 +90,7 @@ export declare function undirected<N, E, Err = never, R = never>(): Effect.Effec
|
|
|
90
90
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
91
91
|
*
|
|
92
92
|
* @since 1.18.0
|
|
93
|
-
* @category
|
|
93
|
+
* @category State updates
|
|
94
94
|
*/
|
|
95
95
|
export declare const addNode: {
|
|
96
96
|
<N>(data: N): <E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;
|
|
@@ -110,7 +110,7 @@ export declare const addNode: {
|
|
|
110
110
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
111
111
|
*
|
|
112
112
|
* @since 1.18.0
|
|
113
|
-
* @category
|
|
113
|
+
* @category State updates
|
|
114
114
|
*/
|
|
115
115
|
export declare const removeNode: {
|
|
116
116
|
(nodeIndex: Graph.NodeIndex): <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;
|
|
@@ -130,7 +130,7 @@ export declare const removeNode: {
|
|
|
130
130
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
131
131
|
*
|
|
132
132
|
* @since 1.18.0
|
|
133
|
-
* @category
|
|
133
|
+
* @category State updates
|
|
134
134
|
*/
|
|
135
135
|
export declare const updateNode: {
|
|
136
136
|
<N>(nodeIndex: Graph.NodeIndex, f: (data: N) => N): <E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;
|
|
@@ -150,7 +150,7 @@ export declare const updateNode: {
|
|
|
150
150
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
151
151
|
*
|
|
152
152
|
* @since 1.18.0
|
|
153
|
-
* @category
|
|
153
|
+
* @category State updates
|
|
154
154
|
*/
|
|
155
155
|
export declare const addEdge: {
|
|
156
156
|
<E>(source: Graph.NodeIndex, target: Graph.NodeIndex, data: E): <N, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;
|
|
@@ -170,7 +170,7 @@ export declare const addEdge: {
|
|
|
170
170
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
171
171
|
*
|
|
172
172
|
* @since 1.18.0
|
|
173
|
-
* @category
|
|
173
|
+
* @category State updates
|
|
174
174
|
*/
|
|
175
175
|
export declare const removeEdge: {
|
|
176
176
|
(edgeIndex: Graph.EdgeIndex): <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;
|
|
@@ -190,7 +190,7 @@ export declare const removeEdge: {
|
|
|
190
190
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
191
191
|
*
|
|
192
192
|
* @since 1.18.0
|
|
193
|
-
* @category
|
|
193
|
+
* @category State updates
|
|
194
194
|
*/
|
|
195
195
|
export declare const updateEdge: {
|
|
196
196
|
<E>(edgeIndex: Graph.EdgeIndex, f: (data: E) => E): <N, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;
|
|
@@ -209,7 +209,7 @@ export declare const updateEdge: {
|
|
|
209
209
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
210
210
|
* acquires no resource. It returns the committed graph and retains the ref's E and R channels.
|
|
211
211
|
* @since 1.18.0
|
|
212
|
-
* @category
|
|
212
|
+
* @category State updates
|
|
213
213
|
*/
|
|
214
214
|
export declare const mapNodes: {
|
|
215
215
|
<N>(f: (data: N) => N): <E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;
|
|
@@ -228,7 +228,7 @@ export declare const mapNodes: {
|
|
|
228
228
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
229
229
|
* acquires no resource. It returns the committed graph and retains the ref's E and R channels.
|
|
230
230
|
* @since 1.18.0
|
|
231
|
-
* @category
|
|
231
|
+
* @category State updates
|
|
232
232
|
*/
|
|
233
233
|
export declare const mapEdges: {
|
|
234
234
|
<E>(f: (data: E) => E): <N, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;
|
|
@@ -247,7 +247,7 @@ export declare const mapEdges: {
|
|
|
247
247
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
248
248
|
* acquires no resource. It returns the committed graph and retains the ref's E and R channels.
|
|
249
249
|
* @since 1.18.0
|
|
250
|
-
* @category
|
|
250
|
+
* @category State updates
|
|
251
251
|
*/
|
|
252
252
|
export declare const filterNodes: {
|
|
253
253
|
<N>(predicate: (data: N) => boolean): <E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;
|
|
@@ -266,7 +266,7 @@ export declare const filterNodes: {
|
|
|
266
266
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
267
267
|
* acquires no resource. It returns the committed graph and retains the ref's E and R channels.
|
|
268
268
|
* @since 1.18.0
|
|
269
|
-
* @category
|
|
269
|
+
* @category State updates
|
|
270
270
|
*/
|
|
271
271
|
export declare const filterEdges: {
|
|
272
272
|
<E>(predicate: (data: E) => boolean): <N, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;
|
|
@@ -286,7 +286,7 @@ export declare const filterEdges: {
|
|
|
286
286
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
287
287
|
*
|
|
288
288
|
* @since 1.18.0
|
|
289
|
-
* @category
|
|
289
|
+
* @category State updates
|
|
290
290
|
*/
|
|
291
291
|
export declare const reverse: <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => Effect.Effect<Graph.Graph<N, E, T>, Err, R>;
|
|
292
292
|
/**
|
|
@@ -302,7 +302,7 @@ export declare const reverse: <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph
|
|
|
302
302
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
303
303
|
*
|
|
304
304
|
* @since 1.18.0
|
|
305
|
-
* @category
|
|
305
|
+
* @category Derived queries
|
|
306
306
|
*/
|
|
307
307
|
export declare const nodeCount: <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => RefSubject.Computed<number, Err, R>;
|
|
308
308
|
/**
|
|
@@ -318,7 +318,7 @@ export declare const nodeCount: <N, E, T extends Graph.Kind, Err, R>(ref: RefGra
|
|
|
318
318
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
319
319
|
*
|
|
320
320
|
* @since 1.18.0
|
|
321
|
-
* @category
|
|
321
|
+
* @category Derived queries
|
|
322
322
|
*/
|
|
323
323
|
export declare const edgeCount: <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => RefSubject.Computed<number, Err, R>;
|
|
324
324
|
/**
|
|
@@ -335,7 +335,7 @@ export declare const edgeCount: <N, E, T extends Graph.Kind, Err, R>(ref: RefGra
|
|
|
335
335
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
336
336
|
*
|
|
337
337
|
* @since 1.18.0
|
|
338
|
-
* @category
|
|
338
|
+
* @category State predicates
|
|
339
339
|
*/
|
|
340
340
|
export declare const hasNode: {
|
|
341
341
|
(nodeIndex: Graph.NodeIndex): <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => RefSubject.Computed<boolean, Err, R>;
|
|
@@ -355,7 +355,7 @@ export declare const hasNode: {
|
|
|
355
355
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
356
356
|
*
|
|
357
357
|
* @since 1.18.0
|
|
358
|
-
* @category
|
|
358
|
+
* @category State predicates
|
|
359
359
|
*/
|
|
360
360
|
export declare const hasEdge: {
|
|
361
361
|
(source: Graph.NodeIndex, target: Graph.NodeIndex): <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => RefSubject.Computed<boolean, Err, R>;
|
|
@@ -375,7 +375,7 @@ export declare const hasEdge: {
|
|
|
375
375
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
376
376
|
*
|
|
377
377
|
* @since 1.18.0
|
|
378
|
-
* @category
|
|
378
|
+
* @category Derived queries
|
|
379
379
|
*/
|
|
380
380
|
export declare const neighbors: {
|
|
381
381
|
(nodeIndex: Graph.NodeIndex): <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => RefSubject.Computed<Array<Graph.NodeIndex>, Err, R>;
|
|
@@ -395,7 +395,7 @@ export declare const neighbors: {
|
|
|
395
395
|
* once; Fx observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
396
396
|
*
|
|
397
397
|
* @since 1.18.0
|
|
398
|
-
* @category
|
|
398
|
+
* @category Derived queries
|
|
399
399
|
*/
|
|
400
400
|
export declare const neighborsDirected: {
|
|
401
401
|
(nodeIndex: Graph.NodeIndex, direction: Graph.Direction): <N, E, Err, R>(ref: RefGraph<N, E, "directed", Err, R>) => RefSubject.Computed<Array<Graph.NodeIndex>, Err, R>;
|
|
@@ -415,7 +415,7 @@ export declare const neighborsDirected: {
|
|
|
415
415
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
416
416
|
*
|
|
417
417
|
* @since 1.18.0
|
|
418
|
-
* @category
|
|
418
|
+
* @category State predicates
|
|
419
419
|
*/
|
|
420
420
|
export declare const isAcyclic: <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => RefSubject.Computed<boolean, Err, R>;
|
|
421
421
|
/**
|
|
@@ -432,7 +432,7 @@ export declare const isAcyclic: <N, E, T extends Graph.Kind, Err, R>(ref: RefGra
|
|
|
432
432
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
433
433
|
*
|
|
434
434
|
* @since 1.18.0
|
|
435
|
-
* @category
|
|
435
|
+
* @category State predicates
|
|
436
436
|
*/
|
|
437
437
|
export declare const isBipartite: <N, E, Err, R>(ref: RefGraph<N, E, "undirected", Err, R>) => RefSubject.Computed<boolean, Err, R>;
|
|
438
438
|
/**
|
|
@@ -449,7 +449,7 @@ export declare const isBipartite: <N, E, Err, R>(ref: RefGraph<N, E, "undirected
|
|
|
449
449
|
* once; Fx observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
450
450
|
*
|
|
451
451
|
* @since 1.18.0
|
|
452
|
-
* @category
|
|
452
|
+
* @category Derived queries
|
|
453
453
|
*/
|
|
454
454
|
export declare const connectedComponents: <N, E, Err, R>(ref: RefGraph<N, E, "undirected", Err, R>) => RefSubject.Computed<Array<Array<Graph.NodeIndex>>, Err, R>;
|
|
455
455
|
/**
|
|
@@ -467,7 +467,7 @@ export declare const connectedComponents: <N, E, Err, R>(ref: RefGraph<N, E, "un
|
|
|
467
467
|
* cleanup.
|
|
468
468
|
*
|
|
469
469
|
* @since 1.18.0
|
|
470
|
-
* @category
|
|
470
|
+
* @category Derived queries
|
|
471
471
|
*/
|
|
472
472
|
export declare const stronglyConnectedComponents: <N, E, Err, R>(ref: RefGraph<N, E, "directed", Err, R>) => RefSubject.Computed<Array<Array<Graph.NodeIndex>>, Err, R>;
|
|
473
473
|
/**
|
|
@@ -484,7 +484,7 @@ export declare const stronglyConnectedComponents: <N, E, Err, R>(ref: RefGraph<N
|
|
|
484
484
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
485
485
|
*
|
|
486
486
|
* @since 1.18.0
|
|
487
|
-
* @category
|
|
487
|
+
* @category Optional queries
|
|
488
488
|
*/
|
|
489
489
|
export declare const getNode: {
|
|
490
490
|
(nodeIndex: Graph.NodeIndex): <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => RefSubject.Filtered<N, Err, R>;
|
|
@@ -504,7 +504,7 @@ export declare const getNode: {
|
|
|
504
504
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
505
505
|
*
|
|
506
506
|
* @since 1.18.0
|
|
507
|
-
* @category
|
|
507
|
+
* @category Optional queries
|
|
508
508
|
*/
|
|
509
509
|
export declare const getEdge: {
|
|
510
510
|
(edgeIndex: Graph.EdgeIndex): <N, E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => RefSubject.Filtered<Graph.Edge<E>, Err, R>;
|
|
@@ -524,7 +524,7 @@ export declare const getEdge: {
|
|
|
524
524
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
525
525
|
*
|
|
526
526
|
* @since 1.18.0
|
|
527
|
-
* @category
|
|
527
|
+
* @category Optional queries
|
|
528
528
|
*/
|
|
529
529
|
export declare const findNode: {
|
|
530
530
|
<N>(predicate: (data: N) => boolean): <E, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => RefSubject.Filtered<Graph.NodeIndex, Err, R>;
|
|
@@ -544,7 +544,7 @@ export declare const findNode: {
|
|
|
544
544
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
545
545
|
*
|
|
546
546
|
* @since 1.18.0
|
|
547
|
-
* @category
|
|
547
|
+
* @category Optional queries
|
|
548
548
|
*/
|
|
549
549
|
export declare const findEdge: {
|
|
550
550
|
<E>(predicate: (edge: E) => boolean): <N, T extends Graph.Kind, Err, R>(ref: RefGraph<N, E, T, Err, R>) => RefSubject.Filtered<Graph.EdgeIndex, Err, R>;
|