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/Graph.ts
CHANGED
|
@@ -2493,7 +2493,7 @@ export const neighborsDirected: {
|
|
|
2493
2493
|
* }
|
|
2494
2494
|
* ```
|
|
2495
2495
|
*
|
|
2496
|
-
* @category
|
|
2496
|
+
* @category options
|
|
2497
2497
|
* @since 3.18.0
|
|
2498
2498
|
*/
|
|
2499
2499
|
export interface GraphVizOptions<N, E> {
|
|
@@ -2545,7 +2545,7 @@ export interface GraphVizOptions<N, E> {
|
|
|
2545
2545
|
* // }
|
|
2546
2546
|
* ```
|
|
2547
2547
|
*
|
|
2548
|
-
* @category
|
|
2548
|
+
* @category converting
|
|
2549
2549
|
* @since 3.18.0
|
|
2550
2550
|
*/
|
|
2551
2551
|
export const toGraphViz: {
|
|
@@ -2578,7 +2578,7 @@ export const toGraphViz: {
|
|
|
2578
2578
|
* // }
|
|
2579
2579
|
* ```
|
|
2580
2580
|
*
|
|
2581
|
-
* @category
|
|
2581
|
+
* @category converting
|
|
2582
2582
|
* @since 3.18.0
|
|
2583
2583
|
*/
|
|
2584
2584
|
<N, E>(options?: GraphVizOptions<N, E>): <T extends Kind = "directed">(graph: Graph<N, E, T> | MutableGraph<N, E, T>) => string
|
|
@@ -2611,7 +2611,7 @@ export const toGraphViz: {
|
|
|
2611
2611
|
* // }
|
|
2612
2612
|
* ```
|
|
2613
2613
|
*
|
|
2614
|
-
* @category
|
|
2614
|
+
* @category converting
|
|
2615
2615
|
* @since 3.18.0
|
|
2616
2616
|
*/
|
|
2617
2617
|
<N, E, T extends Kind = "directed">(
|
|
@@ -2817,7 +2817,7 @@ export type MermaidDiagramType =
|
|
|
2817
2817
|
* }
|
|
2818
2818
|
* ```
|
|
2819
2819
|
*
|
|
2820
|
-
* @category
|
|
2820
|
+
* @category options
|
|
2821
2821
|
* @since 3.18.0
|
|
2822
2822
|
*/
|
|
2823
2823
|
export interface MermaidOptions<N, E> {
|
|
@@ -3082,7 +3082,7 @@ const formatMermaidNode = (
|
|
|
3082
3082
|
* // 0 -->|"builds with"| 3
|
|
3083
3083
|
* ```
|
|
3084
3084
|
*
|
|
3085
|
-
* @category
|
|
3085
|
+
* @category converting
|
|
3086
3086
|
* @since 3.18.0
|
|
3087
3087
|
*/
|
|
3088
3088
|
export const toMermaid: {
|
|
@@ -3262,7 +3262,7 @@ export const toMermaid: {
|
|
|
3262
3262
|
* // 0 -->|"builds with"| 3
|
|
3263
3263
|
* ```
|
|
3264
3264
|
*
|
|
3265
|
-
* @category
|
|
3265
|
+
* @category converting
|
|
3266
3266
|
* @since 3.18.0
|
|
3267
3267
|
*/
|
|
3268
3268
|
<N, E>(options?: MermaidOptions<N, E>): <T extends Kind = "directed">(graph: Graph<N, E, T> | MutableGraph<N, E, T>) => string
|
|
@@ -3442,7 +3442,7 @@ export const toMermaid: {
|
|
|
3442
3442
|
* // 0 -->|"builds with"| 3
|
|
3443
3443
|
* ```
|
|
3444
3444
|
*
|
|
3445
|
-
* @category
|
|
3445
|
+
* @category converting
|
|
3446
3446
|
* @since 3.18.0
|
|
3447
3447
|
*/
|
|
3448
3448
|
<N, E, T extends Kind = "directed">(
|
|
@@ -5263,7 +5263,7 @@ export type EdgeWalker<E> = Walker<EdgeIndex, Edge<E>>
|
|
|
5263
5263
|
* console.log(indices) // [0, 1]
|
|
5264
5264
|
* ```
|
|
5265
5265
|
*
|
|
5266
|
-
* @category
|
|
5266
|
+
* @category iterators
|
|
5267
5267
|
* @since 3.18.0
|
|
5268
5268
|
*/
|
|
5269
5269
|
export const indices = <T, N>(walker: Walker<T, N>): Iterable<T> => walker.visit((index, _) => index)
|
|
@@ -5287,7 +5287,7 @@ export const indices = <T, N>(walker: Walker<T, N>): Iterable<T> => walker.visit
|
|
|
5287
5287
|
* console.log(values) // ["A", "B"]
|
|
5288
5288
|
* ```
|
|
5289
5289
|
*
|
|
5290
|
-
* @category
|
|
5290
|
+
* @category iterators
|
|
5291
5291
|
* @since 3.18.0
|
|
5292
5292
|
*/
|
|
5293
5293
|
export const values = <T, N>(walker: Walker<T, N>): Iterable<N> => walker.visit((_, data) => data)
|
|
@@ -5311,7 +5311,7 @@ export const values = <T, N>(walker: Walker<T, N>): Iterable<N> => walker.visit(
|
|
|
5311
5311
|
* console.log(entries) // [[0, "A"], [1, "B"]]
|
|
5312
5312
|
* ```
|
|
5313
5313
|
*
|
|
5314
|
-
* @category
|
|
5314
|
+
* @category iterators
|
|
5315
5315
|
* @since 3.18.0
|
|
5316
5316
|
*/
|
|
5317
5317
|
export const entries = <T, N>(walker: Walker<T, N>): Iterable<[T, N]> =>
|
package/src/HKT.ts
CHANGED
package/src/HashMap.ts
CHANGED
|
@@ -197,7 +197,7 @@ export declare namespace HashMap {
|
|
|
197
197
|
* console.log(getUserById("alice")) // Option.some({ name: "Alice", age: 30 })
|
|
198
198
|
* ```
|
|
199
199
|
*
|
|
200
|
-
* @category
|
|
200
|
+
* @category utility types
|
|
201
201
|
* @since 2.0.0
|
|
202
202
|
*/
|
|
203
203
|
export type Key<T extends HashMap<any, any>> = [T] extends [HashMap<infer _K, infer _V>] ? _K : never
|
|
@@ -228,7 +228,7 @@ export declare namespace HashMap {
|
|
|
228
228
|
* // alice has type Option<User> thanks to type extraction
|
|
229
229
|
* ```
|
|
230
230
|
*
|
|
231
|
-
* @category
|
|
231
|
+
* @category utility types
|
|
232
232
|
* @since 2.0.0
|
|
233
233
|
*/
|
|
234
234
|
export type Value<T extends HashMap<any, any>> = [T] extends [HashMap<infer _K, infer _V>] ? _V : never
|
|
@@ -260,7 +260,7 @@ export declare namespace HashMap {
|
|
|
260
260
|
* console.log(descriptions) // ["book: $29 (education)", "laptop: $999 (electronics)"]
|
|
261
261
|
* ```
|
|
262
262
|
*
|
|
263
|
-
* @category
|
|
263
|
+
* @category utility types
|
|
264
264
|
* @since 3.9.0
|
|
265
265
|
*/
|
|
266
266
|
export type Entry<T extends HashMap<any, any>> = [Key<T>, Value<T>]
|
package/src/HashSet.ts
CHANGED
|
@@ -125,7 +125,7 @@ export declare namespace HashSet {
|
|
|
125
125
|
* const processNumber = (n: NumberType) => n * 2
|
|
126
126
|
* ```
|
|
127
127
|
*
|
|
128
|
-
* @category
|
|
128
|
+
* @category utility types
|
|
129
129
|
* @since 4.0.0
|
|
130
130
|
*/
|
|
131
131
|
export type Value<T> = T extends HashSet<infer V> ? V : never
|
package/src/Iterable.ts
CHANGED
|
@@ -332,7 +332,7 @@ export const fromRecord = <K extends string, A>(self: Readonly<Record<K, A>>): I
|
|
|
332
332
|
* console.log(Array.from(withZ)) // ["z", "a", "b", "c"]
|
|
333
333
|
* ```
|
|
334
334
|
*
|
|
335
|
-
* @category
|
|
335
|
+
* @category combining
|
|
336
336
|
* @since 2.0.0
|
|
337
337
|
*/
|
|
338
338
|
export const prepend: {
|
|
@@ -354,7 +354,7 @@ export const prepend: {
|
|
|
354
354
|
* console.log(Array.from(withZ)) // ["z", "a", "b", "c"]
|
|
355
355
|
* ```
|
|
356
356
|
*
|
|
357
|
-
* @category
|
|
357
|
+
* @category combining
|
|
358
358
|
* @since 2.0.0
|
|
359
359
|
*/
|
|
360
360
|
<B>(head: B): <A>(self: Iterable<A>) => Iterable<A | B>
|
|
@@ -376,7 +376,7 @@ export const prepend: {
|
|
|
376
376
|
* console.log(Array.from(withZ)) // ["z", "a", "b", "c"]
|
|
377
377
|
* ```
|
|
378
378
|
*
|
|
379
|
-
* @category
|
|
379
|
+
* @category combining
|
|
380
380
|
* @since 2.0.0
|
|
381
381
|
*/
|
|
382
382
|
<A, B>(self: Iterable<A>, head: B): Iterable<A | B>
|
|
@@ -397,7 +397,7 @@ export const prepend: {
|
|
|
397
397
|
* )
|
|
398
398
|
* ```
|
|
399
399
|
*
|
|
400
|
-
* @category
|
|
400
|
+
* @category combining
|
|
401
401
|
* @since 2.0.0
|
|
402
402
|
*/
|
|
403
403
|
export const prependAll: {
|
|
@@ -416,7 +416,7 @@ export const prependAll: {
|
|
|
416
416
|
* )
|
|
417
417
|
* ```
|
|
418
418
|
*
|
|
419
|
-
* @category
|
|
419
|
+
* @category combining
|
|
420
420
|
* @since 2.0.0
|
|
421
421
|
*/
|
|
422
422
|
<B>(that: Iterable<B>): <A>(self: Iterable<A>) => Iterable<A | B>
|
|
@@ -435,7 +435,7 @@ export const prependAll: {
|
|
|
435
435
|
* )
|
|
436
436
|
* ```
|
|
437
437
|
*
|
|
438
|
-
* @category
|
|
438
|
+
* @category combining
|
|
439
439
|
* @since 2.0.0
|
|
440
440
|
*/
|
|
441
441
|
<A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>
|
|
@@ -482,7 +482,7 @@ export const prependAll: {
|
|
|
482
482
|
* @see {@link prepend} for adding one element before the existing elements
|
|
483
483
|
* @see {@link appendAll} for appending all elements from another iterable
|
|
484
484
|
*
|
|
485
|
-
* @category
|
|
485
|
+
* @category combining
|
|
486
486
|
* @since 2.0.0
|
|
487
487
|
*/
|
|
488
488
|
export const append: {
|
|
@@ -524,7 +524,7 @@ export const append: {
|
|
|
524
524
|
* @see {@link prepend} for adding one element before the existing elements
|
|
525
525
|
* @see {@link appendAll} for appending all elements from another iterable
|
|
526
526
|
*
|
|
527
|
-
* @category
|
|
527
|
+
* @category combining
|
|
528
528
|
* @since 2.0.0
|
|
529
529
|
*/
|
|
530
530
|
<B>(last: B): <A>(self: Iterable<A>) => Iterable<A | B>
|
|
@@ -566,7 +566,7 @@ export const append: {
|
|
|
566
566
|
* @see {@link prepend} for adding one element before the existing elements
|
|
567
567
|
* @see {@link appendAll} for appending all elements from another iterable
|
|
568
568
|
*
|
|
569
|
-
* @category
|
|
569
|
+
* @category combining
|
|
570
570
|
* @since 2.0.0
|
|
571
571
|
*/
|
|
572
572
|
<A, B>(self: Iterable<A>, last: B): Iterable<A | B>
|
|
@@ -615,7 +615,7 @@ export const append: {
|
|
|
615
615
|
* @see {@link append} for appending one value instead of another iterable
|
|
616
616
|
* @see {@link prependAll} for yielding another iterable before `self`
|
|
617
617
|
*
|
|
618
|
-
* @category
|
|
618
|
+
* @category combining
|
|
619
619
|
* @since 2.0.0
|
|
620
620
|
*/
|
|
621
621
|
export const appendAll: {
|
|
@@ -662,7 +662,7 @@ export const appendAll: {
|
|
|
662
662
|
* @see {@link append} for appending one value instead of another iterable
|
|
663
663
|
* @see {@link prependAll} for yielding another iterable before `self`
|
|
664
664
|
*
|
|
665
|
-
* @category
|
|
665
|
+
* @category combining
|
|
666
666
|
* @since 2.0.0
|
|
667
667
|
*/
|
|
668
668
|
<B>(that: Iterable<B>): <A>(self: Iterable<A>) => Iterable<A | B>
|
|
@@ -709,7 +709,7 @@ export const appendAll: {
|
|
|
709
709
|
* @see {@link append} for appending one value instead of another iterable
|
|
710
710
|
* @see {@link prependAll} for yielding another iterable before `self`
|
|
711
711
|
*
|
|
712
|
-
* @category
|
|
712
|
+
* @category combining
|
|
713
713
|
* @since 2.0.0
|
|
714
714
|
*/
|
|
715
715
|
<A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>
|
|
@@ -2273,7 +2273,7 @@ export const zipWith: {
|
|
|
2273
2273
|
* console.log(Array.from(css).join("")) // "color: red; font-size: 14px; margin: 10px"
|
|
2274
2274
|
* ```
|
|
2275
2275
|
*
|
|
2276
|
-
* @category
|
|
2276
|
+
* @category combining
|
|
2277
2277
|
* @since 2.0.0
|
|
2278
2278
|
*/
|
|
2279
2279
|
export const intersperse: {
|
|
@@ -2319,7 +2319,7 @@ export const intersperse: {
|
|
|
2319
2319
|
* console.log(Array.from(css).join("")) // "color: red; font-size: 14px; margin: 10px"
|
|
2320
2320
|
* ```
|
|
2321
2321
|
*
|
|
2322
|
-
* @category
|
|
2322
|
+
* @category combining
|
|
2323
2323
|
* @since 2.0.0
|
|
2324
2324
|
*/
|
|
2325
2325
|
<B>(middle: B): <A>(self: Iterable<A>) => Iterable<A | B>
|
|
@@ -2365,7 +2365,7 @@ export const intersperse: {
|
|
|
2365
2365
|
* console.log(Array.from(css).join("")) // "color: red; font-size: 14px; margin: 10px"
|
|
2366
2366
|
* ```
|
|
2367
2367
|
*
|
|
2368
|
-
* @category
|
|
2368
|
+
* @category combining
|
|
2369
2369
|
* @since 2.0.0
|
|
2370
2370
|
*/
|
|
2371
2371
|
<A, B>(self: Iterable<A>, middle: B): Iterable<A | B>
|
package/src/Layer.ts
CHANGED
|
@@ -1540,7 +1540,7 @@ export const suspend = <A, E, R>(evaluate: LazyArg<Layer<A, E, R>>): Layer<A, E,
|
|
|
1540
1540
|
* const unwrappedLayer = Layer.unwrap(layerEffect)
|
|
1541
1541
|
* ```
|
|
1542
1542
|
*
|
|
1543
|
-
* @category
|
|
1543
|
+
* @category converting
|
|
1544
1544
|
* @since 4.0.0
|
|
1545
1545
|
*/
|
|
1546
1546
|
export const unwrap = <A, E1, R1, E, R>(
|
|
@@ -1953,7 +1953,7 @@ const provideWith = (
|
|
|
1953
1953
|
*
|
|
1954
1954
|
* @see {@link provideMerge} for retaining the dependency services
|
|
1955
1955
|
*
|
|
1956
|
-
* @category
|
|
1956
|
+
* @category providing services
|
|
1957
1957
|
* @since 2.0.0
|
|
1958
1958
|
*/
|
|
1959
1959
|
export const provide: {
|
|
@@ -2033,7 +2033,7 @@ export const provide: {
|
|
|
2033
2033
|
*
|
|
2034
2034
|
* @see {@link provideMerge} for retaining the dependency services
|
|
2035
2035
|
*
|
|
2036
|
-
* @category
|
|
2036
|
+
* @category providing services
|
|
2037
2037
|
* @since 2.0.0
|
|
2038
2038
|
*/
|
|
2039
2039
|
<RIn, E, ROut>(that: Layer<ROut, E, RIn>): <RIn2, E2, ROut2>(self: Layer<ROut2, E2, RIn2>) => Layer<ROut2, E | E2, RIn | Exclude<RIn2, ROut>>
|
|
@@ -2113,7 +2113,7 @@ export const provide: {
|
|
|
2113
2113
|
*
|
|
2114
2114
|
* @see {@link provideMerge} for retaining the dependency services
|
|
2115
2115
|
*
|
|
2116
|
-
* @category
|
|
2116
|
+
* @category providing services
|
|
2117
2117
|
* @since 2.0.0
|
|
2118
2118
|
*/
|
|
2119
2119
|
<const Layers extends [Any, ...Array<Any>]>(that: Layers): <A, E, R>(
|
|
@@ -2200,7 +2200,7 @@ export const provide: {
|
|
|
2200
2200
|
*
|
|
2201
2201
|
* @see {@link provideMerge} for retaining the dependency services
|
|
2202
2202
|
*
|
|
2203
|
-
* @category
|
|
2203
|
+
* @category providing services
|
|
2204
2204
|
* @since 2.0.0
|
|
2205
2205
|
*/
|
|
2206
2206
|
<RIn2, E2, ROut2, RIn, E, ROut>(self: Layer<ROut2, E2, RIn2>, that: Layer<ROut, E, RIn>): Layer<ROut2, E | E2, RIn | Exclude<RIn2, ROut>>
|
|
@@ -2280,7 +2280,7 @@ export const provide: {
|
|
|
2280
2280
|
*
|
|
2281
2281
|
* @see {@link provideMerge} for retaining the dependency services
|
|
2282
2282
|
*
|
|
2283
|
-
* @category
|
|
2283
|
+
* @category providing services
|
|
2284
2284
|
* @since 2.0.0
|
|
2285
2285
|
*/
|
|
2286
2286
|
<A, E, R, const Layers extends [Any, ...Array<Any>]>(self: Layer<A, E, R>, that: Layers): Layer<
|
|
@@ -2372,7 +2372,7 @@ export const provide: {
|
|
|
2372
2372
|
*
|
|
2373
2373
|
* @see {@link provide} for keeping dependency services private
|
|
2374
2374
|
*
|
|
2375
|
-
* @category
|
|
2375
|
+
* @category providing services
|
|
2376
2376
|
* @since 2.0.0
|
|
2377
2377
|
*/
|
|
2378
2378
|
export const provideMerge: {
|
|
@@ -2454,7 +2454,7 @@ export const provideMerge: {
|
|
|
2454
2454
|
*
|
|
2455
2455
|
* @see {@link provide} for keeping dependency services private
|
|
2456
2456
|
*
|
|
2457
|
-
* @category
|
|
2457
|
+
* @category providing services
|
|
2458
2458
|
* @since 2.0.0
|
|
2459
2459
|
*/
|
|
2460
2460
|
<RIn, E, ROut>(that: Layer<ROut, E, RIn>): <RIn2, E2, ROut2>(self: Layer<ROut2, E2, RIn2>) => Layer<ROut | ROut2, E | E2, RIn | Exclude<RIn2, ROut>>
|
|
@@ -2536,7 +2536,7 @@ export const provideMerge: {
|
|
|
2536
2536
|
*
|
|
2537
2537
|
* @see {@link provide} for keeping dependency services private
|
|
2538
2538
|
*
|
|
2539
|
-
* @category
|
|
2539
|
+
* @category providing services
|
|
2540
2540
|
* @since 2.0.0
|
|
2541
2541
|
*/
|
|
2542
2542
|
<const Layers extends [Any, ...Array<Any>]>(that: Layers): <A, E, R>(
|
|
@@ -2625,7 +2625,7 @@ export const provideMerge: {
|
|
|
2625
2625
|
*
|
|
2626
2626
|
* @see {@link provide} for keeping dependency services private
|
|
2627
2627
|
*
|
|
2628
|
-
* @category
|
|
2628
|
+
* @category providing services
|
|
2629
2629
|
* @since 2.0.0
|
|
2630
2630
|
*/
|
|
2631
2631
|
<RIn2, E2, ROut2, RIn, E, ROut>(self: Layer<ROut2, E2, RIn2>, that: Layer<ROut, E, RIn>): Layer<ROut | ROut2, E | E2, RIn | Exclude<RIn2, ROut>>
|
|
@@ -2707,7 +2707,7 @@ export const provideMerge: {
|
|
|
2707
2707
|
*
|
|
2708
2708
|
* @see {@link provide} for keeping dependency services private
|
|
2709
2709
|
*
|
|
2710
|
-
* @category
|
|
2710
|
+
* @category providing services
|
|
2711
2711
|
* @since 2.0.0
|
|
2712
2712
|
*/
|
|
2713
2713
|
<A, E, R, const Layers extends [Any, ...Array<Any>]>(self: Layer<A, E, R>, that: Layers): Layer<
|
|
@@ -3634,7 +3634,7 @@ export const catchCause: {
|
|
|
3634
3634
|
* transformation function `f`, and replaces the old service with the
|
|
3635
3635
|
* transformed one.
|
|
3636
3636
|
*
|
|
3637
|
-
* @category
|
|
3637
|
+
* @category providing services
|
|
3638
3638
|
* @since 3.13.0
|
|
3639
3639
|
*/
|
|
3640
3640
|
export const updateService: {
|
|
@@ -3653,7 +3653,7 @@ export const updateService: {
|
|
|
3653
3653
|
* transformation function `f`, and replaces the old service with the
|
|
3654
3654
|
* transformed one.
|
|
3655
3655
|
*
|
|
3656
|
-
* @category
|
|
3656
|
+
* @category providing services
|
|
3657
3657
|
* @since 3.13.0
|
|
3658
3658
|
*/
|
|
3659
3659
|
<I, A>(service: Context.Key<I, A>, f: (a: Types.NoInfer<A>) => A): <A1, E1, R1>(layer: Layer<A1, E1, R1>) => Layer<A1, E1, I | R1>
|
|
@@ -3672,7 +3672,7 @@ export const updateService: {
|
|
|
3672
3672
|
* transformation function `f`, and replaces the old service with the
|
|
3673
3673
|
* transformed one.
|
|
3674
3674
|
*
|
|
3675
|
-
* @category
|
|
3675
|
+
* @category providing services
|
|
3676
3676
|
* @since 3.13.0
|
|
3677
3677
|
*/
|
|
3678
3678
|
<A1, E1, R1, I, A>(
|
|
@@ -3765,7 +3765,7 @@ export const updateService: {
|
|
|
3765
3765
|
* // same Counter: false
|
|
3766
3766
|
* ```
|
|
3767
3767
|
*
|
|
3768
|
-
* @category
|
|
3768
|
+
* @category layers
|
|
3769
3769
|
* @since 2.0.0
|
|
3770
3770
|
*/
|
|
3771
3771
|
export const fresh = <A, E, R>(self: Layer<A, E, R>): Layer<A, E, R> =>
|
|
@@ -4224,7 +4224,7 @@ export const satisfiesServicesType =
|
|
|
4224
4224
|
* @see {@link span} for creating a layer span
|
|
4225
4225
|
* @see {@link withSpan} for wrapping layer construction in a span
|
|
4226
4226
|
*
|
|
4227
|
-
* @category
|
|
4227
|
+
* @category options
|
|
4228
4228
|
* @since 4.0.0
|
|
4229
4229
|
*/
|
|
4230
4230
|
export interface SpanOptions extends Tracer.SpanOptions {
|
package/src/Logger.ts
CHANGED
|
@@ -171,7 +171,7 @@ export interface Logger<in Message, out Output> extends Pipeable {
|
|
|
171
171
|
* )
|
|
172
172
|
* ```
|
|
173
173
|
*
|
|
174
|
-
* @category
|
|
174
|
+
* @category options
|
|
175
175
|
* @since 2.0.0
|
|
176
176
|
*/
|
|
177
177
|
export interface Options<out Message> {
|
|
@@ -295,7 +295,7 @@ export const LogToStderr: Context.Reference<boolean> = effect.LogToStderr
|
|
|
295
295
|
* )
|
|
296
296
|
* ```
|
|
297
297
|
*
|
|
298
|
-
* @category
|
|
298
|
+
* @category mapping
|
|
299
299
|
* @since 2.0.0
|
|
300
300
|
*/
|
|
301
301
|
export const map = dual<
|
|
@@ -332,7 +332,7 @@ export const map = dual<
|
|
|
332
332
|
* )
|
|
333
333
|
* ```
|
|
334
334
|
*
|
|
335
|
-
* @category
|
|
335
|
+
* @category mapping
|
|
336
336
|
* @since 2.0.0
|
|
337
337
|
*/
|
|
338
338
|
<Output, Output2>(f: (output: Output) => Output2) => <Message>(
|
|
@@ -371,7 +371,7 @@ export const map = dual<
|
|
|
371
371
|
* )
|
|
372
372
|
* ```
|
|
373
373
|
*
|
|
374
|
-
* @category
|
|
374
|
+
* @category mapping
|
|
375
375
|
* @since 2.0.0
|
|
376
376
|
*/
|
|
377
377
|
<Message, Output, Output2>(self: Logger<Message, Output>, f: (output: Output) => Output2) => Logger<Message, Output2>
|
|
@@ -404,7 +404,7 @@ export const map = dual<
|
|
|
404
404
|
* )
|
|
405
405
|
* ```
|
|
406
406
|
*
|
|
407
|
-
* @category
|
|
407
|
+
* @category logging
|
|
408
408
|
* @since 2.0.0
|
|
409
409
|
*/
|
|
410
410
|
export const withConsoleLog = <Message, Output>(
|
|
@@ -441,7 +441,7 @@ export const withConsoleLog = <Message, Output>(
|
|
|
441
441
|
* )
|
|
442
442
|
* ```
|
|
443
443
|
*
|
|
444
|
-
* @category
|
|
444
|
+
* @category logging
|
|
445
445
|
* @since 2.0.0
|
|
446
446
|
*/
|
|
447
447
|
export const withConsoleError = <Message, Output>(
|
|
@@ -488,7 +488,7 @@ export const withConsoleError = <Message, Output>(
|
|
|
488
488
|
* )
|
|
489
489
|
* ```
|
|
490
490
|
*
|
|
491
|
-
* @category
|
|
491
|
+
* @category logging
|
|
492
492
|
* @since 3.8.0
|
|
493
493
|
*/
|
|
494
494
|
export const withLeveledConsole = <Message, Output>(
|
package/src/ManagedRuntime.ts
CHANGED
|
@@ -94,7 +94,7 @@ export declare namespace ManagedRuntime {
|
|
|
94
94
|
* Use to derive the service requirements provided by an existing
|
|
95
95
|
* `ManagedRuntime` type.
|
|
96
96
|
*
|
|
97
|
-
* @category
|
|
97
|
+
* @category utility types
|
|
98
98
|
* @since 3.4.0
|
|
99
99
|
*/
|
|
100
100
|
export type Services<T extends ManagedRuntime<never, any>> = [T] extends [ManagedRuntime<infer R, infer _E>] ? R
|
|
@@ -107,7 +107,7 @@ export declare namespace ManagedRuntime {
|
|
|
107
107
|
* Use to derive the layer construction error type from an existing
|
|
108
108
|
* `ManagedRuntime` type.
|
|
109
109
|
*
|
|
110
|
-
* @category
|
|
110
|
+
* @category utility types
|
|
111
111
|
* @since 3.4.0
|
|
112
112
|
*/
|
|
113
113
|
export type Error<T extends ManagedRuntime<never, any>> = [T] extends [ManagedRuntime<infer _R, infer E>] ? E : never
|
package/src/Match.ts
CHANGED
|
@@ -309,7 +309,7 @@ export interface Not {
|
|
|
309
309
|
*
|
|
310
310
|
* @see {@link value} for creating a matcher from a specific value.
|
|
311
311
|
*
|
|
312
|
-
* @category
|
|
312
|
+
* @category constructors
|
|
313
313
|
* @since 4.0.0
|
|
314
314
|
*/
|
|
315
315
|
export const type: <I>() => Matcher<I, Types.Without<never>, I, never, never> = internal.type
|
|
@@ -355,7 +355,7 @@ export const type: <I>() => Matcher<I, Types.Without<never>, I, never, never> =
|
|
|
355
355
|
*
|
|
356
356
|
* @see {@link type} for creating a matcher from a specific type.
|
|
357
357
|
*
|
|
358
|
-
* @category
|
|
358
|
+
* @category constructors
|
|
359
359
|
* @since 4.0.0
|
|
360
360
|
*/
|
|
361
361
|
export const value: <const I>(
|
|
@@ -388,7 +388,7 @@ export const value: <const I>(
|
|
|
388
388
|
* console.log(message) // "Success: Hello"
|
|
389
389
|
* ```
|
|
390
390
|
*
|
|
391
|
-
* @category
|
|
391
|
+
* @category constructors
|
|
392
392
|
* @since 4.0.0
|
|
393
393
|
*/
|
|
394
394
|
export const valueTags: {
|
|
@@ -418,7 +418,7 @@ export const valueTags: {
|
|
|
418
418
|
* console.log(message) // "Success: Hello"
|
|
419
419
|
* ```
|
|
420
420
|
*
|
|
421
|
-
* @category
|
|
421
|
+
* @category constructors
|
|
422
422
|
* @since 4.0.0
|
|
423
423
|
*/
|
|
424
424
|
<
|
|
@@ -453,7 +453,7 @@ export const valueTags: {
|
|
|
453
453
|
* console.log(message) // "Success: Hello"
|
|
454
454
|
* ```
|
|
455
455
|
*
|
|
456
|
-
* @category
|
|
456
|
+
* @category constructors
|
|
457
457
|
* @since 4.0.0
|
|
458
458
|
*/
|
|
459
459
|
<
|
|
@@ -507,7 +507,7 @@ export const valueTags: {
|
|
|
507
507
|
* // Output: { type: "pending" }
|
|
508
508
|
* ```
|
|
509
509
|
*
|
|
510
|
-
* @category
|
|
510
|
+
* @category constructors
|
|
511
511
|
* @since 4.0.0
|
|
512
512
|
*/
|
|
513
513
|
export const typeTags: {
|
|
@@ -554,7 +554,7 @@ export const typeTags: {
|
|
|
554
554
|
* // Output: { type: "pending" }
|
|
555
555
|
* ```
|
|
556
556
|
*
|
|
557
|
-
* @category
|
|
557
|
+
* @category constructors
|
|
558
558
|
* @since 4.0.0
|
|
559
559
|
*/
|
|
560
560
|
<I, Ret>(): <
|
|
@@ -609,7 +609,7 @@ export const typeTags: {
|
|
|
609
609
|
* // Output: { type: "pending" }
|
|
610
610
|
* ```
|
|
611
611
|
*
|
|
612
|
-
* @category
|
|
612
|
+
* @category constructors
|
|
613
613
|
* @since 4.0.0
|
|
614
614
|
*/
|
|
615
615
|
<I>(): <
|
|
@@ -652,7 +652,7 @@ export const typeTags: {
|
|
|
652
652
|
* )
|
|
653
653
|
* ```
|
|
654
654
|
*
|
|
655
|
-
* @category
|
|
655
|
+
* @category utility types
|
|
656
656
|
* @since 4.0.0
|
|
657
657
|
*/
|
|
658
658
|
export const withReturnType: <Ret>() => <I, F, R, A, Pr, _>(
|
|
@@ -1381,7 +1381,7 @@ export const not: <
|
|
|
1381
1381
|
*
|
|
1382
1382
|
* @see {@link string} for matching any string
|
|
1383
1383
|
*
|
|
1384
|
-
* @category
|
|
1384
|
+
* @category predicates
|
|
1385
1385
|
* @since 4.0.0
|
|
1386
1386
|
*/
|
|
1387
1387
|
export const nonEmptyString: SafeRefinement<string, never> = internal.nonEmptyString
|
|
@@ -1427,7 +1427,7 @@ export const nonEmptyString: SafeRefinement<string, never> = internal.nonEmptySt
|
|
|
1427
1427
|
* // Output: "Unknown status: pending"
|
|
1428
1428
|
* ```
|
|
1429
1429
|
*
|
|
1430
|
-
* @category
|
|
1430
|
+
* @category predicates
|
|
1431
1431
|
* @since 4.0.0
|
|
1432
1432
|
*/
|
|
1433
1433
|
export const is: <
|
|
@@ -1553,7 +1553,7 @@ export const number: Predicate.Refinement<unknown, number> = Predicate.isNumber
|
|
|
1553
1553
|
* @see {@link defined} for matching only non-nullish values
|
|
1554
1554
|
* @see {@link orElse} for providing a fallback after earlier cases
|
|
1555
1555
|
*
|
|
1556
|
-
* @category
|
|
1556
|
+
* @category predicates
|
|
1557
1557
|
* @since 4.0.0
|
|
1558
1558
|
*/
|
|
1559
1559
|
export const any: SafeRefinement<unknown, any> = internal.any
|
|
@@ -1602,7 +1602,7 @@ export const any: SafeRefinement<unknown, any> = internal.any
|
|
|
1602
1602
|
*
|
|
1603
1603
|
* @see {@link any} for matching every value without excluding nullish inputs
|
|
1604
1604
|
*
|
|
1605
|
-
* @category
|
|
1605
|
+
* @category predicates
|
|
1606
1606
|
* @since 4.0.0
|
|
1607
1607
|
*/
|
|
1608
1608
|
export const defined: <A>(u: A) => u is A & {} = internal.defined
|
|
@@ -1665,7 +1665,7 @@ export {
|
|
|
1665
1665
|
* @see {@link defined} for matching non-nullish values
|
|
1666
1666
|
* @see {@link is} for matching literal values
|
|
1667
1667
|
*
|
|
1668
|
-
* @category
|
|
1668
|
+
* @category predicates
|
|
1669
1669
|
* @since 4.0.0
|
|
1670
1670
|
*/
|
|
1671
1671
|
_undefined as undefined
|
|
@@ -1688,7 +1688,7 @@ export {
|
|
|
1688
1688
|
* @see {@link defined} for matching non-nullish values
|
|
1689
1689
|
* @see {@link is} for matching literal values
|
|
1690
1690
|
*
|
|
1691
|
-
* @category
|
|
1691
|
+
* @category predicates
|
|
1692
1692
|
* @since 4.0.0
|
|
1693
1693
|
*/
|
|
1694
1694
|
_null as null
|
|
@@ -1914,7 +1914,7 @@ export const record: Predicate.Refinement<unknown, { [x: PropertyKey]: unknown }
|
|
|
1914
1914
|
* @see {@link instanceOfUnsafe} for constructor matching without the same type-safety guarantee
|
|
1915
1915
|
* @see {@link record} for matching broad non-null, non-array objects
|
|
1916
1916
|
*
|
|
1917
|
-
* @category
|
|
1917
|
+
* @category predicates
|
|
1918
1918
|
* @since 4.0.0
|
|
1919
1919
|
*/
|
|
1920
1920
|
export const instanceOf: <A extends abstract new(...args: any) => any>(
|
|
@@ -2003,7 +2003,7 @@ export const instanceOfUnsafe: <A extends abstract new(...args: any) => any>(
|
|
|
2003
2003
|
* @see {@link result} for returning unmatched input as a `Result` failure
|
|
2004
2004
|
* @see {@link orElseAbsurd} for finalizing when unmatched input should be impossible
|
|
2005
2005
|
*
|
|
2006
|
-
* @category
|
|
2006
|
+
* @category completion
|
|
2007
2007
|
* @since 4.0.0
|
|
2008
2008
|
*/
|
|
2009
2009
|
export const orElse: <RA, Ret, F extends (_: RA) => Ret>(
|
|
@@ -2096,7 +2096,7 @@ export const orElseAbsurd: <I, R, RA, A, Pr, Ret>(
|
|
|
2096
2096
|
* // Output: { _id: 'Result', _tag: 'Err', err: { role: 'viewer' } }
|
|
2097
2097
|
* ```
|
|
2098
2098
|
*
|
|
2099
|
-
* @category
|
|
2099
|
+
* @category completion
|
|
2100
2100
|
* @since 4.0.0
|
|
2101
2101
|
*/
|
|
2102
2102
|
export const result: <I, F, R, A, Pr, Ret>(
|
|
@@ -2145,7 +2145,7 @@ export const result: <I, F, R, A, Pr, Ret>(
|
|
|
2145
2145
|
* @see {@link result} for preserving unmatched input as a `Result` failure
|
|
2146
2146
|
* @see {@link orElse} for replacing unmatched input with a fallback value
|
|
2147
2147
|
*
|
|
2148
|
-
* @category
|
|
2148
|
+
* @category completion
|
|
2149
2149
|
* @since 4.0.0
|
|
2150
2150
|
*/
|
|
2151
2151
|
export const option: <I, F, R, A, Pr, Ret>(
|
|
@@ -2181,7 +2181,7 @@ export const option: <I, F, R, A, Pr, Ret>(
|
|
|
2181
2181
|
* )
|
|
2182
2182
|
* ```
|
|
2183
2183
|
*
|
|
2184
|
-
* @category
|
|
2184
|
+
* @category completion
|
|
2185
2185
|
* @since 4.0.0
|
|
2186
2186
|
*/
|
|
2187
2187
|
export const exhaustive: <I, F, A, Pr, Ret>(
|