effect 4.0.0-beta.72 → 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/EntityResource.d.ts +1 -0
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +5 -3
- package/dist/unstable/cluster/EntityResource.js.map +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/HttpApiBuilder.js +2 -3
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
- package/dist/unstable/httpapi/HttpApiError.js +13 -13
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +27 -5
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +26 -3
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +2 -2
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- 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/EntityResource.ts +8 -4
- 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/HttpApiBuilder.ts +2 -3
- package/src/unstable/httpapi/HttpApiError.ts +13 -13
- package/src/unstable/httpapi/HttpApiSecurity.ts +36 -8
- package/src/unstable/httpapi/OpenApi.ts +2 -2
- 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/src/Result.ts
CHANGED
|
@@ -265,7 +265,7 @@ export interface ResultUnifyIgnore {}
|
|
|
265
265
|
* (e.g., `map`, `flatMap` abstractions). You typically do not need to
|
|
266
266
|
* reference this directly.
|
|
267
267
|
*
|
|
268
|
-
* @category
|
|
268
|
+
* @category type lambdas
|
|
269
269
|
* @since 4.0.0
|
|
270
270
|
*/
|
|
271
271
|
export interface ResultTypeLambda extends TypeLambda {
|
|
@@ -745,7 +745,7 @@ export {
|
|
|
745
745
|
*
|
|
746
746
|
* @see {@link isSuccess} / {@link isFailure} to narrow to a specific variant
|
|
747
747
|
*
|
|
748
|
-
* @category
|
|
748
|
+
* @category guards
|
|
749
749
|
* @since 4.0.0
|
|
750
750
|
*/
|
|
751
751
|
export const isResult: (input: unknown) => input is Result<unknown, unknown> = result.isResult
|
|
@@ -778,7 +778,7 @@ export const isResult: (input: unknown) => input is Result<unknown, unknown> = r
|
|
|
778
778
|
* @see {@link isSuccess} for the opposite check
|
|
779
779
|
* @see {@link isResult} to check if a value is any Result
|
|
780
780
|
*
|
|
781
|
-
* @category
|
|
781
|
+
* @category guards
|
|
782
782
|
* @since 4.0.0
|
|
783
783
|
*/
|
|
784
784
|
export const isFailure: <A, E>(self: Result<A, E>) => self is Failure<A, E> = result.isFailure
|
|
@@ -811,7 +811,7 @@ export const isFailure: <A, E>(self: Result<A, E>) => self is Failure<A, E> = re
|
|
|
811
811
|
* @see {@link isFailure} for the opposite check
|
|
812
812
|
* @see {@link isResult} to check if a value is any Result
|
|
813
813
|
*
|
|
814
|
-
* @category
|
|
814
|
+
* @category guards
|
|
815
815
|
* @since 4.0.0
|
|
816
816
|
*/
|
|
817
817
|
export const isSuccess: <A, E>(self: Result<A, E>) => self is Success<A, E> = result.isSuccess
|
|
@@ -906,7 +906,7 @@ export const getFailure: <A, E>(self: Result<A, E>) => Option<E> = result.getFai
|
|
|
906
906
|
* // Output: false
|
|
907
907
|
* ```
|
|
908
908
|
*
|
|
909
|
-
* @category
|
|
909
|
+
* @category instances
|
|
910
910
|
* @since 4.0.0
|
|
911
911
|
*/
|
|
912
912
|
export const makeEquivalence = <A, E>(
|
|
@@ -1292,7 +1292,7 @@ export const map: {
|
|
|
1292
1292
|
* @see {@link merge} to extract `A | E` without mapping
|
|
1293
1293
|
* @see {@link getOrElse} to unwrap only the success with a fallback
|
|
1294
1294
|
*
|
|
1295
|
-
* @category
|
|
1295
|
+
* @category pattern matching
|
|
1296
1296
|
* @since 2.0.0
|
|
1297
1297
|
*/
|
|
1298
1298
|
export const match: {
|
|
@@ -1326,7 +1326,7 @@ export const match: {
|
|
|
1326
1326
|
* @see {@link merge} to extract `A | E` without mapping
|
|
1327
1327
|
* @see {@link getOrElse} to unwrap only the success with a fallback
|
|
1328
1328
|
*
|
|
1329
|
-
* @category
|
|
1329
|
+
* @category pattern matching
|
|
1330
1330
|
* @since 2.0.0
|
|
1331
1331
|
*/
|
|
1332
1332
|
<E, B, A, C = B>(
|
|
@@ -1365,7 +1365,7 @@ export const match: {
|
|
|
1365
1365
|
* @see {@link merge} to extract `A | E` without mapping
|
|
1366
1366
|
* @see {@link getOrElse} to unwrap only the success with a fallback
|
|
1367
1367
|
*
|
|
1368
|
-
* @category
|
|
1368
|
+
* @category pattern matching
|
|
1369
1369
|
* @since 2.0.0
|
|
1370
1370
|
*/
|
|
1371
1371
|
<A, E, B, C = B>(
|
|
@@ -2909,7 +2909,7 @@ export const all: <const I extends Iterable<Result<any, any>> | Record<string, R
|
|
|
2909
2909
|
*
|
|
2910
2910
|
* @see {@link mapError} to transform the error without swapping
|
|
2911
2911
|
*
|
|
2912
|
-
* @category
|
|
2912
|
+
* @category transforming
|
|
2913
2913
|
* @since 2.0.0
|
|
2914
2914
|
*/
|
|
2915
2915
|
export const flip = <A, E>(self: Result<A, E>): Result<E, A> =>
|
|
@@ -2948,7 +2948,7 @@ export const flip = <A, E>(self: Result<A, E>): Result<E, A> =>
|
|
|
2948
2948
|
* @see {@link flatMap} for point-free sequential composition
|
|
2949
2949
|
* @see {@link all} to collect multiple independent Results
|
|
2950
2950
|
*
|
|
2951
|
-
* @category
|
|
2951
|
+
* @category generators
|
|
2952
2952
|
* @since 2.0.0
|
|
2953
2953
|
*/
|
|
2954
2954
|
export const gen: Gen.Gen<ResultTypeLambda> = (...args) => {
|
|
@@ -3004,7 +3004,7 @@ export const gen: Gen.Gen<ResultTypeLambda> = (...args) => {
|
|
|
3004
3004
|
* @see {@link gen} for an alternative generator-based syntax
|
|
3005
3005
|
* @see {@link bindTo} for starting a do-notation chain from an existing Result
|
|
3006
3006
|
*
|
|
3007
|
-
* @category
|
|
3007
|
+
* @category do notation
|
|
3008
3008
|
* @since 2.0.0
|
|
3009
3009
|
*/
|
|
3010
3010
|
export const Do: Result<{}> = succeed({})
|
|
@@ -3042,7 +3042,7 @@ export const Do: Result<{}> = succeed({})
|
|
|
3042
3042
|
* @see {@link let_ let} for pure computed fields
|
|
3043
3043
|
* @see {@link bindTo} to wrap an initial Result into a named field
|
|
3044
3044
|
*
|
|
3045
|
-
* @category
|
|
3045
|
+
* @category do notation
|
|
3046
3046
|
* @since 2.0.0
|
|
3047
3047
|
*/
|
|
3048
3048
|
export const bind: {
|
|
@@ -3079,7 +3079,7 @@ export const bind: {
|
|
|
3079
3079
|
* @see {@link let_ let} for pure computed fields
|
|
3080
3080
|
* @see {@link bindTo} to wrap an initial Result into a named field
|
|
3081
3081
|
*
|
|
3082
|
-
* @category
|
|
3082
|
+
* @category do notation
|
|
3083
3083
|
* @since 2.0.0
|
|
3084
3084
|
*/
|
|
3085
3085
|
<N extends string, A extends object, B, L2>(name: Exclude<N, keyof A>, f: (a: NoInfer<A>) => Result<B, L2>): <L1>(self: Result<A, L1>) => Result<{ [K in N | keyof A]: K extends keyof A ? A[K] : B }, L1 | L2>
|
|
@@ -3116,7 +3116,7 @@ export const bind: {
|
|
|
3116
3116
|
* @see {@link let_ let} for pure computed fields
|
|
3117
3117
|
* @see {@link bindTo} to wrap an initial Result into a named field
|
|
3118
3118
|
*
|
|
3119
|
-
* @category
|
|
3119
|
+
* @category do notation
|
|
3120
3120
|
* @since 2.0.0
|
|
3121
3121
|
*/
|
|
3122
3122
|
<A extends object, L1, N extends string, B, L2>(
|
|
@@ -3156,7 +3156,7 @@ export const bind: {
|
|
|
3156
3156
|
* @see {@link Do} to start from an empty object
|
|
3157
3157
|
* @see {@link bind} to add more fields
|
|
3158
3158
|
*
|
|
3159
|
-
* @category
|
|
3159
|
+
* @category do notation
|
|
3160
3160
|
* @since 2.0.0
|
|
3161
3161
|
*/
|
|
3162
3162
|
export const bindTo: {
|
|
@@ -3190,7 +3190,7 @@ export const bindTo: {
|
|
|
3190
3190
|
* @see {@link Do} to start from an empty object
|
|
3191
3191
|
* @see {@link bind} to add more fields
|
|
3192
3192
|
*
|
|
3193
|
-
* @category
|
|
3193
|
+
* @category do notation
|
|
3194
3194
|
* @since 2.0.0
|
|
3195
3195
|
*/
|
|
3196
3196
|
<N extends string>(name: N): <R, L>(self: Result<R, L>) => Result<Record<N, R>, L>
|
|
@@ -3224,7 +3224,7 @@ export const bindTo: {
|
|
|
3224
3224
|
* @see {@link Do} to start from an empty object
|
|
3225
3225
|
* @see {@link bind} to add more fields
|
|
3226
3226
|
*
|
|
3227
|
-
* @category
|
|
3227
|
+
* @category do notation
|
|
3228
3228
|
* @since 2.0.0
|
|
3229
3229
|
*/
|
|
3230
3230
|
<R, L, N extends string>(self: Result<R, L>, name: N): Result<Record<N, R>, L>
|
|
@@ -3274,7 +3274,7 @@ export {
|
|
|
3274
3274
|
* @see {@link Do} to start the do-notation chain
|
|
3275
3275
|
* @see {@link bind} for Result-producing fields
|
|
3276
3276
|
*
|
|
3277
|
-
* @category
|
|
3277
|
+
* @category do notation
|
|
3278
3278
|
* @since 2.0.0
|
|
3279
3279
|
*/
|
|
3280
3280
|
let_ as let
|
package/src/Schedule.ts
CHANGED
|
@@ -665,7 +665,7 @@ export const toStepWithSleep = <Output, Input, Error, Env>(
|
|
|
665
665
|
* })
|
|
666
666
|
* ```
|
|
667
667
|
*
|
|
668
|
-
* @category
|
|
668
|
+
* @category delays & timeouts
|
|
669
669
|
* @since 2.0.0
|
|
670
670
|
*/
|
|
671
671
|
export const addDelay: {
|
|
@@ -765,7 +765,7 @@ export const addDelay: {
|
|
|
765
765
|
* })
|
|
766
766
|
* ```
|
|
767
767
|
*
|
|
768
|
-
* @category
|
|
768
|
+
* @category delays & timeouts
|
|
769
769
|
* @since 2.0.0
|
|
770
770
|
*/
|
|
771
771
|
<Output, Error2 = never, Env2 = never>(f: (output: Output) => Effect<Duration.Input, Error2, Env2>): <Input, Error, Env>(
|
|
@@ -867,7 +867,7 @@ export const addDelay: {
|
|
|
867
867
|
* })
|
|
868
868
|
* ```
|
|
869
869
|
*
|
|
870
|
-
* @category
|
|
870
|
+
* @category delays & timeouts
|
|
871
871
|
* @since 2.0.0
|
|
872
872
|
*/
|
|
873
873
|
<Output, Input, Error, Env, Error2 = never, Env2 = never>(
|
|
@@ -1444,7 +1444,7 @@ export const andThenResult: {
|
|
|
1444
1444
|
*
|
|
1445
1445
|
* @see {@link either} for continuing while either schedule still recurs
|
|
1446
1446
|
*
|
|
1447
|
-
* @category
|
|
1447
|
+
* @category combining
|
|
1448
1448
|
* @since 2.0.0
|
|
1449
1449
|
*/
|
|
1450
1450
|
export const both: {
|
|
@@ -1523,7 +1523,7 @@ export const both: {
|
|
|
1523
1523
|
*
|
|
1524
1524
|
* @see {@link either} for continuing while either schedule still recurs
|
|
1525
1525
|
*
|
|
1526
|
-
* @category
|
|
1526
|
+
* @category combining
|
|
1527
1527
|
* @since 2.0.0
|
|
1528
1528
|
*/
|
|
1529
1529
|
<Output2, Input2, Error2, Env2, Output>(other: Schedule<Output2, Input2, Error2, Env2>): <Input, Error, Env>(
|
|
@@ -1604,7 +1604,7 @@ export const both: {
|
|
|
1604
1604
|
*
|
|
1605
1605
|
* @see {@link either} for continuing while either schedule still recurs
|
|
1606
1606
|
*
|
|
1607
|
-
* @category
|
|
1607
|
+
* @category combining
|
|
1608
1608
|
* @since 2.0.0
|
|
1609
1609
|
*/
|
|
1610
1610
|
<Output, Input, Error, Env, Output2, Input2, Error2, Env2>(
|
|
@@ -1646,7 +1646,7 @@ export const both: {
|
|
|
1646
1646
|
* })
|
|
1647
1647
|
* ```
|
|
1648
1648
|
*
|
|
1649
|
-
* @category
|
|
1649
|
+
* @category combining
|
|
1650
1650
|
* @since 2.0.0
|
|
1651
1651
|
*/
|
|
1652
1652
|
export const bothLeft: {
|
|
@@ -1679,7 +1679,7 @@ export const bothLeft: {
|
|
|
1679
1679
|
* })
|
|
1680
1680
|
* ```
|
|
1681
1681
|
*
|
|
1682
|
-
* @category
|
|
1682
|
+
* @category combining
|
|
1683
1683
|
* @since 2.0.0
|
|
1684
1684
|
*/
|
|
1685
1685
|
<Output2, Input2, Error2, Env2>(other: Schedule<Output2, Input2, Error2, Env2>): <Output, Input, Error, Env>(
|
|
@@ -1714,7 +1714,7 @@ export const bothLeft: {
|
|
|
1714
1714
|
* })
|
|
1715
1715
|
* ```
|
|
1716
1716
|
*
|
|
1717
|
-
* @category
|
|
1717
|
+
* @category combining
|
|
1718
1718
|
* @since 2.0.0
|
|
1719
1719
|
*/
|
|
1720
1720
|
<Output, Input, Error, Env, Output2, Input2, Error2, Env2>(
|
|
@@ -1757,7 +1757,7 @@ export const bothLeft: {
|
|
|
1757
1757
|
* })
|
|
1758
1758
|
* ```
|
|
1759
1759
|
*
|
|
1760
|
-
* @category
|
|
1760
|
+
* @category combining
|
|
1761
1761
|
* @since 2.0.0
|
|
1762
1762
|
*/
|
|
1763
1763
|
export const bothRight: {
|
|
@@ -1792,7 +1792,7 @@ export const bothRight: {
|
|
|
1792
1792
|
* })
|
|
1793
1793
|
* ```
|
|
1794
1794
|
*
|
|
1795
|
-
* @category
|
|
1795
|
+
* @category combining
|
|
1796
1796
|
* @since 2.0.0
|
|
1797
1797
|
*/
|
|
1798
1798
|
<Output2, Input2, Error2, Env2>(other: Schedule<Output2, Input2, Error2, Env2>): <Output, Input, Error, Env>(
|
|
@@ -1829,7 +1829,7 @@ export const bothRight: {
|
|
|
1829
1829
|
* })
|
|
1830
1830
|
* ```
|
|
1831
1831
|
*
|
|
1832
|
-
* @category
|
|
1832
|
+
* @category combining
|
|
1833
1833
|
* @since 2.0.0
|
|
1834
1834
|
*/
|
|
1835
1835
|
<Output, Input, Error, Env, Output2, Input2, Error2, Env2>(
|
|
@@ -1877,7 +1877,7 @@ export const bothRight: {
|
|
|
1877
1877
|
* })
|
|
1878
1878
|
* ```
|
|
1879
1879
|
*
|
|
1880
|
-
* @category
|
|
1880
|
+
* @category combining
|
|
1881
1881
|
* @since 2.0.0
|
|
1882
1882
|
*/
|
|
1883
1883
|
export const bothWith: {
|
|
@@ -1917,7 +1917,7 @@ export const bothWith: {
|
|
|
1917
1917
|
* })
|
|
1918
1918
|
* ```
|
|
1919
1919
|
*
|
|
1920
|
-
* @category
|
|
1920
|
+
* @category combining
|
|
1921
1921
|
* @since 2.0.0
|
|
1922
1922
|
*/
|
|
1923
1923
|
<Output2, Input2, Error2, Env2, Output, Output3>(
|
|
@@ -1962,7 +1962,7 @@ export const bothWith: {
|
|
|
1962
1962
|
* })
|
|
1963
1963
|
* ```
|
|
1964
1964
|
*
|
|
1965
|
-
* @category
|
|
1965
|
+
* @category combining
|
|
1966
1966
|
* @since 2.0.0
|
|
1967
1967
|
*/
|
|
1968
1968
|
<Output, Input, Error, Env, Output2, Input2, Error2, Env2, Output3>(
|
|
@@ -2030,7 +2030,7 @@ export const bothWith: {
|
|
|
2030
2030
|
* })
|
|
2031
2031
|
* ```
|
|
2032
2032
|
*
|
|
2033
|
-
* @category
|
|
2033
|
+
* @category collecting
|
|
2034
2034
|
* @since 4.0.0
|
|
2035
2035
|
*/
|
|
2036
2036
|
export const collectInputs = <Output, Input, Error, Env>(
|
|
@@ -2067,7 +2067,7 @@ export const collectInputs = <Output, Input, Error, Env>(
|
|
|
2067
2067
|
* })
|
|
2068
2068
|
* ```
|
|
2069
2069
|
*
|
|
2070
|
-
* @category
|
|
2070
|
+
* @category collecting
|
|
2071
2071
|
* @since 4.0.0
|
|
2072
2072
|
*/
|
|
2073
2073
|
export const collectOutputs = <Output, Input, Error, Env>(
|
|
@@ -2154,7 +2154,7 @@ export const collectOutputs = <Output, Input, Error, Env>(
|
|
|
2154
2154
|
* })
|
|
2155
2155
|
* ```
|
|
2156
2156
|
*
|
|
2157
|
-
* @category
|
|
2157
|
+
* @category collecting
|
|
2158
2158
|
* @since 2.0.0
|
|
2159
2159
|
*/
|
|
2160
2160
|
export const collectWhile: {
|
|
@@ -2238,7 +2238,7 @@ export const collectWhile: {
|
|
|
2238
2238
|
* })
|
|
2239
2239
|
* ```
|
|
2240
2240
|
*
|
|
2241
|
-
* @category
|
|
2241
|
+
* @category collecting
|
|
2242
2242
|
* @since 2.0.0
|
|
2243
2243
|
*/
|
|
2244
2244
|
<Input, Output, Error2 = never, Env2 = never>(
|
|
@@ -2328,7 +2328,7 @@ export const collectWhile: {
|
|
|
2328
2328
|
* })
|
|
2329
2329
|
* ```
|
|
2330
2330
|
*
|
|
2331
|
-
* @category
|
|
2331
|
+
* @category collecting
|
|
2332
2332
|
* @since 2.0.0
|
|
2333
2333
|
*/
|
|
2334
2334
|
<Output, Input, Error, Env, Error2 = never, Env2 = never>(
|
|
@@ -3062,7 +3062,7 @@ export const during = (duration: Duration.Input): Schedule<Duration.Duration> =>
|
|
|
3062
3062
|
*
|
|
3063
3063
|
* @see {@link both} for continuing only while both schedules still recur
|
|
3064
3064
|
*
|
|
3065
|
-
* @category
|
|
3065
|
+
* @category combining
|
|
3066
3066
|
* @since 2.0.0
|
|
3067
3067
|
*/
|
|
3068
3068
|
export const either: {
|
|
@@ -3142,7 +3142,7 @@ export const either: {
|
|
|
3142
3142
|
*
|
|
3143
3143
|
* @see {@link both} for continuing only while both schedules still recur
|
|
3144
3144
|
*
|
|
3145
|
-
* @category
|
|
3145
|
+
* @category combining
|
|
3146
3146
|
* @since 2.0.0
|
|
3147
3147
|
*/
|
|
3148
3148
|
<Output2, Input2, Error2, Env2>(other: Schedule<Output2, Input2, Error2, Env2>): <Output, Input, Error, Env>(
|
|
@@ -3224,7 +3224,7 @@ export const either: {
|
|
|
3224
3224
|
*
|
|
3225
3225
|
* @see {@link both} for continuing only while both schedules still recur
|
|
3226
3226
|
*
|
|
3227
|
-
* @category
|
|
3227
|
+
* @category combining
|
|
3228
3228
|
* @since 2.0.0
|
|
3229
3229
|
*/
|
|
3230
3230
|
<Output, Input, Error, Env, Output2, Input2, Error2, Env2>(
|
|
@@ -3269,7 +3269,7 @@ export const either: {
|
|
|
3269
3269
|
* })
|
|
3270
3270
|
* ```
|
|
3271
3271
|
*
|
|
3272
|
-
* @category
|
|
3272
|
+
* @category combining
|
|
3273
3273
|
* @since 4.0.0
|
|
3274
3274
|
*/
|
|
3275
3275
|
export const eitherLeft: {
|
|
@@ -3305,7 +3305,7 @@ export const eitherLeft: {
|
|
|
3305
3305
|
* })
|
|
3306
3306
|
* ```
|
|
3307
3307
|
*
|
|
3308
|
-
* @category
|
|
3308
|
+
* @category combining
|
|
3309
3309
|
* @since 4.0.0
|
|
3310
3310
|
*/
|
|
3311
3311
|
<Output2, Input2, Error2, Env2>(other: Schedule<Output2, Input2, Error2, Env2>): <Output, Input, Error, Env>(
|
|
@@ -3343,7 +3343,7 @@ export const eitherLeft: {
|
|
|
3343
3343
|
* })
|
|
3344
3344
|
* ```
|
|
3345
3345
|
*
|
|
3346
|
-
* @category
|
|
3346
|
+
* @category combining
|
|
3347
3347
|
* @since 4.0.0
|
|
3348
3348
|
*/
|
|
3349
3349
|
<Output, Input, Error, Env, Output2, Input2, Error2, Env2>(
|
|
@@ -3387,7 +3387,7 @@ export const eitherLeft: {
|
|
|
3387
3387
|
* })
|
|
3388
3388
|
* ```
|
|
3389
3389
|
*
|
|
3390
|
-
* @category
|
|
3390
|
+
* @category combining
|
|
3391
3391
|
* @since 4.0.0
|
|
3392
3392
|
*/
|
|
3393
3393
|
export const eitherRight: {
|
|
@@ -3423,7 +3423,7 @@ export const eitherRight: {
|
|
|
3423
3423
|
* })
|
|
3424
3424
|
* ```
|
|
3425
3425
|
*
|
|
3426
|
-
* @category
|
|
3426
|
+
* @category combining
|
|
3427
3427
|
* @since 4.0.0
|
|
3428
3428
|
*/
|
|
3429
3429
|
<Output2, Input2, Error2, Env2>(other: Schedule<Output2, Input2, Error2, Env2>): <Output, Input, Error, Env>(
|
|
@@ -3461,7 +3461,7 @@ export const eitherRight: {
|
|
|
3461
3461
|
* })
|
|
3462
3462
|
* ```
|
|
3463
3463
|
*
|
|
3464
|
-
* @category
|
|
3464
|
+
* @category combining
|
|
3465
3465
|
* @since 4.0.0
|
|
3466
3466
|
*/
|
|
3467
3467
|
<Output, Input, Error, Env, Output2, Input2, Error2, Env2>(
|
|
@@ -3510,7 +3510,7 @@ export const eitherRight: {
|
|
|
3510
3510
|
* })
|
|
3511
3511
|
* ```
|
|
3512
3512
|
*
|
|
3513
|
-
* @category
|
|
3513
|
+
* @category combining
|
|
3514
3514
|
* @since 2.0.0
|
|
3515
3515
|
*/
|
|
3516
3516
|
export const eitherWith: {
|
|
@@ -3551,7 +3551,7 @@ export const eitherWith: {
|
|
|
3551
3551
|
* })
|
|
3552
3552
|
* ```
|
|
3553
3553
|
*
|
|
3554
|
-
* @category
|
|
3554
|
+
* @category combining
|
|
3555
3555
|
* @since 2.0.0
|
|
3556
3556
|
*/
|
|
3557
3557
|
<Output2, Input2, Error2, Env2, Output, Output3>(
|
|
@@ -3597,7 +3597,7 @@ export const eitherWith: {
|
|
|
3597
3597
|
* })
|
|
3598
3598
|
* ```
|
|
3599
3599
|
*
|
|
3600
|
-
* @category
|
|
3600
|
+
* @category combining
|
|
3601
3601
|
* @since 2.0.0
|
|
3602
3602
|
*/
|
|
3603
3603
|
<Output, Input, Error, Env, Output2, Input2, Error2, Env2, Output3>(
|
|
@@ -3660,7 +3660,7 @@ export const eitherWith: {
|
|
|
3660
3660
|
* })
|
|
3661
3661
|
* ```
|
|
3662
3662
|
*
|
|
3663
|
-
* @category
|
|
3663
|
+
* @category combining
|
|
3664
3664
|
* @since 2.0.0
|
|
3665
3665
|
*/
|
|
3666
3666
|
[Output3, Duration.Duration]>([
|
|
@@ -4200,7 +4200,7 @@ export const map: {
|
|
|
4200
4200
|
* })
|
|
4201
4201
|
* ```
|
|
4202
4202
|
*
|
|
4203
|
-
* @category
|
|
4203
|
+
* @category delays & timeouts
|
|
4204
4204
|
* @since 2.0.0
|
|
4205
4205
|
*/
|
|
4206
4206
|
export const modifyDelay: {
|
|
@@ -4234,7 +4234,7 @@ export const modifyDelay: {
|
|
|
4234
4234
|
* })
|
|
4235
4235
|
* ```
|
|
4236
4236
|
*
|
|
4237
|
-
* @category
|
|
4237
|
+
* @category delays & timeouts
|
|
4238
4238
|
* @since 2.0.0
|
|
4239
4239
|
*/
|
|
4240
4240
|
<Output, Error2 = never, Env2 = never>(
|
|
@@ -4275,7 +4275,7 @@ export const modifyDelay: {
|
|
|
4275
4275
|
* })
|
|
4276
4276
|
* ```
|
|
4277
4277
|
*
|
|
4278
|
-
* @category
|
|
4278
|
+
* @category delays & timeouts
|
|
4279
4279
|
* @since 2.0.0
|
|
4280
4280
|
*/
|
|
4281
4281
|
<Output, Input, Error, Env, Error2 = never, Env2 = never>(
|
|
@@ -4312,7 +4312,7 @@ export const modifyDelay: {
|
|
|
4312
4312
|
*
|
|
4313
4313
|
* @see {@link modifyDelay} for replacing recurrence delays with a custom effectful transformation
|
|
4314
4314
|
*
|
|
4315
|
-
* @category
|
|
4315
|
+
* @category delays & timeouts
|
|
4316
4316
|
* @since 2.0.0
|
|
4317
4317
|
*/
|
|
4318
4318
|
export const jittered = <Output, Input, Error, Env>(
|
|
@@ -4350,7 +4350,7 @@ export const jittered = <Output, Input, Error, Env>(
|
|
|
4350
4350
|
* })
|
|
4351
4351
|
* ```
|
|
4352
4352
|
*
|
|
4353
|
-
* @category
|
|
4353
|
+
* @category mapping
|
|
4354
4354
|
* @since 2.0.0
|
|
4355
4355
|
*/
|
|
4356
4356
|
export const passthrough = <Output, Input, Error, Env>(
|
|
@@ -4546,7 +4546,7 @@ export const recurs = (times: number): Schedule<number> =>
|
|
|
4546
4546
|
* })
|
|
4547
4547
|
* ```
|
|
4548
4548
|
*
|
|
4549
|
-
* @category
|
|
4549
|
+
* @category folding
|
|
4550
4550
|
* @since 2.0.0
|
|
4551
4551
|
*/
|
|
4552
4552
|
export const reduce: {
|
|
@@ -4659,7 +4659,7 @@ export const reduce: {
|
|
|
4659
4659
|
* })
|
|
4660
4660
|
* ```
|
|
4661
4661
|
*
|
|
4662
|
-
* @category
|
|
4662
|
+
* @category folding
|
|
4663
4663
|
* @since 2.0.0
|
|
4664
4664
|
*/
|
|
4665
4665
|
<State, Output, Error2 = never, Env2 = never>(
|
|
@@ -4777,7 +4777,7 @@ export const reduce: {
|
|
|
4777
4777
|
* })
|
|
4778
4778
|
* ```
|
|
4779
4779
|
*
|
|
4780
|
-
* @category
|
|
4780
|
+
* @category folding
|
|
4781
4781
|
* @since 2.0.0
|
|
4782
4782
|
*/
|
|
4783
4783
|
<Output, Input, Error, Env, State, Error2 = never, Env2 = never>(
|
|
@@ -5758,7 +5758,7 @@ export const tapOutput: {
|
|
|
5758
5758
|
*
|
|
5759
5759
|
* @see {@link recurs} for creating a count-limited schedule
|
|
5760
5760
|
*
|
|
5761
|
-
* @category
|
|
5761
|
+
* @category taking
|
|
5762
5762
|
* @since 4.0.0
|
|
5763
5763
|
*/
|
|
5764
5764
|
export const take: {
|
|
@@ -5854,7 +5854,7 @@ export const take: {
|
|
|
5854
5854
|
*
|
|
5855
5855
|
* @see {@link recurs} for creating a count-limited schedule
|
|
5856
5856
|
*
|
|
5857
|
-
* @category
|
|
5857
|
+
* @category taking
|
|
5858
5858
|
* @since 4.0.0
|
|
5859
5859
|
*/
|
|
5860
5860
|
(n: number): <Output, Input, Error, Env>(
|
|
@@ -5952,7 +5952,7 @@ export const take: {
|
|
|
5952
5952
|
*
|
|
5953
5953
|
* @see {@link recurs} for creating a count-limited schedule
|
|
5954
5954
|
*
|
|
5955
|
-
* @category
|
|
5955
|
+
* @category taking
|
|
5956
5956
|
* @since 4.0.0
|
|
5957
5957
|
*/
|
|
5958
5958
|
<Output, Input, Error, Env>(self: Schedule<Output, Input, Error, Env>, n: number): Schedule<Output, Input, Error, Env>
|
|
@@ -6124,7 +6124,7 @@ export {
|
|
|
6124
6124
|
* @see {@link collectWhile} for collecting outputs while using the same predicate
|
|
6125
6125
|
* @see {@link take} for stopping after a fixed number of schedule outputs
|
|
6126
6126
|
*
|
|
6127
|
-
* @category
|
|
6127
|
+
* @category filtering
|
|
6128
6128
|
* @since 4.0.0
|
|
6129
6129
|
*/
|
|
6130
6130
|
while_ as while
|