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/Chunk.ts
CHANGED
|
@@ -225,7 +225,7 @@ const emptyArray: ReadonlyArray<never> = []
|
|
|
225
225
|
* console.log(eq(chunk1, chunk3)) // false
|
|
226
226
|
* ```
|
|
227
227
|
*
|
|
228
|
-
* @category
|
|
228
|
+
* @category instances
|
|
229
229
|
* @since 4.0.0
|
|
230
230
|
*/
|
|
231
231
|
export const makeEquivalence = <A>(isEquivalent: Equivalence.Equivalence<A>): Equivalence.Equivalence<Chunk<A>> =>
|
|
@@ -849,7 +849,7 @@ export const getUnsafe: {
|
|
|
849
849
|
* @see {@link prepend} for adding one element before the existing elements
|
|
850
850
|
* @see {@link appendAll} for appending all elements from another chunk
|
|
851
851
|
*
|
|
852
|
-
* @category
|
|
852
|
+
* @category combining
|
|
853
853
|
* @since 2.0.0
|
|
854
854
|
*/
|
|
855
855
|
export const append: {
|
|
@@ -879,7 +879,7 @@ export const append: {
|
|
|
879
879
|
* @see {@link prepend} for adding one element before the existing elements
|
|
880
880
|
* @see {@link appendAll} for appending all elements from another chunk
|
|
881
881
|
*
|
|
882
|
-
* @category
|
|
882
|
+
* @category combining
|
|
883
883
|
* @since 2.0.0
|
|
884
884
|
*/
|
|
885
885
|
<A2>(a: A2): <A>(self: Chunk<A>) => NonEmptyChunk<A2 | A>
|
|
@@ -909,7 +909,7 @@ export const append: {
|
|
|
909
909
|
* @see {@link prepend} for adding one element before the existing elements
|
|
910
910
|
* @see {@link appendAll} for appending all elements from another chunk
|
|
911
911
|
*
|
|
912
|
-
* @category
|
|
912
|
+
* @category combining
|
|
913
913
|
* @since 2.0.0
|
|
914
914
|
*/
|
|
915
915
|
<A, A2>(self: Chunk<A>, a: A2): NonEmptyChunk<A | A2>
|
|
@@ -933,7 +933,7 @@ export const append: {
|
|
|
933
933
|
* console.log(Chunk.toArray(singleElement)) // ["first"]
|
|
934
934
|
* ```
|
|
935
935
|
*
|
|
936
|
-
* @category
|
|
936
|
+
* @category combining
|
|
937
937
|
* @since 2.0.0
|
|
938
938
|
*/
|
|
939
939
|
export const prepend: {
|
|
@@ -955,7 +955,7 @@ export const prepend: {
|
|
|
955
955
|
* console.log(Chunk.toArray(singleElement)) // ["first"]
|
|
956
956
|
* ```
|
|
957
957
|
*
|
|
958
|
-
* @category
|
|
958
|
+
* @category combining
|
|
959
959
|
* @since 2.0.0
|
|
960
960
|
*/
|
|
961
961
|
<B>(elem: B): <A>(self: Chunk<A>) => NonEmptyChunk<B | A>
|
|
@@ -977,7 +977,7 @@ export const prepend: {
|
|
|
977
977
|
* console.log(Chunk.toArray(singleElement)) // ["first"]
|
|
978
978
|
* ```
|
|
979
979
|
*
|
|
980
|
-
* @category
|
|
980
|
+
* @category combining
|
|
981
981
|
* @since 2.0.0
|
|
982
982
|
*/
|
|
983
983
|
<A, B>(self: Chunk<A>, elem: B): NonEmptyChunk<A | B>
|
|
@@ -1292,7 +1292,7 @@ export const dropWhile: {
|
|
|
1292
1292
|
* // [ "a", "b", 1, 2 ]
|
|
1293
1293
|
* ```
|
|
1294
1294
|
*
|
|
1295
|
-
* @category
|
|
1295
|
+
* @category combining
|
|
1296
1296
|
* @since 2.0.0
|
|
1297
1297
|
*/
|
|
1298
1298
|
export const prependAll: {
|
|
@@ -1314,7 +1314,7 @@ export const prependAll: {
|
|
|
1314
1314
|
* // [ "a", "b", 1, 2 ]
|
|
1315
1315
|
* ```
|
|
1316
1316
|
*
|
|
1317
|
-
* @category
|
|
1317
|
+
* @category combining
|
|
1318
1318
|
* @since 2.0.0
|
|
1319
1319
|
*/
|
|
1320
1320
|
<S extends Chunk<any>, T extends Chunk<any>>(that: T): (self: S) => Chunk.OrNonEmpty<S, T, Chunk.Infer<S> | Chunk.Infer<T>>
|
|
@@ -1336,7 +1336,7 @@ export const prependAll: {
|
|
|
1336
1336
|
* // [ "a", "b", 1, 2 ]
|
|
1337
1337
|
* ```
|
|
1338
1338
|
*
|
|
1339
|
-
* @category
|
|
1339
|
+
* @category combining
|
|
1340
1340
|
* @since 2.0.0
|
|
1341
1341
|
*/
|
|
1342
1342
|
<A, B>(self: Chunk<A>, that: NonEmptyChunk<B>): NonEmptyChunk<A | B>
|
|
@@ -1358,7 +1358,7 @@ export const prependAll: {
|
|
|
1358
1358
|
* // [ "a", "b", 1, 2 ]
|
|
1359
1359
|
* ```
|
|
1360
1360
|
*
|
|
1361
|
-
* @category
|
|
1361
|
+
* @category combining
|
|
1362
1362
|
* @since 2.0.0
|
|
1363
1363
|
*/
|
|
1364
1364
|
<A, B>(self: NonEmptyChunk<A>, that: Chunk<B>): NonEmptyChunk<A | B>
|
|
@@ -1380,7 +1380,7 @@ export const prependAll: {
|
|
|
1380
1380
|
* // [ "a", "b", 1, 2 ]
|
|
1381
1381
|
* ```
|
|
1382
1382
|
*
|
|
1383
|
-
* @category
|
|
1383
|
+
* @category combining
|
|
1384
1384
|
* @since 2.0.0
|
|
1385
1385
|
*/
|
|
1386
1386
|
<A, B>(self: Chunk<A>, that: Chunk<B>): Chunk<A | B>
|
|
@@ -1412,7 +1412,7 @@ export const prependAll: {
|
|
|
1412
1412
|
* @see {@link prependAll} for concatenating chunks in the opposite order
|
|
1413
1413
|
* @see {@link append} for adding a single element to the end
|
|
1414
1414
|
*
|
|
1415
|
-
* @category
|
|
1415
|
+
* @category combining
|
|
1416
1416
|
* @since 2.0.0
|
|
1417
1417
|
*/
|
|
1418
1418
|
export const appendAll: {
|
|
@@ -1442,7 +1442,7 @@ export const appendAll: {
|
|
|
1442
1442
|
* @see {@link prependAll} for concatenating chunks in the opposite order
|
|
1443
1443
|
* @see {@link append} for adding a single element to the end
|
|
1444
1444
|
*
|
|
1445
|
-
* @category
|
|
1445
|
+
* @category combining
|
|
1446
1446
|
* @since 2.0.0
|
|
1447
1447
|
*/
|
|
1448
1448
|
<S extends Chunk<any>, T extends Chunk<any>>(that: T): (self: S) => Chunk.OrNonEmpty<S, T, Chunk.Infer<S> | Chunk.Infer<T>>
|
|
@@ -1472,7 +1472,7 @@ export const appendAll: {
|
|
|
1472
1472
|
* @see {@link prependAll} for concatenating chunks in the opposite order
|
|
1473
1473
|
* @see {@link append} for adding a single element to the end
|
|
1474
1474
|
*
|
|
1475
|
-
* @category
|
|
1475
|
+
* @category combining
|
|
1476
1476
|
* @since 2.0.0
|
|
1477
1477
|
*/
|
|
1478
1478
|
<A, B>(self: Chunk<A>, that: NonEmptyChunk<B>): NonEmptyChunk<A | B>
|
|
@@ -1502,7 +1502,7 @@ export const appendAll: {
|
|
|
1502
1502
|
* @see {@link prependAll} for concatenating chunks in the opposite order
|
|
1503
1503
|
* @see {@link append} for adding a single element to the end
|
|
1504
1504
|
*
|
|
1505
|
-
* @category
|
|
1505
|
+
* @category combining
|
|
1506
1506
|
* @since 2.0.0
|
|
1507
1507
|
*/
|
|
1508
1508
|
<A, B>(self: NonEmptyChunk<A>, that: Chunk<B>): NonEmptyChunk<A | B>
|
|
@@ -1532,7 +1532,7 @@ export const appendAll: {
|
|
|
1532
1532
|
* @see {@link prependAll} for concatenating chunks in the opposite order
|
|
1533
1533
|
* @see {@link append} for adding a single element to the end
|
|
1534
1534
|
*
|
|
1535
|
-
* @category
|
|
1535
|
+
* @category combining
|
|
1536
1536
|
* @since 2.0.0
|
|
1537
1537
|
*/
|
|
1538
1538
|
<A, B>(self: Chunk<A>, that: Chunk<B>): Chunk<A | B>
|
|
@@ -1571,7 +1571,7 @@ export const appendAll: {
|
|
|
1571
1571
|
* @see {@link prependAll} for concatenating chunks in the opposite order
|
|
1572
1572
|
* @see {@link append} for adding a single element to the end
|
|
1573
1573
|
*
|
|
1574
|
-
* @category
|
|
1574
|
+
* @category combining
|
|
1575
1575
|
* @since 2.0.0
|
|
1576
1576
|
*/
|
|
1577
1577
|
A | B>({ _tag: "IConcat", left: self, right: that });
|
package/src/Context.ts
CHANGED
|
@@ -2000,7 +2000,7 @@ export const omit = <S extends ReadonlyArray<Key<any, any>>>(
|
|
|
2000
2000
|
* @see {@link pick} for keeping selected services
|
|
2001
2001
|
* @see {@link omit} for removing selected services
|
|
2002
2002
|
*
|
|
2003
|
-
* @category
|
|
2003
|
+
* @category mutations
|
|
2004
2004
|
* @since 4.0.0
|
|
2005
2005
|
*/
|
|
2006
2006
|
export const mutate: {
|
|
@@ -2019,7 +2019,7 @@ export const mutate: {
|
|
|
2019
2019
|
* @see {@link pick} for keeping selected services
|
|
2020
2020
|
* @see {@link omit} for removing selected services
|
|
2021
2021
|
*
|
|
2022
|
-
* @category
|
|
2022
|
+
* @category mutations
|
|
2023
2023
|
* @since 4.0.0
|
|
2024
2024
|
*/
|
|
2025
2025
|
<Services, B>(f: (context: Context<Services>) => Context<B>): <Services>(self: Context<Services>) => Context<B>
|
|
@@ -2038,7 +2038,7 @@ export const mutate: {
|
|
|
2038
2038
|
* @see {@link pick} for keeping selected services
|
|
2039
2039
|
* @see {@link omit} for removing selected services
|
|
2040
2040
|
*
|
|
2041
|
-
* @category
|
|
2041
|
+
* @category mutations
|
|
2042
2042
|
* @since 4.0.0
|
|
2043
2043
|
*/
|
|
2044
2044
|
<Services, B>(self: Context<Services>, f: (context: Context<Services>) => Context<B>): Context<B>
|
|
@@ -2060,7 +2060,7 @@ export const mutate: {
|
|
|
2060
2060
|
* @see {@link pick} for keeping selected services
|
|
2061
2061
|
* @see {@link omit} for removing selected services
|
|
2062
2062
|
*
|
|
2063
|
-
* @category
|
|
2063
|
+
* @category mutations
|
|
2064
2064
|
* @since 4.0.0
|
|
2065
2065
|
*/
|
|
2066
2066
|
Services>(new Map(self.mapUnsafe))
|
package/src/Cron.ts
CHANGED
|
@@ -690,7 +690,7 @@ export const parseUnsafe = (cron: string, tz?: DateTime.TimeZone | string): Cron
|
|
|
690
690
|
* @see {@link next} for finding the next matching date/time
|
|
691
691
|
* @see {@link prev} for finding the previous matching date/time
|
|
692
692
|
*
|
|
693
|
-
* @category
|
|
693
|
+
* @category predicates
|
|
694
694
|
* @since 2.0.0
|
|
695
695
|
*/
|
|
696
696
|
export const match = (cron: Cron, date: DateTime.DateTime.Input): boolean => {
|
|
@@ -766,7 +766,7 @@ const daysInMonth = (date: Date): number =>
|
|
|
766
766
|
* @see {@link prev} for finding the previous scheduled occurrence
|
|
767
767
|
* @see {@link sequence} for iterating future scheduled occurrences
|
|
768
768
|
*
|
|
769
|
-
* @category
|
|
769
|
+
* @category getters
|
|
770
770
|
* @since 2.0.0
|
|
771
771
|
*/
|
|
772
772
|
export const next = (cron: Cron, now?: DateTime.DateTime.Input): Date => {
|
|
@@ -792,7 +792,7 @@ export const next = (cron: Cron, now?: DateTime.DateTime.Input): Date => {
|
|
|
792
792
|
*
|
|
793
793
|
* @see {@link next} for finding the next scheduled occurrence
|
|
794
794
|
*
|
|
795
|
-
* @category
|
|
795
|
+
* @category getters
|
|
796
796
|
* @since 3.20.0
|
|
797
797
|
*/
|
|
798
798
|
export const prev = (cron: Cron, now?: DateTime.DateTime.Input): Date => {
|
|
@@ -983,7 +983,7 @@ const stepCron = (cron: Cron, now: DateTime.DateTime.Input | undefined, directio
|
|
|
983
983
|
*
|
|
984
984
|
* @see {@link next} for computing one next occurrence
|
|
985
985
|
*
|
|
986
|
-
* @category
|
|
986
|
+
* @category sequencing
|
|
987
987
|
* @since 2.0.0
|
|
988
988
|
*/
|
|
989
989
|
export const sequence = function*(cron: Cron, now?: DateTime.DateTime.Input): IterableIterator<Date> {
|
package/src/Deferred.ts
CHANGED
|
@@ -314,7 +314,7 @@ export {
|
|
|
314
314
|
*
|
|
315
315
|
* @see {@link completeWith} for storing an effect directly without memoizing its result
|
|
316
316
|
*
|
|
317
|
-
* @category
|
|
317
|
+
* @category completion
|
|
318
318
|
* @since 2.0.0
|
|
319
319
|
*/
|
|
320
320
|
export const complete: {
|
|
@@ -349,7 +349,7 @@ export const complete: {
|
|
|
349
349
|
*
|
|
350
350
|
* @see {@link completeWith} for storing an effect directly without memoizing its result
|
|
351
351
|
*
|
|
352
|
-
* @category
|
|
352
|
+
* @category completion
|
|
353
353
|
* @since 2.0.0
|
|
354
354
|
*/
|
|
355
355
|
<A, E, R>(effect: Effect<A, E, R>): (self: Deferred<A, E>) => Effect<boolean, never, R>
|
|
@@ -384,7 +384,7 @@ export const complete: {
|
|
|
384
384
|
*
|
|
385
385
|
* @see {@link completeWith} for storing an effect directly without memoizing its result
|
|
386
386
|
*
|
|
387
|
-
* @category
|
|
387
|
+
* @category completion
|
|
388
388
|
* @since 2.0.0
|
|
389
389
|
*/
|
|
390
390
|
<A, E, R>(self: Deferred<A, E>, effect: Effect<A, E, R>): Effect<boolean, never, R>
|
|
@@ -430,7 +430,7 @@ export const complete: {
|
|
|
430
430
|
* @see {@link complete} for running an effect once and sharing its result
|
|
431
431
|
* @see {@link done} for completing from an already computed `Exit`
|
|
432
432
|
*
|
|
433
|
-
* @category
|
|
433
|
+
* @category completion
|
|
434
434
|
* @since 2.0.0
|
|
435
435
|
*/
|
|
436
436
|
export const completeWith: {
|
|
@@ -470,7 +470,7 @@ export const completeWith: {
|
|
|
470
470
|
* @see {@link complete} for running an effect once and sharing its result
|
|
471
471
|
* @see {@link done} for completing from an already computed `Exit`
|
|
472
472
|
*
|
|
473
|
-
* @category
|
|
473
|
+
* @category completion
|
|
474
474
|
* @since 2.0.0
|
|
475
475
|
*/
|
|
476
476
|
<A, E>(effect: Effect<A, E>): (self: Deferred<A, E>) => Effect<boolean>
|
|
@@ -510,7 +510,7 @@ export const completeWith: {
|
|
|
510
510
|
* @see {@link complete} for running an effect once and sharing its result
|
|
511
511
|
* @see {@link done} for completing from an already computed `Exit`
|
|
512
512
|
*
|
|
513
|
-
* @category
|
|
513
|
+
* @category completion
|
|
514
514
|
* @since 2.0.0
|
|
515
515
|
*/
|
|
516
516
|
<A, E>(self: Deferred<A, E>, effect: Effect<A, E>): Effect<boolean>
|
|
@@ -552,7 +552,7 @@ export const completeWith: {
|
|
|
552
552
|
* @see {@link succeed} for completing with a success value
|
|
553
553
|
* @see {@link failCause} for completing with a failure cause
|
|
554
554
|
*
|
|
555
|
-
* @category
|
|
555
|
+
* @category completion
|
|
556
556
|
* @since 2.0.0
|
|
557
557
|
*/
|
|
558
558
|
export const done: {
|
|
@@ -588,7 +588,7 @@ export const done: {
|
|
|
588
588
|
* @see {@link succeed} for completing with a success value
|
|
589
589
|
* @see {@link failCause} for completing with a failure cause
|
|
590
590
|
*
|
|
591
|
-
* @category
|
|
591
|
+
* @category completion
|
|
592
592
|
* @since 2.0.0
|
|
593
593
|
*/
|
|
594
594
|
<A, E>(exit: Exit.Exit<A, E>): (self: Deferred<A, E>) => Effect<boolean>
|
|
@@ -624,7 +624,7 @@ export const done: {
|
|
|
624
624
|
* @see {@link succeed} for completing with a success value
|
|
625
625
|
* @see {@link failCause} for completing with a failure cause
|
|
626
626
|
*
|
|
627
|
-
* @category
|
|
627
|
+
* @category completion
|
|
628
628
|
* @since 2.0.0
|
|
629
629
|
*/
|
|
630
630
|
<A, E>(self: Deferred<A, E>, exit: Exit.Exit<A, E>): Effect<boolean>
|
|
@@ -655,7 +655,7 @@ export const done: {
|
|
|
655
655
|
* })
|
|
656
656
|
* ```
|
|
657
657
|
*
|
|
658
|
-
* @category
|
|
658
|
+
* @category completion
|
|
659
659
|
* @since 2.0.0
|
|
660
660
|
*/
|
|
661
661
|
export const fail: {
|
|
@@ -684,7 +684,7 @@ export const fail: {
|
|
|
684
684
|
* })
|
|
685
685
|
* ```
|
|
686
686
|
*
|
|
687
|
-
* @category
|
|
687
|
+
* @category completion
|
|
688
688
|
* @since 2.0.0
|
|
689
689
|
*/
|
|
690
690
|
<E>(error: E): <A>(self: Deferred<A, E>) => Effect<boolean>
|
|
@@ -713,7 +713,7 @@ export const fail: {
|
|
|
713
713
|
* })
|
|
714
714
|
* ```
|
|
715
715
|
*
|
|
716
|
-
* @category
|
|
716
|
+
* @category completion
|
|
717
717
|
* @since 2.0.0
|
|
718
718
|
*/
|
|
719
719
|
<A, E>(self: Deferred<A, E>, error: E): Effect<boolean>
|
|
@@ -745,7 +745,7 @@ export const fail: {
|
|
|
745
745
|
* })
|
|
746
746
|
* ```
|
|
747
747
|
*
|
|
748
|
-
* @category
|
|
748
|
+
* @category completion
|
|
749
749
|
* @since 2.0.0
|
|
750
750
|
*/
|
|
751
751
|
export const failSync: {
|
|
@@ -775,7 +775,7 @@ export const failSync: {
|
|
|
775
775
|
* })
|
|
776
776
|
* ```
|
|
777
777
|
*
|
|
778
|
-
* @category
|
|
778
|
+
* @category completion
|
|
779
779
|
* @since 2.0.0
|
|
780
780
|
*/
|
|
781
781
|
<E>(evaluate: LazyArg<E>): <A>(self: Deferred<A, E>) => Effect<boolean>
|
|
@@ -805,7 +805,7 @@ export const failSync: {
|
|
|
805
805
|
* })
|
|
806
806
|
* ```
|
|
807
807
|
*
|
|
808
|
-
* @category
|
|
808
|
+
* @category completion
|
|
809
809
|
* @since 2.0.0
|
|
810
810
|
*/
|
|
811
811
|
<A, E>(self: Deferred<A, E>, evaluate: LazyArg<E>): Effect<boolean>
|
|
@@ -843,7 +843,7 @@ export const failSync: {
|
|
|
843
843
|
* })
|
|
844
844
|
* ```
|
|
845
845
|
*
|
|
846
|
-
* @category
|
|
846
|
+
* @category completion
|
|
847
847
|
* @since 2.0.0
|
|
848
848
|
*/
|
|
849
849
|
export const failCause: {
|
|
@@ -875,7 +875,7 @@ export const failCause: {
|
|
|
875
875
|
* })
|
|
876
876
|
* ```
|
|
877
877
|
*
|
|
878
|
-
* @category
|
|
878
|
+
* @category completion
|
|
879
879
|
* @since 2.0.0
|
|
880
880
|
*/
|
|
881
881
|
<E>(cause: Cause.Cause<E>): <A>(self: Deferred<A, E>) => Effect<boolean>
|
|
@@ -907,7 +907,7 @@ export const failCause: {
|
|
|
907
907
|
* })
|
|
908
908
|
* ```
|
|
909
909
|
*
|
|
910
|
-
* @category
|
|
910
|
+
* @category completion
|
|
911
911
|
* @since 2.0.0
|
|
912
912
|
*/
|
|
913
913
|
<A, E>(self: Deferred<A, E>, cause: Cause.Cause<E>): Effect<boolean>
|
|
@@ -945,7 +945,7 @@ export const failCause: {
|
|
|
945
945
|
* })
|
|
946
946
|
* ```
|
|
947
947
|
*
|
|
948
|
-
* @category
|
|
948
|
+
* @category completion
|
|
949
949
|
* @since 2.0.0
|
|
950
950
|
*/
|
|
951
951
|
export const failCauseSync: {
|
|
@@ -978,7 +978,7 @@ export const failCauseSync: {
|
|
|
978
978
|
* })
|
|
979
979
|
* ```
|
|
980
980
|
*
|
|
981
|
-
* @category
|
|
981
|
+
* @category completion
|
|
982
982
|
* @since 2.0.0
|
|
983
983
|
*/
|
|
984
984
|
<E>(evaluate: LazyArg<Cause.Cause<E>>): <A>(self: Deferred<A, E>) => Effect<boolean>
|
|
@@ -1011,7 +1011,7 @@ export const failCauseSync: {
|
|
|
1011
1011
|
* })
|
|
1012
1012
|
* ```
|
|
1013
1013
|
*
|
|
1014
|
-
* @category
|
|
1014
|
+
* @category completion
|
|
1015
1015
|
* @since 2.0.0
|
|
1016
1016
|
*/
|
|
1017
1017
|
<A, E>(self: Deferred<A, E>, evaluate: LazyArg<Cause.Cause<E>>): Effect<boolean>
|
|
@@ -1049,7 +1049,7 @@ export const failCauseSync: {
|
|
|
1049
1049
|
* })
|
|
1050
1050
|
* ```
|
|
1051
1051
|
*
|
|
1052
|
-
* @category
|
|
1052
|
+
* @category completion
|
|
1053
1053
|
* @since 2.0.0
|
|
1054
1054
|
*/
|
|
1055
1055
|
export const die: {
|
|
@@ -1081,7 +1081,7 @@ export const die: {
|
|
|
1081
1081
|
* })
|
|
1082
1082
|
* ```
|
|
1083
1083
|
*
|
|
1084
|
-
* @category
|
|
1084
|
+
* @category completion
|
|
1085
1085
|
* @since 2.0.0
|
|
1086
1086
|
*/
|
|
1087
1087
|
(defect: unknown): <A, E>(self: Deferred<A, E>) => Effect<boolean>
|
|
@@ -1113,7 +1113,7 @@ export const die: {
|
|
|
1113
1113
|
* })
|
|
1114
1114
|
* ```
|
|
1115
1115
|
*
|
|
1116
|
-
* @category
|
|
1116
|
+
* @category completion
|
|
1117
1117
|
* @since 2.0.0
|
|
1118
1118
|
*/
|
|
1119
1119
|
<A, E>(self: Deferred<A, E>, defect: unknown): Effect<boolean>
|
|
@@ -1148,7 +1148,7 @@ export const die: {
|
|
|
1148
1148
|
* })
|
|
1149
1149
|
* ```
|
|
1150
1150
|
*
|
|
1151
|
-
* @category
|
|
1151
|
+
* @category completion
|
|
1152
1152
|
* @since 2.0.0
|
|
1153
1153
|
*/
|
|
1154
1154
|
export const dieSync: {
|
|
@@ -1181,7 +1181,7 @@ export const dieSync: {
|
|
|
1181
1181
|
* })
|
|
1182
1182
|
* ```
|
|
1183
1183
|
*
|
|
1184
|
-
* @category
|
|
1184
|
+
* @category completion
|
|
1185
1185
|
* @since 2.0.0
|
|
1186
1186
|
*/
|
|
1187
1187
|
(evaluate: LazyArg<unknown>): <A, E>(self: Deferred<A, E>) => Effect<boolean>
|
|
@@ -1214,7 +1214,7 @@ export const dieSync: {
|
|
|
1214
1214
|
* })
|
|
1215
1215
|
* ```
|
|
1216
1216
|
*
|
|
1217
|
-
* @category
|
|
1217
|
+
* @category completion
|
|
1218
1218
|
* @since 2.0.0
|
|
1219
1219
|
*/
|
|
1220
1220
|
<A, E>(self: Deferred<A, E>, evaluate: LazyArg<unknown>): Effect<boolean>
|
|
@@ -1250,7 +1250,7 @@ export const dieSync: {
|
|
|
1250
1250
|
* })
|
|
1251
1251
|
* ```
|
|
1252
1252
|
*
|
|
1253
|
-
* @category
|
|
1253
|
+
* @category completion
|
|
1254
1254
|
* @since 2.0.0
|
|
1255
1255
|
*/
|
|
1256
1256
|
export const interrupt = <A, E>(self: Deferred<A, E>): Effect<boolean> =>
|
|
@@ -1282,7 +1282,7 @@ export const interrupt = <A, E>(self: Deferred<A, E>): Effect<boolean> =>
|
|
|
1282
1282
|
* })
|
|
1283
1283
|
* ```
|
|
1284
1284
|
*
|
|
1285
|
-
* @category
|
|
1285
|
+
* @category completion
|
|
1286
1286
|
* @since 2.0.0
|
|
1287
1287
|
*/
|
|
1288
1288
|
export const interruptWith: {
|
|
@@ -1312,7 +1312,7 @@ export const interruptWith: {
|
|
|
1312
1312
|
* })
|
|
1313
1313
|
* ```
|
|
1314
1314
|
*
|
|
1315
|
-
* @category
|
|
1315
|
+
* @category completion
|
|
1316
1316
|
* @since 2.0.0
|
|
1317
1317
|
*/
|
|
1318
1318
|
(fiberId: number): <A, E>(self: Deferred<A, E>) => Effect<boolean>
|
|
@@ -1342,7 +1342,7 @@ export const interruptWith: {
|
|
|
1342
1342
|
* })
|
|
1343
1343
|
* ```
|
|
1344
1344
|
*
|
|
1345
|
-
* @category
|
|
1345
|
+
* @category completion
|
|
1346
1346
|
* @since 2.0.0
|
|
1347
1347
|
*/
|
|
1348
1348
|
<A, E>(self: Deferred<A, E>, fiberId: number): Effect<boolean>
|
|
@@ -1457,7 +1457,7 @@ export function poll<A, E>(self: Deferred<A, E>): Effect<Option.Option<Effect<A,
|
|
|
1457
1457
|
* })
|
|
1458
1458
|
* ```
|
|
1459
1459
|
*
|
|
1460
|
-
* @category
|
|
1460
|
+
* @category completion
|
|
1461
1461
|
* @since 2.0.0
|
|
1462
1462
|
*/
|
|
1463
1463
|
export const succeed: {
|
|
@@ -1488,7 +1488,7 @@ export const succeed: {
|
|
|
1488
1488
|
* })
|
|
1489
1489
|
* ```
|
|
1490
1490
|
*
|
|
1491
|
-
* @category
|
|
1491
|
+
* @category completion
|
|
1492
1492
|
* @since 2.0.0
|
|
1493
1493
|
*/
|
|
1494
1494
|
<A>(value: A): <E>(self: Deferred<A, E>) => Effect<boolean>
|
|
@@ -1519,7 +1519,7 @@ export const succeed: {
|
|
|
1519
1519
|
* })
|
|
1520
1520
|
* ```
|
|
1521
1521
|
*
|
|
1522
|
-
* @category
|
|
1522
|
+
* @category completion
|
|
1523
1523
|
* @since 2.0.0
|
|
1524
1524
|
*/
|
|
1525
1525
|
<A, E>(self: Deferred<A, E>, value: A): Effect<boolean>
|
|
@@ -1553,7 +1553,7 @@ export const succeed: {
|
|
|
1553
1553
|
* })
|
|
1554
1554
|
* ```
|
|
1555
1555
|
*
|
|
1556
|
-
* @category
|
|
1556
|
+
* @category completion
|
|
1557
1557
|
* @since 2.0.0
|
|
1558
1558
|
*/
|
|
1559
1559
|
export const sync: {
|
|
@@ -1585,7 +1585,7 @@ export const sync: {
|
|
|
1585
1585
|
* })
|
|
1586
1586
|
* ```
|
|
1587
1587
|
*
|
|
1588
|
-
* @category
|
|
1588
|
+
* @category completion
|
|
1589
1589
|
* @since 2.0.0
|
|
1590
1590
|
*/
|
|
1591
1591
|
<A>(evaluate: LazyArg<A>): <E>(self: Deferred<A, E>) => Effect<boolean>
|
|
@@ -1617,7 +1617,7 @@ export const sync: {
|
|
|
1617
1617
|
* })
|
|
1618
1618
|
* ```
|
|
1619
1619
|
*
|
|
1620
|
-
* @category
|
|
1620
|
+
* @category completion
|
|
1621
1621
|
* @since 2.0.0
|
|
1622
1622
|
*/
|
|
1623
1623
|
<A, E>(self: Deferred<A, E>, evaluate: LazyArg<A>): Effect<boolean>
|
package/src/Duration.ts
CHANGED
|
@@ -1459,7 +1459,7 @@ export const min: {
|
|
|
1459
1459
|
* console.log(Duration.toSeconds(longer)) // 5
|
|
1460
1460
|
* ```
|
|
1461
1461
|
*
|
|
1462
|
-
* @category
|
|
1462
|
+
* @category ordering
|
|
1463
1463
|
* @since 2.0.0
|
|
1464
1464
|
*/
|
|
1465
1465
|
export const max: {
|
|
@@ -1475,7 +1475,7 @@ export const max: {
|
|
|
1475
1475
|
* console.log(Duration.toSeconds(longer)) // 5
|
|
1476
1476
|
* ```
|
|
1477
1477
|
*
|
|
1478
|
-
* @category
|
|
1478
|
+
* @category ordering
|
|
1479
1479
|
* @since 2.0.0
|
|
1480
1480
|
*/
|
|
1481
1481
|
(that: Duration): (self: Duration) => Duration
|
|
@@ -1491,7 +1491,7 @@ export const max: {
|
|
|
1491
1491
|
* console.log(Duration.toSeconds(longer)) // 5
|
|
1492
1492
|
* ```
|
|
1493
1493
|
*
|
|
1494
|
-
* @category
|
|
1494
|
+
* @category ordering
|
|
1495
1495
|
* @since 2.0.0
|
|
1496
1496
|
*/
|
|
1497
1497
|
(self: Duration, that: Duration): Duration
|
|
@@ -1512,7 +1512,7 @@ export const max: {
|
|
|
1512
1512
|
* console.log(Duration.toSeconds(clamped)) // 5
|
|
1513
1513
|
* ```
|
|
1514
1514
|
*
|
|
1515
|
-
* @category
|
|
1515
|
+
* @category ordering
|
|
1516
1516
|
* @since 2.0.0
|
|
1517
1517
|
*/
|
|
1518
1518
|
export const clamp: {
|
|
@@ -1531,7 +1531,7 @@ export const clamp: {
|
|
|
1531
1531
|
* console.log(Duration.toSeconds(clamped)) // 5
|
|
1532
1532
|
* ```
|
|
1533
1533
|
*
|
|
1534
|
-
* @category
|
|
1534
|
+
* @category ordering
|
|
1535
1535
|
* @since 2.0.0
|
|
1536
1536
|
*/
|
|
1537
1537
|
(options: { minimum: Duration; maximum: Duration }): (self: Duration) => Duration
|
|
@@ -1550,7 +1550,7 @@ export const clamp: {
|
|
|
1550
1550
|
* console.log(Duration.toSeconds(clamped)) // 5
|
|
1551
1551
|
* ```
|
|
1552
1552
|
*
|
|
1553
|
-
* @category
|
|
1553
|
+
* @category ordering
|
|
1554
1554
|
* @since 2.0.0
|
|
1555
1555
|
*/
|
|
1556
1556
|
(self: Duration, options: { minimum: Duration; maximum: Duration }): Duration
|