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/dist/Option.d.ts
CHANGED
|
@@ -145,7 +145,7 @@ export interface None<out A> extends Pipeable, Inspectable {
|
|
|
145
145
|
*
|
|
146
146
|
* @see {@link gen} for writing generator-based `Option` code that consumes this iterator protocol
|
|
147
147
|
*
|
|
148
|
-
* @category
|
|
148
|
+
* @category generators
|
|
149
149
|
* @since 4.0.0
|
|
150
150
|
*/
|
|
151
151
|
export interface OptionIterator<T extends Option<any>> {
|
|
@@ -263,7 +263,7 @@ export interface OptionUnifyIgnore {
|
|
|
263
263
|
*
|
|
264
264
|
* Use to represent `Option` in higher-kinded type operations.
|
|
265
265
|
*
|
|
266
|
-
* @category
|
|
266
|
+
* @category type lambdas
|
|
267
267
|
* @since 2.0.0
|
|
268
268
|
*/
|
|
269
269
|
export interface OptionTypeLambda extends TypeLambda {
|
|
@@ -456,7 +456,7 @@ export declare const isSome: <A>(self: Option<A>) => self is Some<A>;
|
|
|
456
456
|
*
|
|
457
457
|
* @see {@link getOrElse} for unwrapping with a default
|
|
458
458
|
*
|
|
459
|
-
* @category
|
|
459
|
+
* @category pattern matching
|
|
460
460
|
* @since 2.0.0
|
|
461
461
|
*/
|
|
462
462
|
export declare const match: {
|
|
@@ -490,7 +490,7 @@ export declare const match: {
|
|
|
490
490
|
*
|
|
491
491
|
* @see {@link getOrElse} for unwrapping with a default
|
|
492
492
|
*
|
|
493
|
-
* @category
|
|
493
|
+
* @category pattern matching
|
|
494
494
|
* @since 2.0.0
|
|
495
495
|
*/
|
|
496
496
|
<B, A, C = B>(options: {
|
|
@@ -527,7 +527,7 @@ export declare const match: {
|
|
|
527
527
|
*
|
|
528
528
|
* @see {@link getOrElse} for unwrapping with a default
|
|
529
529
|
*
|
|
530
|
-
* @category
|
|
530
|
+
* @category pattern matching
|
|
531
531
|
* @since 2.0.0
|
|
532
532
|
*/
|
|
533
533
|
<A, B, C = B>(self: Option<A>, options: {
|
|
@@ -2823,7 +2823,7 @@ export declare const tap: {
|
|
|
2823
2823
|
* @see {@link zipWith} to combine with a function instead of a tuple
|
|
2824
2824
|
* @see {@link all} to combine many `Option`s
|
|
2825
2825
|
*
|
|
2826
|
-
* @category
|
|
2826
|
+
* @category combining
|
|
2827
2827
|
* @since 2.0.0
|
|
2828
2828
|
*/
|
|
2829
2829
|
export declare const product: <A, B>(self: Option<A>, that: Option<B>) => Option<[A, B]>;
|
|
@@ -2858,7 +2858,7 @@ export declare const product: <A, B>(self: Option<A>, that: Option<B>) => Option
|
|
|
2858
2858
|
* @see {@link product} for combining exactly two
|
|
2859
2859
|
* @see {@link all} for tuples, structs, and iterables
|
|
2860
2860
|
*
|
|
2861
|
-
* @category
|
|
2861
|
+
* @category combining
|
|
2862
2862
|
* @since 2.0.0
|
|
2863
2863
|
*/
|
|
2864
2864
|
export declare const productMany: <A>(self: Option<A>, collection: Iterable<Option<A>>) => Option<[A, ...Array<A>]>;
|
|
@@ -2904,7 +2904,7 @@ export declare const productMany: <A>(self: Option<A>, collection: Iterable<Opti
|
|
|
2904
2904
|
* @see {@link product} for combining exactly two
|
|
2905
2905
|
* @see {@link productMany} for a homogeneous collection
|
|
2906
2906
|
*
|
|
2907
|
-
* @category
|
|
2907
|
+
* @category combining
|
|
2908
2908
|
* @since 2.0.0
|
|
2909
2909
|
*/
|
|
2910
2910
|
export declare const all: <const I extends Iterable<Option<any>> | Record<string, Option<any>>>(input: I) => [I] extends [ReadonlyArray<Option<any>>] ? Option<{
|
|
@@ -3042,7 +3042,7 @@ export declare const zipWith: {
|
|
|
3042
3042
|
* // Output: 3
|
|
3043
3043
|
* ```
|
|
3044
3044
|
*
|
|
3045
|
-
* @category
|
|
3045
|
+
* @category reducing
|
|
3046
3046
|
* @since 2.0.0
|
|
3047
3047
|
*/
|
|
3048
3048
|
export declare const reduceCompact: {
|
|
@@ -3070,7 +3070,7 @@ export declare const reduceCompact: {
|
|
|
3070
3070
|
* // Output: 3
|
|
3071
3071
|
* ```
|
|
3072
3072
|
*
|
|
3073
|
-
* @category
|
|
3073
|
+
* @category reducing
|
|
3074
3074
|
* @since 2.0.0
|
|
3075
3075
|
*/
|
|
3076
3076
|
<B, A>(b: B, f: (b: B, a: A) => B): (self: Iterable<Option<A>>) => B;
|
|
@@ -3098,7 +3098,7 @@ export declare const reduceCompact: {
|
|
|
3098
3098
|
* // Output: 3
|
|
3099
3099
|
* ```
|
|
3100
3100
|
*
|
|
3101
|
-
* @category
|
|
3101
|
+
* @category reducing
|
|
3102
3102
|
* @since 2.0.0
|
|
3103
3103
|
*/
|
|
3104
3104
|
<A, B>(self: Iterable<Option<A>>, b: B, f: (b: B, a: A) => B): B;
|
|
@@ -3579,7 +3579,7 @@ export declare const filter: {
|
|
|
3579
3579
|
* // Output: true
|
|
3580
3580
|
* ```
|
|
3581
3581
|
*
|
|
3582
|
-
* @category
|
|
3582
|
+
* @category instances
|
|
3583
3583
|
* @since 4.0.0
|
|
3584
3584
|
*/
|
|
3585
3585
|
export declare const makeEquivalence: <A>(isEquivalent: Equivalence.Equivalence<A>) => Equivalence.Equivalence<Option<A>>;
|
|
@@ -3613,7 +3613,7 @@ export declare const makeEquivalence: <A>(isEquivalent: Equivalence.Equivalence<
|
|
|
3613
3613
|
* // Output: -1
|
|
3614
3614
|
* ```
|
|
3615
3615
|
*
|
|
3616
|
-
* @category
|
|
3616
|
+
* @category sorting
|
|
3617
3617
|
* @since 4.0.0
|
|
3618
3618
|
*/
|
|
3619
3619
|
export declare const makeOrder: <A>(O: Order<A>) => Order<Option<A>>;
|
|
@@ -3645,7 +3645,7 @@ export declare const makeOrder: <A>(O: Order<A>) => Order<Option<A>>;
|
|
|
3645
3645
|
*
|
|
3646
3646
|
* @see {@link zipWith} for a non-lifted variant
|
|
3647
3647
|
*
|
|
3648
|
-
* @category
|
|
3648
|
+
* @category lifting
|
|
3649
3649
|
* @since 2.0.0
|
|
3650
3650
|
*/
|
|
3651
3651
|
export declare const lift2: <A, B, C>(f: (a: A, b: B) => C) => {
|
|
@@ -3684,7 +3684,7 @@ export declare const lift2: <A, B, C>(f: (a: A, b: B) => C) => {
|
|
|
3684
3684
|
* @see {@link filter} to apply a predicate to an existing `Option`
|
|
3685
3685
|
* @see {@link toRefinement} for the inverse direction
|
|
3686
3686
|
*
|
|
3687
|
-
* @category
|
|
3687
|
+
* @category lifting
|
|
3688
3688
|
* @since 2.0.0
|
|
3689
3689
|
*/
|
|
3690
3690
|
export declare const liftPredicate: {
|
|
@@ -3721,7 +3721,7 @@ export declare const liftPredicate: {
|
|
|
3721
3721
|
* @see {@link filter} to apply a predicate to an existing `Option`
|
|
3722
3722
|
* @see {@link toRefinement} for the inverse direction
|
|
3723
3723
|
*
|
|
3724
|
-
* @category
|
|
3724
|
+
* @category lifting
|
|
3725
3725
|
* @since 2.0.0
|
|
3726
3726
|
*/
|
|
3727
3727
|
<B extends A, A = B>(predicate: Predicate<A>): (b: B) => Option<B>;
|
|
@@ -3757,7 +3757,7 @@ export declare const liftPredicate: {
|
|
|
3757
3757
|
* @see {@link filter} to apply a predicate to an existing `Option`
|
|
3758
3758
|
* @see {@link toRefinement} for the inverse direction
|
|
3759
3759
|
*
|
|
3760
|
-
* @category
|
|
3760
|
+
* @category lifting
|
|
3761
3761
|
* @since 2.0.0
|
|
3762
3762
|
*/
|
|
3763
3763
|
<A, B extends A>(self: A, refinement: Refinement<A, B>): Option<B>;
|
|
@@ -3793,7 +3793,7 @@ export declare const liftPredicate: {
|
|
|
3793
3793
|
* @see {@link filter} to apply a predicate to an existing `Option`
|
|
3794
3794
|
* @see {@link toRefinement} for the inverse direction
|
|
3795
3795
|
*
|
|
3796
|
-
* @category
|
|
3796
|
+
* @category lifting
|
|
3797
3797
|
* @since 2.0.0
|
|
3798
3798
|
*/
|
|
3799
3799
|
<B extends A, A = B>(self: B, predicate: Predicate<A>): Option<B>;
|
|
@@ -3830,7 +3830,7 @@ export declare const liftPredicate: {
|
|
|
3830
3830
|
*
|
|
3831
3831
|
* @see {@link contains} for a version using default equality
|
|
3832
3832
|
*
|
|
3833
|
-
* @category
|
|
3833
|
+
* @category elements
|
|
3834
3834
|
* @since 2.0.0
|
|
3835
3835
|
*/
|
|
3836
3836
|
export declare const containsWith: <A>(isEquivalent: (self: A, that: A) => boolean) => {
|
|
@@ -3868,7 +3868,7 @@ export declare const containsWith: <A>(isEquivalent: (self: A, that: A) => boole
|
|
|
3868
3868
|
* @see {@link containsWith} for custom equality
|
|
3869
3869
|
* @see {@link exists} to test with a predicate
|
|
3870
3870
|
*
|
|
3871
|
-
* @category
|
|
3871
|
+
* @category elements
|
|
3872
3872
|
* @since 2.0.0
|
|
3873
3873
|
*/
|
|
3874
3874
|
export declare const contains: {
|
|
@@ -3903,7 +3903,7 @@ export declare const contains: {
|
|
|
3903
3903
|
* @see {@link containsWith} for custom equality
|
|
3904
3904
|
* @see {@link exists} to test with a predicate
|
|
3905
3905
|
*
|
|
3906
|
-
* @category
|
|
3906
|
+
* @category elements
|
|
3907
3907
|
* @since 2.0.0
|
|
3908
3908
|
*/
|
|
3909
3909
|
<A>(a: A): (self: Option<A>) => boolean;
|
|
@@ -3938,7 +3938,7 @@ export declare const contains: {
|
|
|
3938
3938
|
* @see {@link containsWith} for custom equality
|
|
3939
3939
|
* @see {@link exists} to test with a predicate
|
|
3940
3940
|
*
|
|
3941
|
-
* @category
|
|
3941
|
+
* @category elements
|
|
3942
3942
|
* @since 2.0.0
|
|
3943
3943
|
*/
|
|
3944
3944
|
<A>(self: Option<A>, a: A): boolean;
|
|
@@ -3977,7 +3977,7 @@ export declare const contains: {
|
|
|
3977
3977
|
* @see {@link filter} to keep or discard based on a predicate
|
|
3978
3978
|
* @see {@link contains} to test for a specific value
|
|
3979
3979
|
*
|
|
3980
|
-
* @category
|
|
3980
|
+
* @category elements
|
|
3981
3981
|
* @since 2.0.0
|
|
3982
3982
|
*/
|
|
3983
3983
|
export declare const exists: {
|
|
@@ -4015,7 +4015,7 @@ export declare const exists: {
|
|
|
4015
4015
|
* @see {@link filter} to keep or discard based on a predicate
|
|
4016
4016
|
* @see {@link contains} to test for a specific value
|
|
4017
4017
|
*
|
|
4018
|
-
* @category
|
|
4018
|
+
* @category elements
|
|
4019
4019
|
* @since 2.0.0
|
|
4020
4020
|
*/
|
|
4021
4021
|
<A, B extends A>(refinement: Refinement<NoInfer<A>, B>): (self: Option<A>) => self is Option<B>;
|
|
@@ -4053,7 +4053,7 @@ export declare const exists: {
|
|
|
4053
4053
|
* @see {@link filter} to keep or discard based on a predicate
|
|
4054
4054
|
* @see {@link contains} to test for a specific value
|
|
4055
4055
|
*
|
|
4056
|
-
* @category
|
|
4056
|
+
* @category elements
|
|
4057
4057
|
* @since 2.0.0
|
|
4058
4058
|
*/
|
|
4059
4059
|
<A>(predicate: Predicate<NoInfer<A>>): (self: Option<A>) => boolean;
|
|
@@ -4091,7 +4091,7 @@ export declare const exists: {
|
|
|
4091
4091
|
* @see {@link filter} to keep or discard based on a predicate
|
|
4092
4092
|
* @see {@link contains} to test for a specific value
|
|
4093
4093
|
*
|
|
4094
|
-
* @category
|
|
4094
|
+
* @category elements
|
|
4095
4095
|
* @since 2.0.0
|
|
4096
4096
|
*/
|
|
4097
4097
|
<A, B extends A>(self: Option<A>, refinement: Refinement<A, B>): self is Option<B>;
|
|
@@ -4129,7 +4129,7 @@ export declare const exists: {
|
|
|
4129
4129
|
* @see {@link filter} to keep or discard based on a predicate
|
|
4130
4130
|
* @see {@link contains} to test for a specific value
|
|
4131
4131
|
*
|
|
4132
|
-
* @category
|
|
4132
|
+
* @category elements
|
|
4133
4133
|
* @since 2.0.0
|
|
4134
4134
|
*/
|
|
4135
4135
|
<A>(self: Option<A>, predicate: Predicate<A>): boolean;
|
|
@@ -4161,7 +4161,7 @@ export declare const exists: {
|
|
|
4161
4161
|
* @see {@link bind} to add `Option` values
|
|
4162
4162
|
* @see {@link let_ let} to add plain values
|
|
4163
4163
|
*
|
|
4164
|
-
* @category
|
|
4164
|
+
* @category do notation
|
|
4165
4165
|
* @since 2.0.0
|
|
4166
4166
|
*/
|
|
4167
4167
|
export declare const bindTo: {
|
|
@@ -4192,7 +4192,7 @@ export declare const bindTo: {
|
|
|
4192
4192
|
* @see {@link bind} to add `Option` values
|
|
4193
4193
|
* @see {@link let_ let} to add plain values
|
|
4194
4194
|
*
|
|
4195
|
-
* @category
|
|
4195
|
+
* @category do notation
|
|
4196
4196
|
* @since 2.0.0
|
|
4197
4197
|
*/
|
|
4198
4198
|
<N extends string>(name: N): <A>(self: Option<A>) => Option<{
|
|
@@ -4225,7 +4225,7 @@ export declare const bindTo: {
|
|
|
4225
4225
|
* @see {@link bind} to add `Option` values
|
|
4226
4226
|
* @see {@link let_ let} to add plain values
|
|
4227
4227
|
*
|
|
4228
|
-
* @category
|
|
4228
|
+
* @category do notation
|
|
4229
4229
|
* @since 2.0.0
|
|
4230
4230
|
*/
|
|
4231
4231
|
<A, N extends string>(self: Option<A>, name: N): Option<{
|
|
@@ -4267,7 +4267,7 @@ export {
|
|
|
4267
4267
|
* @see {@link bind} to add `Option` values
|
|
4268
4268
|
* @see {@link bindTo} to start by naming an existing `Option`
|
|
4269
4269
|
*
|
|
4270
|
-
* @category
|
|
4270
|
+
* @category do notation
|
|
4271
4271
|
* @since 2.0.0
|
|
4272
4272
|
*/
|
|
4273
4273
|
let_ as let };
|
|
@@ -4299,7 +4299,7 @@ let_ as let };
|
|
|
4299
4299
|
* @see {@link let_ let} to add plain values
|
|
4300
4300
|
* @see {@link bindTo} to start by naming an existing `Option`
|
|
4301
4301
|
*
|
|
4302
|
-
* @category
|
|
4302
|
+
* @category do notation
|
|
4303
4303
|
* @since 2.0.0
|
|
4304
4304
|
*/
|
|
4305
4305
|
export declare const bind: {
|
|
@@ -4331,7 +4331,7 @@ export declare const bind: {
|
|
|
4331
4331
|
* @see {@link let_ let} to add plain values
|
|
4332
4332
|
* @see {@link bindTo} to start by naming an existing `Option`
|
|
4333
4333
|
*
|
|
4334
|
-
* @category
|
|
4334
|
+
* @category do notation
|
|
4335
4335
|
* @since 2.0.0
|
|
4336
4336
|
*/
|
|
4337
4337
|
<N extends string, A extends object, B>(name: Exclude<N, keyof A>, f: (a: NoInfer<A>) => Option<B>): (self: Option<A>) => Option<{
|
|
@@ -4365,7 +4365,7 @@ export declare const bind: {
|
|
|
4365
4365
|
* @see {@link let_ let} to add plain values
|
|
4366
4366
|
* @see {@link bindTo} to start by naming an existing `Option`
|
|
4367
4367
|
*
|
|
4368
|
-
* @category
|
|
4368
|
+
* @category do notation
|
|
4369
4369
|
* @since 2.0.0
|
|
4370
4370
|
*/
|
|
4371
4371
|
<A extends object, N extends string, B>(self: Option<A>, name: Exclude<N, keyof A>, f: (a: NoInfer<A>) => Option<B>): Option<{
|
|
@@ -4400,7 +4400,7 @@ export declare const bind: {
|
|
|
4400
4400
|
* @see {@link let_ let} to add plain values
|
|
4401
4401
|
* @see {@link bindTo} to start by naming an existing `Option`
|
|
4402
4402
|
*
|
|
4403
|
-
* @category
|
|
4403
|
+
* @category do notation
|
|
4404
4404
|
* @since 2.0.0
|
|
4405
4405
|
*/
|
|
4406
4406
|
export declare const Do: Option<{}>;
|
|
@@ -4440,7 +4440,7 @@ export declare const Do: Option<{}>;
|
|
|
4440
4440
|
*
|
|
4441
4441
|
* @see {@link Do} / {@link bind} for the do notation alternative
|
|
4442
4442
|
*
|
|
4443
|
-
* @category
|
|
4443
|
+
* @category generators
|
|
4444
4444
|
* @since 2.0.0
|
|
4445
4445
|
*/
|
|
4446
4446
|
export declare const gen: Gen.Gen<OptionTypeLambda>;
|
package/dist/Option.js
CHANGED
|
@@ -269,7 +269,7 @@ export const isSome = option.isSome;
|
|
|
269
269
|
*
|
|
270
270
|
* @see {@link getOrElse} for unwrapping with a default
|
|
271
271
|
*
|
|
272
|
-
* @category
|
|
272
|
+
* @category pattern matching
|
|
273
273
|
* @since 2.0.0
|
|
274
274
|
*/
|
|
275
275
|
export const match = /*#__PURE__*/dual(2, (self, {
|
|
@@ -1345,7 +1345,7 @@ export const tap = /*#__PURE__*/dual(2, (self, f) => flatMap(self, a => map(f(a)
|
|
|
1345
1345
|
* @see {@link zipWith} to combine with a function instead of a tuple
|
|
1346
1346
|
* @see {@link all} to combine many `Option`s
|
|
1347
1347
|
*
|
|
1348
|
-
* @category
|
|
1348
|
+
* @category combining
|
|
1349
1349
|
* @since 2.0.0
|
|
1350
1350
|
*/
|
|
1351
1351
|
export const product = (self, that) => isSome(self) && isSome(that) ? some([self.value, that.value]) : none();
|
|
@@ -1380,7 +1380,7 @@ export const product = (self, that) => isSome(self) && isSome(that) ? some([self
|
|
|
1380
1380
|
* @see {@link product} for combining exactly two
|
|
1381
1381
|
* @see {@link all} for tuples, structs, and iterables
|
|
1382
1382
|
*
|
|
1383
|
-
* @category
|
|
1383
|
+
* @category combining
|
|
1384
1384
|
* @since 2.0.0
|
|
1385
1385
|
*/
|
|
1386
1386
|
export const productMany = (self, collection) => {
|
|
@@ -1438,7 +1438,7 @@ export const productMany = (self, collection) => {
|
|
|
1438
1438
|
* @see {@link product} for combining exactly two
|
|
1439
1439
|
* @see {@link productMany} for a homogeneous collection
|
|
1440
1440
|
*
|
|
1441
|
-
* @category
|
|
1441
|
+
* @category combining
|
|
1442
1442
|
* @since 2.0.0
|
|
1443
1443
|
*/
|
|
1444
1444
|
// @ts-expect-error
|
|
@@ -1522,7 +1522,7 @@ export const zipWith = /*#__PURE__*/dual(3, (self, that, f) => map(product(self,
|
|
|
1522
1522
|
* // Output: 3
|
|
1523
1523
|
* ```
|
|
1524
1524
|
*
|
|
1525
|
-
* @category
|
|
1525
|
+
* @category reducing
|
|
1526
1526
|
* @since 2.0.0
|
|
1527
1527
|
*/
|
|
1528
1528
|
export const reduceCompact = /*#__PURE__*/dual(3, (self, b, f) => {
|
|
@@ -1717,7 +1717,7 @@ export const filter = /*#__PURE__*/dual(2, (self, predicate) => isNone(self) ? n
|
|
|
1717
1717
|
* // Output: true
|
|
1718
1718
|
* ```
|
|
1719
1719
|
*
|
|
1720
|
-
* @category
|
|
1720
|
+
* @category instances
|
|
1721
1721
|
* @since 4.0.0
|
|
1722
1722
|
*/
|
|
1723
1723
|
export const makeEquivalence = isEquivalent => Equivalence.make((x, y) => isNone(x) ? isNone(y) : isNone(y) ? false : isEquivalent(x.value, y.value));
|
|
@@ -1751,7 +1751,7 @@ export const makeEquivalence = isEquivalent => Equivalence.make((x, y) => isNone
|
|
|
1751
1751
|
* // Output: -1
|
|
1752
1752
|
* ```
|
|
1753
1753
|
*
|
|
1754
|
-
* @category
|
|
1754
|
+
* @category sorting
|
|
1755
1755
|
* @since 4.0.0
|
|
1756
1756
|
*/
|
|
1757
1757
|
export const makeOrder = O => order.make((self, that) => isSome(self) ? isSome(that) ? O(self.value, that.value) : 1 : -1);
|
|
@@ -1783,7 +1783,7 @@ export const makeOrder = O => order.make((self, that) => isSome(self) ? isSome(t
|
|
|
1783
1783
|
*
|
|
1784
1784
|
* @see {@link zipWith} for a non-lifted variant
|
|
1785
1785
|
*
|
|
1786
|
-
* @category
|
|
1786
|
+
* @category lifting
|
|
1787
1787
|
* @since 2.0.0
|
|
1788
1788
|
*/
|
|
1789
1789
|
export const lift2 = f => dual(2, (self, that) => zipWith(self, that, f));
|
|
@@ -1819,7 +1819,7 @@ export const lift2 = f => dual(2, (self, that) => zipWith(self, that, f));
|
|
|
1819
1819
|
* @see {@link filter} to apply a predicate to an existing `Option`
|
|
1820
1820
|
* @see {@link toRefinement} for the inverse direction
|
|
1821
1821
|
*
|
|
1822
|
-
* @category
|
|
1822
|
+
* @category lifting
|
|
1823
1823
|
* @since 2.0.0
|
|
1824
1824
|
*/
|
|
1825
1825
|
export const liftPredicate = /*#__PURE__*/dual(2, (b, predicate) => predicate(b) ? some(b) : none());
|
|
@@ -1855,7 +1855,7 @@ export const liftPredicate = /*#__PURE__*/dual(2, (b, predicate) => predicate(b)
|
|
|
1855
1855
|
*
|
|
1856
1856
|
* @see {@link contains} for a version using default equality
|
|
1857
1857
|
*
|
|
1858
|
-
* @category
|
|
1858
|
+
* @category elements
|
|
1859
1859
|
* @since 2.0.0
|
|
1860
1860
|
*/
|
|
1861
1861
|
export const containsWith = isEquivalent => dual(2, (self, a) => isNone(self) ? false : isEquivalent(self.value, a));
|
|
@@ -1890,7 +1890,7 @@ export const containsWith = isEquivalent => dual(2, (self, a) => isNone(self) ?
|
|
|
1890
1890
|
* @see {@link containsWith} for custom equality
|
|
1891
1891
|
* @see {@link exists} to test with a predicate
|
|
1892
1892
|
*
|
|
1893
|
-
* @category
|
|
1893
|
+
* @category elements
|
|
1894
1894
|
* @since 2.0.0
|
|
1895
1895
|
*/
|
|
1896
1896
|
export const contains = /*#__PURE__*/containsWith(/*#__PURE__*/Equal.asEquivalence());
|
|
@@ -1928,7 +1928,7 @@ export const contains = /*#__PURE__*/containsWith(/*#__PURE__*/Equal.asEquivalen
|
|
|
1928
1928
|
* @see {@link filter} to keep or discard based on a predicate
|
|
1929
1929
|
* @see {@link contains} to test for a specific value
|
|
1930
1930
|
*
|
|
1931
|
-
* @category
|
|
1931
|
+
* @category elements
|
|
1932
1932
|
* @since 2.0.0
|
|
1933
1933
|
*/
|
|
1934
1934
|
export const exists = /*#__PURE__*/dual(2, (self, refinement) => isNone(self) ? false : refinement(self.value));
|
|
@@ -1962,7 +1962,7 @@ export const exists = /*#__PURE__*/dual(2, (self, refinement) => isNone(self) ?
|
|
|
1962
1962
|
* @see {@link bind} to add `Option` values
|
|
1963
1963
|
* @see {@link let_ let} to add plain values
|
|
1964
1964
|
*
|
|
1965
|
-
* @category
|
|
1965
|
+
* @category do notation
|
|
1966
1966
|
* @since 2.0.0
|
|
1967
1967
|
*/
|
|
1968
1968
|
export const bindTo = /*#__PURE__*/doNotation.bindTo(map);
|
|
@@ -1994,7 +1994,7 @@ export {
|
|
|
1994
1994
|
* @see {@link bind} to add `Option` values
|
|
1995
1995
|
* @see {@link bindTo} to start by naming an existing `Option`
|
|
1996
1996
|
*
|
|
1997
|
-
* @category
|
|
1997
|
+
* @category do notation
|
|
1998
1998
|
* @since 2.0.0
|
|
1999
1999
|
*/
|
|
2000
2000
|
let_ as let };
|
|
@@ -2026,7 +2026,7 @@ let_ as let };
|
|
|
2026
2026
|
* @see {@link let_ let} to add plain values
|
|
2027
2027
|
* @see {@link bindTo} to start by naming an existing `Option`
|
|
2028
2028
|
*
|
|
2029
|
-
* @category
|
|
2029
|
+
* @category do notation
|
|
2030
2030
|
* @since 2.0.0
|
|
2031
2031
|
*/
|
|
2032
2032
|
export const bind = /*#__PURE__*/doNotation.bind(map, flatMap);
|
|
@@ -2058,7 +2058,7 @@ export const bind = /*#__PURE__*/doNotation.bind(map, flatMap);
|
|
|
2058
2058
|
* @see {@link let_ let} to add plain values
|
|
2059
2059
|
* @see {@link bindTo} to start by naming an existing `Option`
|
|
2060
2060
|
*
|
|
2061
|
-
* @category
|
|
2061
|
+
* @category do notation
|
|
2062
2062
|
* @since 2.0.0
|
|
2063
2063
|
*/
|
|
2064
2064
|
export const Do = /*#__PURE__*/some({});
|
|
@@ -2098,7 +2098,7 @@ export const Do = /*#__PURE__*/some({});
|
|
|
2098
2098
|
*
|
|
2099
2099
|
* @see {@link Do} / {@link bind} for the do notation alternative
|
|
2100
2100
|
*
|
|
2101
|
-
* @category
|
|
2101
|
+
* @category generators
|
|
2102
2102
|
* @since 2.0.0
|
|
2103
2103
|
*/
|
|
2104
2104
|
export const gen = (...args) => {
|
package/dist/Order.d.ts
CHANGED
|
@@ -1058,7 +1058,7 @@ export declare const isBetween: <A>(O: Order<A>) => {
|
|
|
1058
1058
|
* @see {@link combine} to combine two orders
|
|
1059
1059
|
* @see {@link combineAll} to combine multiple orders
|
|
1060
1060
|
* @see {@link Reducer} for reducing orders as a collection operation
|
|
1061
|
-
* @category
|
|
1061
|
+
* @category constructors
|
|
1062
1062
|
* @since 4.0.0
|
|
1063
1063
|
*/
|
|
1064
1064
|
export declare function makeReducer<A>(): Reducer.Reducer<Order<A>>;
|
package/dist/Order.js
CHANGED
|
@@ -939,7 +939,7 @@ export const isBetween = O => dual(2, (self, options) => !isLessThan(O)(self, op
|
|
|
939
939
|
* @see {@link combine} to combine two orders
|
|
940
940
|
* @see {@link combineAll} to combine multiple orders
|
|
941
941
|
* @see {@link Reducer} for reducing orders as a collection operation
|
|
942
|
-
* @category
|
|
942
|
+
* @category constructors
|
|
943
943
|
* @since 4.0.0
|
|
944
944
|
*/
|
|
945
945
|
export function makeReducer() {
|
package/dist/Path.d.ts
CHANGED
package/dist/Path.js
CHANGED
|
@@ -114,7 +114,7 @@ export const TypeId = "~effect/platform/Path";
|
|
|
114
114
|
* const result = Effect.provide(program, customPathLayer)
|
|
115
115
|
* ```
|
|
116
116
|
*
|
|
117
|
-
* @category
|
|
117
|
+
* @category services
|
|
118
118
|
* @since 4.0.0
|
|
119
119
|
*/
|
|
120
120
|
export const Path = /*#__PURE__*/Context.Service("effect/Path");
|
package/dist/Pipeable.d.ts
CHANGED
package/dist/Pipeable.js
CHANGED
package/dist/Predicate.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ export declare namespace Predicate {
|
|
|
149
149
|
*
|
|
150
150
|
* @see {@link Predicate.Any}
|
|
151
151
|
* @see {@link Refinement.In}
|
|
152
|
-
* @category
|
|
152
|
+
* @category utility types
|
|
153
153
|
* @since 3.6.0
|
|
154
154
|
*/
|
|
155
155
|
type In<T extends Any> = [T] extends [Predicate<infer _A>] ? _A : never;
|
|
@@ -173,7 +173,7 @@ export declare namespace Predicate {
|
|
|
173
173
|
* ```
|
|
174
174
|
*
|
|
175
175
|
* @see {@link Predicate.In}
|
|
176
|
-
* @category
|
|
176
|
+
* @category utility types
|
|
177
177
|
* @since 3.6.0
|
|
178
178
|
*/
|
|
179
179
|
type Any = Predicate<any>;
|
|
@@ -229,7 +229,7 @@ export declare namespace Refinement {
|
|
|
229
229
|
*
|
|
230
230
|
* @see {@link Refinement.Out}
|
|
231
231
|
* @see {@link Predicate.In}
|
|
232
|
-
* @category
|
|
232
|
+
* @category utility types
|
|
233
233
|
* @since 3.6.0
|
|
234
234
|
*/
|
|
235
235
|
type In<T extends Any> = [T] extends [Refinement<infer _A, infer _>] ? _A : never;
|
|
@@ -255,7 +255,7 @@ export declare namespace Refinement {
|
|
|
255
255
|
* ```
|
|
256
256
|
*
|
|
257
257
|
* @see {@link Refinement.In}
|
|
258
|
-
* @category
|
|
258
|
+
* @category utility types
|
|
259
259
|
* @since 3.6.0
|
|
260
260
|
*/
|
|
261
261
|
type Out<T extends Any> = [T] extends [Refinement<infer _, infer _B>] ? _B : never;
|
|
@@ -280,7 +280,7 @@ export declare namespace Refinement {
|
|
|
280
280
|
*
|
|
281
281
|
* @see {@link Refinement.In}
|
|
282
282
|
* @see {@link Refinement.Out}
|
|
283
|
-
* @category
|
|
283
|
+
* @category utility types
|
|
284
284
|
* @since 3.6.0
|
|
285
285
|
*/
|
|
286
286
|
type Any = Refinement<any, any>;
|
package/dist/PubSub.d.ts
CHANGED
|
@@ -1220,7 +1220,7 @@ export declare const publishAll: {
|
|
|
1220
1220
|
* })
|
|
1221
1221
|
* ```
|
|
1222
1222
|
*
|
|
1223
|
-
* @category
|
|
1223
|
+
* @category subscriptions
|
|
1224
1224
|
* @since 2.0.0
|
|
1225
1225
|
*/
|
|
1226
1226
|
export declare const subscribe: <A>(self: PubSub<A>) => Effect.Effect<Subscription<A>, never, Scope.Scope>;
|
|
@@ -1254,7 +1254,7 @@ export declare const subscribe: <A>(self: PubSub<A>) => Effect.Effect<Subscripti
|
|
|
1254
1254
|
* })
|
|
1255
1255
|
* ```
|
|
1256
1256
|
*
|
|
1257
|
-
* @category
|
|
1257
|
+
* @category subscriptions
|
|
1258
1258
|
* @since 4.0.0
|
|
1259
1259
|
*/
|
|
1260
1260
|
export declare const take: <A>(self: Subscription<A>) => Effect.Effect<A>;
|
|
@@ -1283,7 +1283,7 @@ export declare const take: <A>(self: Subscription<A>) => Effect.Effect<A>;
|
|
|
1283
1283
|
* })
|
|
1284
1284
|
* ```
|
|
1285
1285
|
*
|
|
1286
|
-
* @category
|
|
1286
|
+
* @category subscriptions
|
|
1287
1287
|
* @since 4.0.0
|
|
1288
1288
|
*/
|
|
1289
1289
|
export declare const takeAll: <A>(self: Subscription<A>) => Effect.Effect<Arr.NonEmptyArray<A>>;
|
|
@@ -1319,7 +1319,7 @@ export declare const takeAll: <A>(self: Subscription<A>) => Effect.Effect<Arr.No
|
|
|
1319
1319
|
* })
|
|
1320
1320
|
* ```
|
|
1321
1321
|
*
|
|
1322
|
-
* @category
|
|
1322
|
+
* @category subscriptions
|
|
1323
1323
|
* @since 4.0.0
|
|
1324
1324
|
*/
|
|
1325
1325
|
export declare const takeUpTo: {
|
|
@@ -1355,7 +1355,7 @@ export declare const takeUpTo: {
|
|
|
1355
1355
|
* })
|
|
1356
1356
|
* ```
|
|
1357
1357
|
*
|
|
1358
|
-
* @category
|
|
1358
|
+
* @category subscriptions
|
|
1359
1359
|
* @since 4.0.0
|
|
1360
1360
|
*/
|
|
1361
1361
|
(max: number): <A>(self: Subscription<A>) => Effect.Effect<Array<A>>;
|
|
@@ -1391,7 +1391,7 @@ export declare const takeUpTo: {
|
|
|
1391
1391
|
* })
|
|
1392
1392
|
* ```
|
|
1393
1393
|
*
|
|
1394
|
-
* @category
|
|
1394
|
+
* @category subscriptions
|
|
1395
1395
|
* @since 4.0.0
|
|
1396
1396
|
*/
|
|
1397
1397
|
<A>(self: Subscription<A>, max: number): Effect.Effect<Array<A>>;
|
|
@@ -1426,7 +1426,7 @@ export declare const takeUpTo: {
|
|
|
1426
1426
|
* })
|
|
1427
1427
|
* ```
|
|
1428
1428
|
*
|
|
1429
|
-
* @category
|
|
1429
|
+
* @category subscriptions
|
|
1430
1430
|
* @since 4.0.0
|
|
1431
1431
|
*/
|
|
1432
1432
|
export declare const takeBetween: {
|
|
@@ -1460,7 +1460,7 @@ export declare const takeBetween: {
|
|
|
1460
1460
|
* })
|
|
1461
1461
|
* ```
|
|
1462
1462
|
*
|
|
1463
|
-
* @category
|
|
1463
|
+
* @category subscriptions
|
|
1464
1464
|
* @since 4.0.0
|
|
1465
1465
|
*/
|
|
1466
1466
|
(min: number, max: number): <A>(self: Subscription<A>) => Effect.Effect<Array<A>>;
|
|
@@ -1494,7 +1494,7 @@ export declare const takeBetween: {
|
|
|
1494
1494
|
* })
|
|
1495
1495
|
* ```
|
|
1496
1496
|
*
|
|
1497
|
-
* @category
|
|
1497
|
+
* @category subscriptions
|
|
1498
1498
|
* @since 4.0.0
|
|
1499
1499
|
*/
|
|
1500
1500
|
<A>(self: Subscription<A>, min: number, max: number): Effect.Effect<Array<A>>;
|
package/dist/PubSub.js
CHANGED
|
@@ -813,7 +813,7 @@ export const publishAll = /*#__PURE__*/dual(2, (self, elements) => Effect.suspen
|
|
|
813
813
|
* })
|
|
814
814
|
* ```
|
|
815
815
|
*
|
|
816
|
-
* @category
|
|
816
|
+
* @category subscriptions
|
|
817
817
|
* @since 2.0.0
|
|
818
818
|
*/
|
|
819
819
|
export const subscribe = self => Effect.uninterruptible(Effect.contextWith(services => {
|
|
@@ -863,7 +863,7 @@ const unsubscribe = self => Effect.uninterruptible(Effect.withFiber(state => {
|
|
|
863
863
|
* })
|
|
864
864
|
* ```
|
|
865
865
|
*
|
|
866
|
-
* @category
|
|
866
|
+
* @category subscriptions
|
|
867
867
|
* @since 4.0.0
|
|
868
868
|
*/
|
|
869
869
|
export const take = self => Effect.suspend(() => {
|
|
@@ -907,7 +907,7 @@ export const take = self => Effect.suspend(() => {
|
|
|
907
907
|
* })
|
|
908
908
|
* ```
|
|
909
909
|
*
|
|
910
|
-
* @category
|
|
910
|
+
* @category subscriptions
|
|
911
911
|
* @since 4.0.0
|
|
912
912
|
*/
|
|
913
913
|
export const takeAll = self => Effect.suspend(function loop(value) {
|
|
@@ -973,7 +973,7 @@ const pollForItem = self => {
|
|
|
973
973
|
* })
|
|
974
974
|
* ```
|
|
975
975
|
*
|
|
976
|
-
* @category
|
|
976
|
+
* @category subscriptions
|
|
977
977
|
* @since 4.0.0
|
|
978
978
|
*/
|
|
979
979
|
export const takeUpTo = /*#__PURE__*/dual(2, (self, max) => Effect.suspend(() => {
|
|
@@ -1019,7 +1019,7 @@ export const takeUpTo = /*#__PURE__*/dual(2, (self, max) => Effect.suspend(() =>
|
|
|
1019
1019
|
* })
|
|
1020
1020
|
* ```
|
|
1021
1021
|
*
|
|
1022
|
-
* @category
|
|
1022
|
+
* @category subscriptions
|
|
1023
1023
|
* @since 4.0.0
|
|
1024
1024
|
*/
|
|
1025
1025
|
export const takeBetween = /*#__PURE__*/dual(3, (self, min, max) => Effect.suspend(() => takeRemainderLoop(self, min, max, [])));
|