effect 4.0.0-beta.73 → 4.0.0-beta.74
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/Array.d.ts +16 -16
- package/dist/Array.js +4 -4
- package/dist/Boolean.d.ts +2 -2
- package/dist/Boolean.js +2 -2
- package/dist/Channel.d.ts +63 -63
- package/dist/Channel.js +25 -25
- package/dist/Chunk.d.ts +17 -17
- package/dist/Chunk.js +5 -5
- package/dist/Context.d.ts +3 -3
- package/dist/Context.js +1 -1
- package/dist/Cron.d.ts +4 -4
- package/dist/Cron.js +4 -4
- package/dist/Deferred.d.ts +37 -37
- package/dist/Deferred.js +13 -13
- package/dist/Duration.d.ts +6 -6
- package/dist/Duration.js +2 -2
- package/dist/Effect.d.ts +58 -58
- package/dist/Effect.js +39 -39
- package/dist/Equal.d.ts +2 -2
- package/dist/Equal.js +2 -2
- package/dist/Equivalence.d.ts +1 -1
- package/dist/Equivalence.js +1 -1
- package/dist/ExecutionPlan.d.ts +2 -2
- package/dist/ExecutionPlan.js +1 -1
- package/dist/FileSystem.d.ts +6 -6
- package/dist/FileSystem.js +2 -2
- package/dist/Function.d.ts +5 -5
- package/dist/Function.js +5 -5
- package/dist/Graph.d.ts +11 -11
- package/dist/Graph.js +5 -5
- package/dist/HKT.d.ts +1 -1
- package/dist/HashMap.d.ts +3 -3
- package/dist/HashSet.d.ts +1 -1
- package/dist/Iterable.d.ts +15 -15
- package/dist/Iterable.js +5 -5
- package/dist/Layer.d.ts +16 -16
- package/dist/Layer.js +5 -5
- package/dist/Logger.d.ts +5 -5
- package/dist/Logger.js +4 -4
- package/dist/ManagedRuntime.d.ts +2 -2
- package/dist/Match.d.ts +20 -20
- package/dist/Match.js +16 -16
- package/dist/Metric.d.ts +16 -16
- package/dist/Metric.js +3 -3
- package/dist/Option.d.ts +36 -36
- package/dist/Option.js +17 -17
- package/dist/Order.d.ts +1 -1
- package/dist/Order.js +1 -1
- package/dist/Path.d.ts +1 -1
- package/dist/Path.js +1 -1
- package/dist/Pipeable.d.ts +1 -1
- package/dist/Pipeable.js +1 -1
- package/dist/Predicate.d.ts +5 -5
- package/dist/PubSub.d.ts +9 -9
- package/dist/PubSub.js +5 -5
- package/dist/Queue.d.ts +24 -24
- package/dist/Queue.js +20 -20
- package/dist/Record.d.ts +15 -15
- package/dist/Record.js +5 -5
- package/dist/Redacted.d.ts +2 -2
- package/dist/Redacted.js +1 -1
- package/dist/Ref.d.ts +6 -6
- package/dist/Ref.js +6 -6
- package/dist/RegExp.d.ts +1 -1
- package/dist/RegExp.js +1 -1
- package/dist/Request.d.ts +4 -4
- package/dist/RequestResolver.d.ts +6 -6
- package/dist/RequestResolver.js +2 -2
- package/dist/Resource.d.ts +1 -1
- package/dist/Resource.js +1 -1
- package/dist/Result.d.ts +18 -18
- package/dist/Result.js +11 -11
- package/dist/Schedule.d.ts +44 -44
- package/dist/Schedule.js +18 -18
- package/dist/Schema.d.ts +177 -459
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +25 -25
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +1 -1
- package/dist/SchemaGetter.d.ts +13 -13
- package/dist/SchemaGetter.js +12 -12
- package/dist/SchemaParser.d.ts +3 -3
- package/dist/SchemaParser.js +3 -3
- package/dist/Scope.d.ts +1 -1
- package/dist/Scope.js +1 -1
- package/dist/Sink.d.ts +5 -5
- package/dist/Sink.js +3 -3
- package/dist/Stream.d.ts +55 -55
- package/dist/Stream.js +21 -21
- package/dist/String.d.ts +5 -5
- package/dist/String.js +3 -3
- package/dist/Struct.d.ts +8 -8
- package/dist/Struct.js +3 -3
- package/dist/SynchronizedRef.d.ts +57 -57
- package/dist/SynchronizedRef.js +19 -19
- package/dist/Terminal.d.ts +1 -1
- package/dist/Terminal.js +1 -1
- package/dist/Tracer.d.ts +5 -5
- package/dist/Tracer.js +2 -2
- package/dist/Tuple.d.ts +14 -14
- package/dist/Tuple.js +6 -6
- package/dist/TxHashMap.d.ts +3 -3
- package/dist/TxHashSet.d.ts +1 -1
- package/dist/Unify.d.ts +7 -7
- package/dist/Unify.js +1 -1
- package/dist/testing/TestClock.d.ts +5 -5
- package/dist/testing/TestClock.js +4 -4
- package/dist/testing/TestConsole.d.ts +3 -3
- package/dist/testing/TestConsole.js +3 -3
- package/dist/unstable/ai/Chat.d.ts +2 -2
- package/dist/unstable/ai/Chat.js +2 -2
- package/dist/unstable/ai/EmbeddingModel.d.ts +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +2 -2
- package/dist/unstable/ai/IdGenerator.js +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +4 -4
- package/dist/unstable/ai/LanguageModel.js +1 -1
- package/dist/unstable/ai/Prompt.d.ts +15 -15
- package/dist/unstable/ai/Prompt.js +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +5 -5
- package/dist/unstable/ai/Telemetry.js +2 -2
- package/dist/unstable/ai/Tokenizer.d.ts +1 -1
- package/dist/unstable/ai/Tokenizer.js +1 -1
- package/dist/unstable/ai/Tool.d.ts +6 -6
- package/dist/unstable/ai/Tool.js +6 -6
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +1 -1
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +1 -1
- package/dist/unstable/cli/Primitive.d.ts +3 -3
- package/dist/unstable/cli/Primitive.js +1 -1
- package/dist/unstable/cli/Prompt.d.ts +11 -11
- package/dist/unstable/cli/internal/parser.js +145 -10
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +1 -1
- package/dist/unstable/cluster/Entity.js +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +2 -2
- package/dist/unstable/cluster/HttpRunner.js +2 -2
- package/dist/unstable/cluster/K8sHttpClient.d.ts +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +1 -1
- package/dist/unstable/cluster/Runners.d.ts +1 -1
- package/dist/unstable/cluster/Runners.js +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +1 -1
- package/dist/unstable/cluster/Sharding.js +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +5 -5
- package/dist/unstable/cluster/Snowflake.js +5 -5
- package/dist/unstable/devtools/DevToolsClient.d.ts +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +1 -1
- package/dist/unstable/eventlog/EventLog.js +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +3 -3
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +3 -3
- package/dist/unstable/http/Cookies.d.ts +1 -1
- package/dist/unstable/http/Etag.d.ts +1 -1
- package/dist/unstable/http/Etag.js +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +2 -2
- package/dist/unstable/http/FetchHttpClient.js +2 -2
- package/dist/unstable/http/HttpClient.d.ts +1 -1
- package/dist/unstable/http/HttpClient.js +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +2 -2
- package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
- package/dist/unstable/http/HttpMiddleware.js +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +1 -1
- package/dist/unstable/http/HttpPlatform.js +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +4 -4
- package/dist/unstable/http/HttpRouter.js +4 -4
- package/dist/unstable/http/HttpServerResponse.d.ts +3 -3
- package/dist/unstable/http/Url.d.ts +33 -33
- package/dist/unstable/http/Url.js +11 -11
- package/dist/unstable/httpapi/HttpApi.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApi.js +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
- package/dist/unstable/httpapi/HttpApiError.js +13 -13
- package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -4
- package/dist/unstable/observability/PrometheusMetrics.js +2 -2
- package/dist/unstable/persistence/KeyValueStore.d.ts +3 -3
- package/dist/unstable/persistence/KeyValueStore.js +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +2 -2
- package/dist/unstable/persistence/Persistable.js +2 -2
- package/dist/unstable/persistence/PersistedQueue.d.ts +8 -8
- package/dist/unstable/persistence/PersistedQueue.js +8 -8
- package/dist/unstable/persistence/RateLimiter.d.ts +1 -1
- package/dist/unstable/persistence/RateLimiter.js +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +5 -5
- package/dist/unstable/process/ChildProcess.js +2 -2
- package/dist/unstable/reactivity/AsyncResult.d.ts +4 -4
- package/dist/unstable/reactivity/AsyncResult.js +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +1 -1
- package/dist/unstable/reactivity/Atom.js +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +1 -1
- package/dist/unstable/reactivity/Reactivity.js +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +5 -5
- package/dist/unstable/rpc/Rpc.js +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +3 -3
- package/dist/unstable/rpc/RpcSchema.js +2 -2
- package/dist/unstable/schema/Model.d.ts +2 -2
- package/dist/unstable/schema/Model.js +1 -1
- package/dist/unstable/socket/Socket.d.ts +3 -3
- package/dist/unstable/socket/Socket.js +3 -3
- package/dist/unstable/socket/SocketServer.d.ts +1 -1
- package/dist/unstable/socket/SocketServer.js +1 -1
- package/dist/unstable/sql/Migrator.d.ts +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +3 -3
- package/dist/unstable/sql/SqlClient.js +2 -2
- package/dist/unstable/sql/SqlConnection.d.ts +1 -1
- package/dist/unstable/sql/SqlConnection.js +1 -1
- package/dist/unstable/sql/Statement.d.ts +2 -2
- package/dist/unstable/sql/Statement.js +2 -2
- package/dist/unstable/workers/Transferable.d.ts +1 -1
- package/dist/unstable/workers/Transferable.js +1 -1
- package/dist/unstable/workers/Worker.d.ts +1 -1
- package/dist/unstable/workers/Worker.js +1 -1
- package/dist/unstable/workflow/Activity.d.ts +1 -1
- package/dist/unstable/workflow/Activity.js +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +1 -1
- package/package.json +1 -1
- package/src/Array.ts +16 -16
- package/src/Boolean.ts +2 -2
- package/src/Channel.ts +67 -67
- package/src/Chunk.ts +18 -18
- package/src/Context.ts +4 -4
- package/src/Cron.ts +4 -4
- package/src/Deferred.ts +37 -37
- package/src/Duration.ts +6 -6
- package/src/Effect.ts +58 -58
- package/src/Equal.ts +2 -2
- package/src/Equivalence.ts +1 -1
- package/src/ExecutionPlan.ts +2 -2
- package/src/FileSystem.ts +6 -6
- package/src/Function.ts +5 -5
- package/src/Graph.ts +11 -11
- package/src/HKT.ts +1 -1
- package/src/HashMap.ts +3 -3
- package/src/HashSet.ts +1 -1
- package/src/Iterable.ts +15 -15
- package/src/Layer.ts +16 -16
- package/src/Logger.ts +7 -7
- package/src/ManagedRuntime.ts +2 -2
- package/src/Match.ts +20 -20
- package/src/Metric.ts +20 -20
- package/src/Option.ts +36 -36
- package/src/Order.ts +1 -1
- package/src/Path.ts +1 -1
- package/src/Pipeable.ts +1 -1
- package/src/Predicate.ts +5 -5
- package/src/PubSub.ts +9 -9
- package/src/Queue.ts +24 -24
- package/src/Record.ts +15 -15
- package/src/Redacted.ts +2 -2
- package/src/Ref.ts +18 -18
- package/src/RegExp.ts +1 -1
- package/src/Request.ts +4 -4
- package/src/RequestResolver.ts +8 -8
- package/src/Resource.ts +1 -1
- package/src/Result.ts +18 -18
- package/src/Schedule.ts +45 -45
- package/src/Schema.ts +177 -459
- package/src/SchemaAST.ts +1 -1
- package/src/SchemaGetter.ts +13 -13
- package/src/SchemaParser.ts +3 -3
- package/src/Scope.ts +1 -1
- package/src/Sink.ts +5 -5
- package/src/Stream.ts +57 -57
- package/src/String.ts +5 -5
- package/src/Struct.ts +8 -8
- package/src/SynchronizedRef.ts +57 -57
- package/src/Terminal.ts +1 -1
- package/src/Tracer.ts +5 -5
- package/src/Tuple.ts +14 -14
- package/src/TxHashMap.ts +3 -3
- package/src/TxHashSet.ts +1 -1
- package/src/Unify.ts +7 -7
- package/src/testing/TestClock.ts +5 -5
- package/src/testing/TestConsole.ts +3 -3
- package/src/unstable/ai/Chat.ts +2 -2
- package/src/unstable/ai/EmbeddingModel.ts +1 -1
- package/src/unstable/ai/IdGenerator.ts +2 -2
- package/src/unstable/ai/LanguageModel.ts +4 -4
- package/src/unstable/ai/Prompt.ts +15 -15
- package/src/unstable/ai/Telemetry.ts +5 -5
- package/src/unstable/ai/Tokenizer.ts +1 -1
- package/src/unstable/ai/Tool.ts +6 -6
- package/src/unstable/cli/Command.ts +5 -1
- package/src/unstable/cli/Param.ts +1 -1
- package/src/unstable/cli/Primitive.ts +3 -3
- package/src/unstable/cli/Prompt.ts +11 -11
- package/src/unstable/cli/internal/parser.ts +204 -10
- package/src/unstable/cluster/Entity.ts +1 -1
- package/src/unstable/cluster/HttpRunner.ts +2 -2
- package/src/unstable/cluster/K8sHttpClient.ts +1 -1
- package/src/unstable/cluster/Runners.ts +1 -1
- package/src/unstable/cluster/Sharding.ts +1 -1
- package/src/unstable/cluster/SingletonAddress.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +5 -5
- package/src/unstable/devtools/DevToolsClient.ts +1 -1
- package/src/unstable/eventlog/EventLog.ts +1 -1
- package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
- package/src/unstable/eventlog/EventLogRemote.ts +1 -1
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +3 -3
- package/src/unstable/http/Cookies.ts +1 -1
- package/src/unstable/http/Etag.ts +1 -1
- package/src/unstable/http/FetchHttpClient.ts +2 -2
- package/src/unstable/http/HttpClient.ts +1 -1
- package/src/unstable/http/HttpClientRequest.ts +2 -2
- package/src/unstable/http/HttpMiddleware.ts +1 -1
- package/src/unstable/http/HttpPlatform.ts +1 -1
- package/src/unstable/http/HttpRouter.ts +4 -4
- package/src/unstable/http/HttpServerResponse.ts +3 -3
- package/src/unstable/http/Url.ts +33 -33
- package/src/unstable/httpapi/HttpApi.ts +1 -1
- package/src/unstable/httpapi/HttpApiError.ts +13 -13
- package/src/unstable/observability/PrometheusMetrics.ts +4 -4
- package/src/unstable/persistence/KeyValueStore.ts +3 -3
- package/src/unstable/persistence/Persistable.ts +2 -2
- package/src/unstable/persistence/PersistedQueue.ts +8 -8
- package/src/unstable/persistence/RateLimiter.ts +1 -1
- package/src/unstable/process/ChildProcess.ts +5 -5
- package/src/unstable/reactivity/AsyncResult.ts +4 -4
- package/src/unstable/reactivity/Atom.ts +1 -1
- package/src/unstable/reactivity/AtomRegistry.ts +1 -1
- package/src/unstable/reactivity/Reactivity.ts +1 -1
- package/src/unstable/rpc/Rpc.ts +5 -5
- package/src/unstable/rpc/RpcMiddleware.ts +1 -1
- package/src/unstable/rpc/RpcSchema.ts +3 -3
- package/src/unstable/schema/Model.ts +2 -2
- package/src/unstable/socket/Socket.ts +3 -3
- package/src/unstable/socket/SocketServer.ts +1 -1
- package/src/unstable/sql/Migrator.ts +1 -1
- package/src/unstable/sql/SqlClient.ts +3 -3
- package/src/unstable/sql/SqlConnection.ts +1 -1
- package/src/unstable/sql/Statement.ts +2 -2
- package/src/unstable/workers/Transferable.ts +1 -1
- package/src/unstable/workers/Worker.ts +1 -1
- package/src/unstable/workflow/Activity.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +1 -1
package/dist/Stream.d.ts
CHANGED
|
@@ -201,7 +201,7 @@ export interface StreamUnifyIgnore {
|
|
|
201
201
|
* // Equivalent to: Stream<number, string, never>
|
|
202
202
|
* ```
|
|
203
203
|
*
|
|
204
|
-
* @category
|
|
204
|
+
* @category type lambdas
|
|
205
205
|
* @since 2.0.0
|
|
206
206
|
*/
|
|
207
207
|
export interface StreamTypeLambda extends TypeLambda {
|
|
@@ -250,7 +250,7 @@ export interface VarianceStruct<out A, out E, out R> {
|
|
|
250
250
|
* // SuccessType is number
|
|
251
251
|
* ```
|
|
252
252
|
*
|
|
253
|
-
* @category
|
|
253
|
+
* @category utility types
|
|
254
254
|
* @since 3.4.0
|
|
255
255
|
*/
|
|
256
256
|
export type Success<T extends Stream<any, any, any>> = [T] extends [Stream<infer _A, infer _E, infer _R>] ? _A : never;
|
|
@@ -267,7 +267,7 @@ export type Success<T extends Stream<any, any, any>> = [T] extends [Stream<infer
|
|
|
267
267
|
* // ErrorType is string
|
|
268
268
|
* ```
|
|
269
269
|
*
|
|
270
|
-
* @category
|
|
270
|
+
* @category utility types
|
|
271
271
|
* @since 3.4.0
|
|
272
272
|
*/
|
|
273
273
|
export type Error<T extends Stream<any, any, any>> = [T] extends [Stream<infer _A, infer _E, infer _R>] ? _E : never;
|
|
@@ -287,7 +287,7 @@ export type Error<T extends Stream<any, any, any>> = [T] extends [Stream<infer _
|
|
|
287
287
|
* // RequiredServices is { db: Database }
|
|
288
288
|
* ```
|
|
289
289
|
*
|
|
290
|
-
* @category
|
|
290
|
+
* @category utility types
|
|
291
291
|
* @since 4.0.0
|
|
292
292
|
*/
|
|
293
293
|
export type Services<T extends Stream<any, any, any>> = [T] extends [Stream<infer _A, infer _E, infer _R>] ? _R : never;
|
|
@@ -332,7 +332,7 @@ export declare const isStream: (u: unknown) => u is Stream<unknown, unknown, unk
|
|
|
332
332
|
* // Output: 4096
|
|
333
333
|
* ```
|
|
334
334
|
*
|
|
335
|
-
* @category
|
|
335
|
+
* @category constants
|
|
336
336
|
* @since 2.0.0
|
|
337
337
|
*/
|
|
338
338
|
export declare const DefaultChunkSize: number;
|
|
@@ -416,7 +416,7 @@ export declare const fromEffect: <A, E, R>(effect: Effect.Effect<A, E, R>) => St
|
|
|
416
416
|
* // Output: [ "Hello, World!" ]
|
|
417
417
|
* ```
|
|
418
418
|
*
|
|
419
|
-
* @category
|
|
419
|
+
* @category context
|
|
420
420
|
* @since 4.0.0
|
|
421
421
|
*/
|
|
422
422
|
export declare const service: <I, S>(service: Context.Key<I, S>) => Stream<S, never, I>;
|
|
@@ -460,7 +460,7 @@ export declare const service: <I, S>(service: Context.Key<I, S>) => Stream<S, ne
|
|
|
460
460
|
* // Output: [ "Hello, World!" ]
|
|
461
461
|
* ```
|
|
462
462
|
*
|
|
463
|
-
* @category
|
|
463
|
+
* @category context
|
|
464
464
|
* @since 4.0.0
|
|
465
465
|
*/
|
|
466
466
|
export declare const serviceOption: <I, S>(service: Context.Key<I, S>) => Stream<Option.Option<S>>;
|
|
@@ -3442,7 +3442,7 @@ export declare const prepend: {
|
|
|
3442
3442
|
* // Output: [ 1, 2, 3, 4 ]
|
|
3443
3443
|
* ```
|
|
3444
3444
|
*
|
|
3445
|
-
* @category
|
|
3445
|
+
* @category merging
|
|
3446
3446
|
* @since 2.0.0
|
|
3447
3447
|
*/
|
|
3448
3448
|
export declare const merge: {
|
|
@@ -3471,7 +3471,7 @@ export declare const merge: {
|
|
|
3471
3471
|
* // Output: [ 1, 2, 3, 4 ]
|
|
3472
3472
|
* ```
|
|
3473
3473
|
*
|
|
3474
|
-
* @category
|
|
3474
|
+
* @category merging
|
|
3475
3475
|
* @since 2.0.0
|
|
3476
3476
|
*/
|
|
3477
3477
|
<A2, E2, R2>(that: Stream<A2, E2, R2>, options?: {
|
|
@@ -3502,7 +3502,7 @@ export declare const merge: {
|
|
|
3502
3502
|
* // Output: [ 1, 2, 3, 4 ]
|
|
3503
3503
|
* ```
|
|
3504
3504
|
*
|
|
3505
|
-
* @category
|
|
3505
|
+
* @category merging
|
|
3506
3506
|
* @since 2.0.0
|
|
3507
3507
|
*/
|
|
3508
3508
|
<A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>, options?: {
|
|
@@ -3536,7 +3536,7 @@ export declare const merge: {
|
|
|
3536
3536
|
* // Output: [ 1, 2, 3 ]
|
|
3537
3537
|
* ```
|
|
3538
3538
|
*
|
|
3539
|
-
* @category
|
|
3539
|
+
* @category merging
|
|
3540
3540
|
* @since 4.0.0
|
|
3541
3541
|
*/
|
|
3542
3542
|
export declare const mergeEffect: {
|
|
@@ -3567,7 +3567,7 @@ export declare const mergeEffect: {
|
|
|
3567
3567
|
* // Output: [ 1, 2, 3 ]
|
|
3568
3568
|
* ```
|
|
3569
3569
|
*
|
|
3570
|
-
* @category
|
|
3570
|
+
* @category merging
|
|
3571
3571
|
* @since 4.0.0
|
|
3572
3572
|
*/
|
|
3573
3573
|
<A2, E2, R2>(effect: Effect.Effect<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>;
|
|
@@ -3598,7 +3598,7 @@ export declare const mergeEffect: {
|
|
|
3598
3598
|
* // Output: [ 1, 2, 3 ]
|
|
3599
3599
|
* ```
|
|
3600
3600
|
*
|
|
3601
|
-
* @category
|
|
3601
|
+
* @category merging
|
|
3602
3602
|
* @since 4.0.0
|
|
3603
3603
|
*/
|
|
3604
3604
|
<A, E, R, A2, E2, R2>(self: Stream<A, E, R>, effect: Effect.Effect<A2, E2, R2>): Stream<A, E | E2, R | R2>;
|
|
@@ -3634,7 +3634,7 @@ export declare const mergeEffect: {
|
|
|
3634
3634
|
* // Output: [ "left:left", "right:right" ]
|
|
3635
3635
|
* ```
|
|
3636
3636
|
*
|
|
3637
|
-
* @category
|
|
3637
|
+
* @category merging
|
|
3638
3638
|
* @since 4.0.0
|
|
3639
3639
|
*/
|
|
3640
3640
|
export declare const mergeResult: {
|
|
@@ -3669,7 +3669,7 @@ export declare const mergeResult: {
|
|
|
3669
3669
|
* // Output: [ "left:left", "right:right" ]
|
|
3670
3670
|
* ```
|
|
3671
3671
|
*
|
|
3672
|
-
* @category
|
|
3672
|
+
* @category merging
|
|
3673
3673
|
* @since 4.0.0
|
|
3674
3674
|
*/
|
|
3675
3675
|
<A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<Result.Result<A, A2>, E2 | E, R2 | R>;
|
|
@@ -3704,7 +3704,7 @@ export declare const mergeResult: {
|
|
|
3704
3704
|
* // Output: [ "left:left", "right:right" ]
|
|
3705
3705
|
* ```
|
|
3706
3706
|
*
|
|
3707
|
-
* @category
|
|
3707
|
+
* @category merging
|
|
3708
3708
|
* @since 4.0.0
|
|
3709
3709
|
*/
|
|
3710
3710
|
<A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<Result.Result<A, A2>, E | E2, R | R2>;
|
|
@@ -3734,7 +3734,7 @@ export declare const mergeResult: {
|
|
|
3734
3734
|
* // Output: [ 1, 2 ]
|
|
3735
3735
|
* ```
|
|
3736
3736
|
*
|
|
3737
|
-
* @category
|
|
3737
|
+
* @category merging
|
|
3738
3738
|
* @since 2.0.0
|
|
3739
3739
|
*/
|
|
3740
3740
|
export declare const mergeLeft: {
|
|
@@ -3763,7 +3763,7 @@ export declare const mergeLeft: {
|
|
|
3763
3763
|
* // Output: [ 1, 2 ]
|
|
3764
3764
|
* ```
|
|
3765
3765
|
*
|
|
3766
|
-
* @category
|
|
3766
|
+
* @category merging
|
|
3767
3767
|
* @since 2.0.0
|
|
3768
3768
|
*/
|
|
3769
3769
|
<AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<AL, ER | EL, RR | RL>;
|
|
@@ -3792,7 +3792,7 @@ export declare const mergeLeft: {
|
|
|
3792
3792
|
* // Output: [ 1, 2 ]
|
|
3793
3793
|
* ```
|
|
3794
3794
|
*
|
|
3795
|
-
* @category
|
|
3795
|
+
* @category merging
|
|
3796
3796
|
* @since 2.0.0
|
|
3797
3797
|
*/
|
|
3798
3798
|
<AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<AL, EL | ER, RL | RR>;
|
|
@@ -3827,7 +3827,7 @@ export declare const mergeLeft: {
|
|
|
3827
3827
|
* // Output: [ 1, 2 ]
|
|
3828
3828
|
* ```
|
|
3829
3829
|
*
|
|
3830
|
-
* @category
|
|
3830
|
+
* @category merging
|
|
3831
3831
|
* @since 2.0.0
|
|
3832
3832
|
*/
|
|
3833
3833
|
export declare const mergeRight: {
|
|
@@ -3861,7 +3861,7 @@ export declare const mergeRight: {
|
|
|
3861
3861
|
* // Output: [ 1, 2 ]
|
|
3862
3862
|
* ```
|
|
3863
3863
|
*
|
|
3864
|
-
* @category
|
|
3864
|
+
* @category merging
|
|
3865
3865
|
* @since 2.0.0
|
|
3866
3866
|
*/
|
|
3867
3867
|
<AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<AR, ER | EL, RR | RL>;
|
|
@@ -3895,7 +3895,7 @@ export declare const mergeRight: {
|
|
|
3895
3895
|
* // Output: [ 1, 2 ]
|
|
3896
3896
|
* ```
|
|
3897
3897
|
*
|
|
3898
|
-
* @category
|
|
3898
|
+
* @category merging
|
|
3899
3899
|
* @since 2.0.0
|
|
3900
3900
|
*/
|
|
3901
3901
|
<AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<AR, EL | ER, RL | RR>;
|
|
@@ -3938,7 +3938,7 @@ export declare const mergeRight: {
|
|
|
3938
3938
|
* @see {@link merge} for merging exactly two streams and choosing a halt strategy
|
|
3939
3939
|
* @see {@link flatten} for flattening a stream that already emits streams
|
|
3940
3940
|
*
|
|
3941
|
-
* @category
|
|
3941
|
+
* @category merging
|
|
3942
3942
|
* @since 2.0.0
|
|
3943
3943
|
*/
|
|
3944
3944
|
export declare const mergeAll: {
|
|
@@ -3980,7 +3980,7 @@ export declare const mergeAll: {
|
|
|
3980
3980
|
* @see {@link merge} for merging exactly two streams and choosing a halt strategy
|
|
3981
3981
|
* @see {@link flatten} for flattening a stream that already emits streams
|
|
3982
3982
|
*
|
|
3983
|
-
* @category
|
|
3983
|
+
* @category merging
|
|
3984
3984
|
* @since 2.0.0
|
|
3985
3985
|
*/
|
|
3986
3986
|
(options: {
|
|
@@ -4025,7 +4025,7 @@ export declare const mergeAll: {
|
|
|
4025
4025
|
* @see {@link merge} for merging exactly two streams and choosing a halt strategy
|
|
4026
4026
|
* @see {@link flatten} for flattening a stream that already emits streams
|
|
4027
4027
|
*
|
|
4028
|
-
* @category
|
|
4028
|
+
* @category merging
|
|
4029
4029
|
* @since 2.0.0
|
|
4030
4030
|
*/
|
|
4031
4031
|
<A, E, R>(streams: Iterable<Stream<A, E, R>>, options: {
|
|
@@ -5100,7 +5100,7 @@ export declare const zipLatestWith: {
|
|
|
5100
5100
|
* // Output: [ 0, 1, 2 ]
|
|
5101
5101
|
* ```
|
|
5102
5102
|
*
|
|
5103
|
-
* @category
|
|
5103
|
+
* @category racing
|
|
5104
5104
|
* @since 3.5.0
|
|
5105
5105
|
*/
|
|
5106
5106
|
export declare const raceAll: <S extends ReadonlyArray<Stream<any, any, any>>>(...streams: S) => Stream<Success<S[number]>, Error<S[number]>, Services<S[number]>>;
|
|
@@ -5133,7 +5133,7 @@ export declare const raceAll: <S extends ReadonlyArray<Stream<any, any, any>>>(.
|
|
|
5133
5133
|
* // Output: [ 0, 1, 2 ]
|
|
5134
5134
|
* ```
|
|
5135
5135
|
*
|
|
5136
|
-
* @category
|
|
5136
|
+
* @category racing
|
|
5137
5137
|
* @since 3.7.0
|
|
5138
5138
|
*/
|
|
5139
5139
|
export declare const race: {
|
|
@@ -5166,7 +5166,7 @@ export declare const race: {
|
|
|
5166
5166
|
* // Output: [ 0, 1, 2 ]
|
|
5167
5167
|
* ```
|
|
5168
5168
|
*
|
|
5169
|
-
* @category
|
|
5169
|
+
* @category racing
|
|
5170
5170
|
* @since 3.7.0
|
|
5171
5171
|
*/
|
|
5172
5172
|
<AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<AL | AR, EL | ER, RL | RR>;
|
|
@@ -5199,7 +5199,7 @@ export declare const race: {
|
|
|
5199
5199
|
* // Output: [ 0, 1, 2 ]
|
|
5200
5200
|
* ```
|
|
5201
5201
|
*
|
|
5202
|
-
* @category
|
|
5202
|
+
* @category racing
|
|
5203
5203
|
* @since 3.7.0
|
|
5204
5204
|
*/
|
|
5205
5205
|
<AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<AL | AR, EL | ER, RL | RR>;
|
|
@@ -9608,7 +9608,7 @@ export declare const split: {
|
|
|
9608
9608
|
* // Output: [ "L:A", "R:1", "L:B", "R:2", "L:C", "R:3" ]
|
|
9609
9609
|
* ```
|
|
9610
9610
|
*
|
|
9611
|
-
* @category
|
|
9611
|
+
* @category merging
|
|
9612
9612
|
* @since 2.0.0
|
|
9613
9613
|
*/
|
|
9614
9614
|
export declare const combine: {
|
|
@@ -9645,7 +9645,7 @@ export declare const combine: {
|
|
|
9645
9645
|
* // Output: [ "L:A", "R:1", "L:B", "R:2", "L:C", "R:3" ]
|
|
9646
9646
|
* ```
|
|
9647
9647
|
*
|
|
9648
|
-
* @category
|
|
9648
|
+
* @category merging
|
|
9649
9649
|
* @since 2.0.0
|
|
9650
9650
|
*/
|
|
9651
9651
|
<A2, E2, R2, S, E, A, A3, E3, R3>(that: Stream<A2, E2, R2>, s: LazyArg<S>, f: (s: S, pullLeft: Pull.Pull<A, E, void>, pullRight: Pull.Pull<A2, E2, void>) => Effect.Effect<readonly [A3, S], E3, R3>): <R>(self: Stream<A, E, R>) => Stream<A3, E3, R2 | R3 | R>;
|
|
@@ -9682,7 +9682,7 @@ export declare const combine: {
|
|
|
9682
9682
|
* // Output: [ "L:A", "R:1", "L:B", "R:2", "L:C", "R:3" ]
|
|
9683
9683
|
* ```
|
|
9684
9684
|
*
|
|
9685
|
-
* @category
|
|
9685
|
+
* @category merging
|
|
9686
9686
|
* @since 2.0.0
|
|
9687
9687
|
*/
|
|
9688
9688
|
<A, E, R, A2, E2, R2, S, A3, E3, R3>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>, s: LazyArg<S>, f: (s: S, pullLeft: Pull.Pull<A, E, void>, pullRight: Pull.Pull<A2, E2, void>) => Effect.Effect<readonly [A3, S], E3, R3>): Stream<A3, E3, R | R2 | R3>;
|
|
@@ -12570,7 +12570,7 @@ export declare const intersperseAffixes: {
|
|
|
12570
12570
|
* // [2, 5, 3, 6, 7]
|
|
12571
12571
|
* ```
|
|
12572
12572
|
*
|
|
12573
|
-
* @category
|
|
12573
|
+
* @category merging
|
|
12574
12574
|
* @since 2.0.0
|
|
12575
12575
|
*/
|
|
12576
12576
|
export declare const interleave: {
|
|
@@ -12598,7 +12598,7 @@ export declare const interleave: {
|
|
|
12598
12598
|
* // [2, 5, 3, 6, 7]
|
|
12599
12599
|
* ```
|
|
12600
12600
|
*
|
|
12601
|
-
* @category
|
|
12601
|
+
* @category merging
|
|
12602
12602
|
* @since 2.0.0
|
|
12603
12603
|
*/
|
|
12604
12604
|
<A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A2 | A, E2 | E, R2 | R>;
|
|
@@ -12626,7 +12626,7 @@ export declare const interleave: {
|
|
|
12626
12626
|
* // [2, 5, 3, 6, 7]
|
|
12627
12627
|
* ```
|
|
12628
12628
|
*
|
|
12629
|
-
* @category
|
|
12629
|
+
* @category merging
|
|
12630
12630
|
* @since 2.0.0
|
|
12631
12631
|
*/
|
|
12632
12632
|
<A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<A | A2, E | E2, R | R2>;
|
|
@@ -12660,7 +12660,7 @@ export declare const interleave: {
|
|
|
12660
12660
|
* // [ 1, 2, 4, 3, 5 ]
|
|
12661
12661
|
* ```
|
|
12662
12662
|
*
|
|
12663
|
-
* @category
|
|
12663
|
+
* @category merging
|
|
12664
12664
|
* @since 2.0.0
|
|
12665
12665
|
*/
|
|
12666
12666
|
export declare const interleaveWith: {
|
|
@@ -12693,7 +12693,7 @@ export declare const interleaveWith: {
|
|
|
12693
12693
|
* // [ 1, 2, 4, 3, 5 ]
|
|
12694
12694
|
* ```
|
|
12695
12695
|
*
|
|
12696
|
-
* @category
|
|
12696
|
+
* @category merging
|
|
12697
12697
|
* @since 2.0.0
|
|
12698
12698
|
*/
|
|
12699
12699
|
<A2, E2, R2, E3, R3>(that: Stream<A2, E2, R2>, decider: Stream<boolean, E3, R3>): <A, E, R>(self: Stream<A, E, R>) => Stream<A2 | A, E2 | E3 | E, R2 | R3 | R>;
|
|
@@ -12726,7 +12726,7 @@ export declare const interleaveWith: {
|
|
|
12726
12726
|
* // [ 1, 2, 4, 3, 5 ]
|
|
12727
12727
|
* ```
|
|
12728
12728
|
*
|
|
12729
|
-
* @category
|
|
12729
|
+
* @category merging
|
|
12730
12730
|
* @since 2.0.0
|
|
12731
12731
|
*/
|
|
12732
12732
|
<A, E, R, A2, E2, R2, E3, R3>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>, decider: Stream<boolean, E3, R3>): Stream<A | A2, E | E2 | E3, R | R2 | R3>;
|
|
@@ -12766,7 +12766,7 @@ export declare const interleaveWith: {
|
|
|
12766
12766
|
* // => [1, 2]
|
|
12767
12767
|
* ```
|
|
12768
12768
|
*
|
|
12769
|
-
* @category
|
|
12769
|
+
* @category interruption
|
|
12770
12770
|
* @since 2.0.0
|
|
12771
12771
|
*/
|
|
12772
12772
|
export declare const interruptWhen: {
|
|
@@ -12805,7 +12805,7 @@ export declare const interruptWhen: {
|
|
|
12805
12805
|
* // => [1, 2]
|
|
12806
12806
|
* ```
|
|
12807
12807
|
*
|
|
12808
|
-
* @category
|
|
12808
|
+
* @category interruption
|
|
12809
12809
|
* @since 2.0.0
|
|
12810
12810
|
*/
|
|
12811
12811
|
<X, E2, R2>(effect: Effect.Effect<X, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>;
|
|
@@ -12844,7 +12844,7 @@ export declare const interruptWhen: {
|
|
|
12844
12844
|
* // => [1, 2]
|
|
12845
12845
|
* ```
|
|
12846
12846
|
*
|
|
12847
|
-
* @category
|
|
12847
|
+
* @category interruption
|
|
12848
12848
|
* @since 2.0.0
|
|
12849
12849
|
*/
|
|
12850
12850
|
<A, E, R, X, E2, R2>(self: Stream<A, E, R>, effect: Effect.Effect<X, E2, R2>): Stream<A, E | E2, R | R2>;
|
|
@@ -12886,7 +12886,7 @@ export declare const interruptWhen: {
|
|
|
12886
12886
|
* // [1, 2]
|
|
12887
12887
|
* ```
|
|
12888
12888
|
*
|
|
12889
|
-
* @category
|
|
12889
|
+
* @category interruption
|
|
12890
12890
|
* @since 2.0.0
|
|
12891
12891
|
*/
|
|
12892
12892
|
export declare const haltWhen: {
|
|
@@ -12927,7 +12927,7 @@ export declare const haltWhen: {
|
|
|
12927
12927
|
* // [1, 2]
|
|
12928
12928
|
* ```
|
|
12929
12929
|
*
|
|
12930
|
-
* @category
|
|
12930
|
+
* @category interruption
|
|
12931
12931
|
* @since 2.0.0
|
|
12932
12932
|
*/
|
|
12933
12933
|
<X, E2, R2>(effect: Effect.Effect<X, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>;
|
|
@@ -12968,7 +12968,7 @@ export declare const haltWhen: {
|
|
|
12968
12968
|
* // [1, 2]
|
|
12969
12969
|
* ```
|
|
12970
12970
|
*
|
|
12971
|
-
* @category
|
|
12971
|
+
* @category interruption
|
|
12972
12972
|
* @since 2.0.0
|
|
12973
12973
|
*/
|
|
12974
12974
|
<A, E, R, X, E2, R2>(self: Stream<A, E, R>, effect: Effect.Effect<X, E2, R2>): Stream<A, E | E2, R | R2>;
|
|
@@ -14207,7 +14207,7 @@ export declare const withSpan: {
|
|
|
14207
14207
|
* //=> [{ value: 1, next: 2 }, { value: 2, next: 3 }]
|
|
14208
14208
|
* ```
|
|
14209
14209
|
*
|
|
14210
|
-
* @category
|
|
14210
|
+
* @category do notation
|
|
14211
14211
|
* @since 2.0.0
|
|
14212
14212
|
*/
|
|
14213
14213
|
export declare const Do: Stream<{}>;
|
|
@@ -14242,7 +14242,7 @@ export {
|
|
|
14242
14242
|
* // [{ x: 2, y: 6 }]
|
|
14243
14243
|
* ```
|
|
14244
14244
|
*
|
|
14245
|
-
* @category
|
|
14245
|
+
* @category do notation
|
|
14246
14246
|
* @since 2.0.0
|
|
14247
14247
|
*/
|
|
14248
14248
|
let_ as let };
|
|
@@ -14265,7 +14265,7 @@ let_ as let };
|
|
|
14265
14265
|
* // [{ a: 1, b: 2 }, { a: 2, b: 3 }]
|
|
14266
14266
|
* ```
|
|
14267
14267
|
*
|
|
14268
|
-
* @category
|
|
14268
|
+
* @category do notation
|
|
14269
14269
|
* @since 2.0.0
|
|
14270
14270
|
*/
|
|
14271
14271
|
export declare const bind: {
|
|
@@ -14288,7 +14288,7 @@ export declare const bind: {
|
|
|
14288
14288
|
* // [{ a: 1, b: 2 }, { a: 2, b: 3 }]
|
|
14289
14289
|
* ```
|
|
14290
14290
|
*
|
|
14291
|
-
* @category
|
|
14291
|
+
* @category do notation
|
|
14292
14292
|
* @since 2.0.0
|
|
14293
14293
|
*/
|
|
14294
14294
|
<N extends string, A, B, E2, R2>(tag: Exclude<N, keyof A>, f: (_: NoInfer<A>) => Stream<B, E2, R2>, options?: {
|
|
@@ -14316,7 +14316,7 @@ export declare const bind: {
|
|
|
14316
14316
|
* // [{ a: 1, b: 2 }, { a: 2, b: 3 }]
|
|
14317
14317
|
* ```
|
|
14318
14318
|
*
|
|
14319
|
-
* @category
|
|
14319
|
+
* @category do notation
|
|
14320
14320
|
* @since 2.0.0
|
|
14321
14321
|
*/
|
|
14322
14322
|
<A, E, R, N extends string, B, E2, R2>(self: Stream<A, E, R>, tag: Exclude<N, keyof A>, f: (_: NoInfer<A>) => Stream<B, E2, R2>, options?: {
|
|
@@ -14348,7 +14348,7 @@ export declare const bind: {
|
|
|
14348
14348
|
* // [{ value: 1, double: 2 }, { value: 2, double: 4 }]
|
|
14349
14349
|
* ```
|
|
14350
14350
|
*
|
|
14351
|
-
* @category
|
|
14351
|
+
* @category do notation
|
|
14352
14352
|
* @since 2.0.0
|
|
14353
14353
|
*/
|
|
14354
14354
|
export declare const bindEffect: {
|
|
@@ -14374,7 +14374,7 @@ export declare const bindEffect: {
|
|
|
14374
14374
|
* // [{ value: 1, double: 2 }, { value: 2, double: 4 }]
|
|
14375
14375
|
* ```
|
|
14376
14376
|
*
|
|
14377
|
-
* @category
|
|
14377
|
+
* @category do notation
|
|
14378
14378
|
* @since 2.0.0
|
|
14379
14379
|
*/
|
|
14380
14380
|
<N extends string, A, B, E2, R2>(tag: Exclude<N, keyof A>, f: (_: NoInfer<A>) => Effect.Effect<B, E2, R2>, options?: {
|
|
@@ -14406,7 +14406,7 @@ export declare const bindEffect: {
|
|
|
14406
14406
|
* // [{ value: 1, double: 2 }, { value: 2, double: 4 }]
|
|
14407
14407
|
* ```
|
|
14408
14408
|
*
|
|
14409
|
-
* @category
|
|
14409
|
+
* @category do notation
|
|
14410
14410
|
* @since 2.0.0
|
|
14411
14411
|
*/
|
|
14412
14412
|
<A, E, R, N extends string, B, E2, R2>(self: Stream<A, E, R>, tag: Exclude<N, keyof A>, f: (_: NoInfer<A>) => Effect.Effect<B, E2, R2>, options?: {
|
|
@@ -14433,7 +14433,7 @@ export declare const bindEffect: {
|
|
|
14433
14433
|
* // [{ value: 1 }, { value: 2 }, { value: 3 }]
|
|
14434
14434
|
* ```
|
|
14435
14435
|
*
|
|
14436
|
-
* @category
|
|
14436
|
+
* @category do notation
|
|
14437
14437
|
* @since 2.0.0
|
|
14438
14438
|
*/
|
|
14439
14439
|
export declare const bindTo: {
|
|
@@ -14453,7 +14453,7 @@ export declare const bindTo: {
|
|
|
14453
14453
|
* // [{ value: 1 }, { value: 2 }, { value: 3 }]
|
|
14454
14454
|
* ```
|
|
14455
14455
|
*
|
|
14456
|
-
* @category
|
|
14456
|
+
* @category do notation
|
|
14457
14457
|
* @since 2.0.0
|
|
14458
14458
|
*/
|
|
14459
14459
|
<N extends string>(name: N): <A, E, R>(self: Stream<A, E, R>) => Stream<{
|
|
@@ -14475,7 +14475,7 @@ export declare const bindTo: {
|
|
|
14475
14475
|
* // [{ value: 1 }, { value: 2 }, { value: 3 }]
|
|
14476
14476
|
* ```
|
|
14477
14477
|
*
|
|
14478
|
-
* @category
|
|
14478
|
+
* @category do notation
|
|
14479
14479
|
* @since 2.0.0
|
|
14480
14480
|
*/
|
|
14481
14481
|
<A, E, R, N extends string>(self: Stream<A, E, R>, name: N): Stream<{
|
package/dist/Stream.js
CHANGED
|
@@ -169,7 +169,7 @@ export const isStream = u => hasProperty(u, TypeId);
|
|
|
169
169
|
* // Output: 4096
|
|
170
170
|
* ```
|
|
171
171
|
*
|
|
172
|
-
* @category
|
|
172
|
+
* @category constants
|
|
173
173
|
* @since 2.0.0
|
|
174
174
|
*/
|
|
175
175
|
export const DefaultChunkSize = Channel.DefaultChunkSize;
|
|
@@ -246,7 +246,7 @@ export const fromEffect = effect => fromChannel(Channel.fromEffect(Effect.map(ef
|
|
|
246
246
|
* // Output: [ "Hello, World!" ]
|
|
247
247
|
* ```
|
|
248
248
|
*
|
|
249
|
-
* @category
|
|
249
|
+
* @category context
|
|
250
250
|
* @since 4.0.0
|
|
251
251
|
*/
|
|
252
252
|
export const service = service => fromEffect(Effect.service(service));
|
|
@@ -290,7 +290,7 @@ export const service = service => fromEffect(Effect.service(service));
|
|
|
290
290
|
* // Output: [ "Hello, World!" ]
|
|
291
291
|
* ```
|
|
292
292
|
*
|
|
293
|
-
* @category
|
|
293
|
+
* @category context
|
|
294
294
|
* @since 4.0.0
|
|
295
295
|
*/
|
|
296
296
|
export const serviceOption = service => fromEffect(Effect.serviceOption(service));
|
|
@@ -2341,7 +2341,7 @@ export const prepend = /*#__PURE__*/dual(2, (self, values) => concat(fromIterabl
|
|
|
2341
2341
|
* // Output: [ 1, 2, 3, 4 ]
|
|
2342
2342
|
* ```
|
|
2343
2343
|
*
|
|
2344
|
-
* @category
|
|
2344
|
+
* @category merging
|
|
2345
2345
|
* @since 2.0.0
|
|
2346
2346
|
*/
|
|
2347
2347
|
export const merge = /*#__PURE__*/dual(args => isStream(args[0]) && isStream(args[1]), (self, that, options) => fromChannel(Channel.merge(toChannel(self), toChannel(that), options)));
|
|
@@ -2372,7 +2372,7 @@ export const merge = /*#__PURE__*/dual(args => isStream(args[0]) && isStream(arg
|
|
|
2372
2372
|
* // Output: [ 1, 2, 3 ]
|
|
2373
2373
|
* ```
|
|
2374
2374
|
*
|
|
2375
|
-
* @category
|
|
2375
|
+
* @category merging
|
|
2376
2376
|
* @since 4.0.0
|
|
2377
2377
|
*/
|
|
2378
2378
|
export const mergeEffect = /*#__PURE__*/dual(2, (self, effect) => self.channel.pipe(Channel.mergeEffect(effect), fromChannel));
|
|
@@ -2407,7 +2407,7 @@ export const mergeEffect = /*#__PURE__*/dual(2, (self, effect) => self.channel.p
|
|
|
2407
2407
|
* // Output: [ "left:left", "right:right" ]
|
|
2408
2408
|
* ```
|
|
2409
2409
|
*
|
|
2410
|
-
* @category
|
|
2410
|
+
* @category merging
|
|
2411
2411
|
* @since 4.0.0
|
|
2412
2412
|
*/
|
|
2413
2413
|
export const mergeResult = /*#__PURE__*/dual(2, (self, that) => merge(map(self, Result.succeed), map(that, Result.fail)));
|
|
@@ -2436,7 +2436,7 @@ export const mergeResult = /*#__PURE__*/dual(2, (self, that) => merge(map(self,
|
|
|
2436
2436
|
* // Output: [ 1, 2 ]
|
|
2437
2437
|
* ```
|
|
2438
2438
|
*
|
|
2439
|
-
* @category
|
|
2439
|
+
* @category merging
|
|
2440
2440
|
* @since 2.0.0
|
|
2441
2441
|
*/
|
|
2442
2442
|
export const mergeLeft = /*#__PURE__*/dual(2, (left, right) => mergeEffect(left, runDrain(right)));
|
|
@@ -2470,7 +2470,7 @@ export const mergeLeft = /*#__PURE__*/dual(2, (left, right) => mergeEffect(left,
|
|
|
2470
2470
|
* // Output: [ 1, 2 ]
|
|
2471
2471
|
* ```
|
|
2472
2472
|
*
|
|
2473
|
-
* @category
|
|
2473
|
+
* @category merging
|
|
2474
2474
|
* @since 2.0.0
|
|
2475
2475
|
*/
|
|
2476
2476
|
export const mergeRight = /*#__PURE__*/dual(2, (left, right) => mergeEffect(right, runDrain(left)));
|
|
@@ -2512,7 +2512,7 @@ export const mergeRight = /*#__PURE__*/dual(2, (left, right) => mergeEffect(righ
|
|
|
2512
2512
|
* @see {@link merge} for merging exactly two streams and choosing a halt strategy
|
|
2513
2513
|
* @see {@link flatten} for flattening a stream that already emits streams
|
|
2514
2514
|
*
|
|
2515
|
-
* @category
|
|
2515
|
+
* @category merging
|
|
2516
2516
|
* @since 2.0.0
|
|
2517
2517
|
*/
|
|
2518
2518
|
export const mergeAll = /*#__PURE__*/dual(2, (streams, options) => flatten(fromIterable(streams), options));
|
|
@@ -3096,7 +3096,7 @@ export const zipLatestWith = /*#__PURE__*/dual(3, (left, right, f) => map(zipLat
|
|
|
3096
3096
|
* // Output: [ 0, 1, 2 ]
|
|
3097
3097
|
* ```
|
|
3098
3098
|
*
|
|
3099
|
-
* @category
|
|
3099
|
+
* @category racing
|
|
3100
3100
|
* @since 3.5.0
|
|
3101
3101
|
*/
|
|
3102
3102
|
export const raceAll = (...streams) => fromChannel(Channel.fromTransform((_, scope) => Effect.sync(() => {
|
|
@@ -3145,7 +3145,7 @@ export const raceAll = (...streams) => fromChannel(Channel.fromTransform((_, sco
|
|
|
3145
3145
|
* // Output: [ 0, 1, 2 ]
|
|
3146
3146
|
* ```
|
|
3147
3147
|
*
|
|
3148
|
-
* @category
|
|
3148
|
+
* @category racing
|
|
3149
3149
|
* @since 3.7.0
|
|
3150
3150
|
*/
|
|
3151
3151
|
export const race = /*#__PURE__*/dual(2, (left, right) => raceAll(left, right));
|
|
@@ -4949,7 +4949,7 @@ export const split = /*#__PURE__*/dual(2, (self, predicate) => mapAccumArray(sel
|
|
|
4949
4949
|
* // Output: [ "L:A", "R:1", "L:B", "R:2", "L:C", "R:3" ]
|
|
4950
4950
|
* ```
|
|
4951
4951
|
*
|
|
4952
|
-
* @category
|
|
4952
|
+
* @category merging
|
|
4953
4953
|
* @since 2.0.0
|
|
4954
4954
|
*/
|
|
4955
4955
|
export const combine = /*#__PURE__*/dual(4, (self, that, s, f) => Channel.combine(Channel.flattenArray(self.channel), Channel.flattenArray(that.channel), s, f).pipe(Channel.map(Arr.of), fromChannel));
|
|
@@ -6397,7 +6397,7 @@ export const intersperseAffixes = /*#__PURE__*/dual(2, (self, options) => succee
|
|
|
6397
6397
|
* // [2, 5, 3, 6, 7]
|
|
6398
6398
|
* ```
|
|
6399
6399
|
*
|
|
6400
|
-
* @category
|
|
6400
|
+
* @category merging
|
|
6401
6401
|
* @since 2.0.0
|
|
6402
6402
|
*/
|
|
6403
6403
|
export const interleave = /*#__PURE__*/dual(2, (self, that) => interleaveWith(self, that, fromIterable(Iterable.forever([true, false]))));
|
|
@@ -6430,7 +6430,7 @@ export const interleave = /*#__PURE__*/dual(2, (self, that) => interleaveWith(se
|
|
|
6430
6430
|
* // [ 1, 2, 4, 3, 5 ]
|
|
6431
6431
|
* ```
|
|
6432
6432
|
*
|
|
6433
|
-
* @category
|
|
6433
|
+
* @category merging
|
|
6434
6434
|
* @since 2.0.0
|
|
6435
6435
|
*/
|
|
6436
6436
|
export const interleaveWith = /*#__PURE__*/dual(3, (self, that, decider) => fromChannel(Channel.fromTransform(Effect.fnUntraced(function* (upstream, scope) {
|
|
@@ -6495,7 +6495,7 @@ export const interleaveWith = /*#__PURE__*/dual(3, (self, that, decider) => from
|
|
|
6495
6495
|
* // => [1, 2]
|
|
6496
6496
|
* ```
|
|
6497
6497
|
*
|
|
6498
|
-
* @category
|
|
6498
|
+
* @category interruption
|
|
6499
6499
|
* @since 2.0.0
|
|
6500
6500
|
*/
|
|
6501
6501
|
export const interruptWhen = /*#__PURE__*/dual(2, (self, effect) => fromChannel(Channel.interruptWhen(self.channel, effect)));
|
|
@@ -6536,7 +6536,7 @@ export const interruptWhen = /*#__PURE__*/dual(2, (self, effect) => fromChannel(
|
|
|
6536
6536
|
* // [1, 2]
|
|
6537
6537
|
* ```
|
|
6538
6538
|
*
|
|
6539
|
-
* @category
|
|
6539
|
+
* @category interruption
|
|
6540
6540
|
* @since 2.0.0
|
|
6541
6541
|
*/
|
|
6542
6542
|
export const haltWhen = /*#__PURE__*/dual(2, (self, effect) => fromChannel(Channel.haltWhen(self.channel, effect)));
|
|
@@ -6970,7 +6970,7 @@ export const withSpan = function () {
|
|
|
6970
6970
|
* //=> [{ value: 1, next: 2 }, { value: 2, next: 3 }]
|
|
6971
6971
|
* ```
|
|
6972
6972
|
*
|
|
6973
|
-
* @category
|
|
6973
|
+
* @category do notation
|
|
6974
6974
|
* @since 2.0.0
|
|
6975
6975
|
*/
|
|
6976
6976
|
export const Do = /*#__PURE__*/succeed({});
|
|
@@ -7001,7 +7001,7 @@ export {
|
|
|
7001
7001
|
* // [{ x: 2, y: 6 }]
|
|
7002
7002
|
* ```
|
|
7003
7003
|
*
|
|
7004
|
-
* @category
|
|
7004
|
+
* @category do notation
|
|
7005
7005
|
* @since 2.0.0
|
|
7006
7006
|
*/
|
|
7007
7007
|
let_ as let };
|
|
@@ -7024,7 +7024,7 @@ let_ as let };
|
|
|
7024
7024
|
* // [{ a: 1, b: 2 }, { a: 2, b: 3 }]
|
|
7025
7025
|
* ```
|
|
7026
7026
|
*
|
|
7027
|
-
* @category
|
|
7027
|
+
* @category do notation
|
|
7028
7028
|
* @since 2.0.0
|
|
7029
7029
|
*/
|
|
7030
7030
|
export const bind = /*#__PURE__*/dual(args => isStream(args[0]), (self, tag, f, options) => flatMap(self, a => map(f(a), b => ({
|
|
@@ -7053,7 +7053,7 @@ export const bind = /*#__PURE__*/dual(args => isStream(args[0]), (self, tag, f,
|
|
|
7053
7053
|
* // [{ value: 1, double: 2 }, { value: 2, double: 4 }]
|
|
7054
7054
|
* ```
|
|
7055
7055
|
*
|
|
7056
|
-
* @category
|
|
7056
|
+
* @category do notation
|
|
7057
7057
|
* @since 2.0.0
|
|
7058
7058
|
*/
|
|
7059
7059
|
export const bindEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, tag, f, options) => mapEffect(self, a => Effect.map(f(a), b => ({
|
|
@@ -7076,7 +7076,7 @@ export const bindEffect = /*#__PURE__*/dual(args => isStream(args[0]), (self, ta
|
|
|
7076
7076
|
* // [{ value: 1 }, { value: 2 }, { value: 3 }]
|
|
7077
7077
|
* ```
|
|
7078
7078
|
*
|
|
7079
|
-
* @category
|
|
7079
|
+
* @category do notation
|
|
7080
7080
|
* @since 2.0.0
|
|
7081
7081
|
*/
|
|
7082
7082
|
export const bindTo = /*#__PURE__*/dual(2, (self, name) => map(self, a => ({
|