effect 4.0.0-beta.73 → 4.0.0-beta.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Array.d.ts +16 -16
- package/dist/Array.js +4 -4
- package/dist/Boolean.d.ts +2 -2
- package/dist/Boolean.js +2 -2
- package/dist/Channel.d.ts +63 -63
- package/dist/Channel.js +25 -25
- package/dist/Chunk.d.ts +17 -17
- package/dist/Chunk.js +5 -5
- package/dist/Context.d.ts +3 -3
- package/dist/Context.js +1 -1
- package/dist/Cron.d.ts +4 -4
- package/dist/Cron.js +4 -4
- package/dist/Deferred.d.ts +37 -37
- package/dist/Deferred.js +13 -13
- package/dist/Duration.d.ts +6 -6
- package/dist/Duration.js +2 -2
- package/dist/Effect.d.ts +58 -58
- package/dist/Effect.js +39 -39
- package/dist/Equal.d.ts +2 -2
- package/dist/Equal.js +2 -2
- package/dist/Equivalence.d.ts +1 -1
- package/dist/Equivalence.js +1 -1
- package/dist/ExecutionPlan.d.ts +2 -2
- package/dist/ExecutionPlan.js +1 -1
- package/dist/FileSystem.d.ts +6 -6
- package/dist/FileSystem.js +2 -2
- package/dist/Function.d.ts +5 -5
- package/dist/Function.js +5 -5
- package/dist/Graph.d.ts +11 -11
- package/dist/Graph.js +5 -5
- package/dist/HKT.d.ts +1 -1
- package/dist/HashMap.d.ts +3 -3
- package/dist/HashSet.d.ts +1 -1
- package/dist/Iterable.d.ts +15 -15
- package/dist/Iterable.js +5 -5
- package/dist/Layer.d.ts +16 -16
- package/dist/Layer.js +5 -5
- package/dist/Logger.d.ts +5 -5
- package/dist/Logger.js +4 -4
- package/dist/ManagedRuntime.d.ts +2 -2
- package/dist/Match.d.ts +20 -20
- package/dist/Match.js +16 -16
- package/dist/Metric.d.ts +16 -16
- package/dist/Metric.js +3 -3
- package/dist/Option.d.ts +36 -36
- package/dist/Option.js +17 -17
- package/dist/Order.d.ts +1 -1
- package/dist/Order.js +1 -1
- package/dist/Path.d.ts +1 -1
- package/dist/Path.js +1 -1
- package/dist/Pipeable.d.ts +1 -1
- package/dist/Pipeable.js +1 -1
- package/dist/Predicate.d.ts +5 -5
- package/dist/PubSub.d.ts +9 -9
- package/dist/PubSub.js +5 -5
- package/dist/Queue.d.ts +24 -24
- package/dist/Queue.js +20 -20
- package/dist/Record.d.ts +15 -15
- package/dist/Record.js +5 -5
- package/dist/Redacted.d.ts +2 -2
- package/dist/Redacted.js +1 -1
- package/dist/Ref.d.ts +6 -6
- package/dist/Ref.js +6 -6
- package/dist/RegExp.d.ts +1 -1
- package/dist/RegExp.js +1 -1
- package/dist/Request.d.ts +4 -4
- package/dist/RequestResolver.d.ts +6 -6
- package/dist/RequestResolver.js +2 -2
- package/dist/Resource.d.ts +1 -1
- package/dist/Resource.js +1 -1
- package/dist/Result.d.ts +18 -18
- package/dist/Result.js +11 -11
- package/dist/Schedule.d.ts +44 -44
- package/dist/Schedule.js +18 -18
- package/dist/Schema.d.ts +177 -459
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +25 -25
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +1 -1
- package/dist/SchemaGetter.d.ts +13 -13
- package/dist/SchemaGetter.js +12 -12
- package/dist/SchemaParser.d.ts +3 -3
- package/dist/SchemaParser.js +3 -3
- package/dist/Scope.d.ts +1 -1
- package/dist/Scope.js +1 -1
- package/dist/Sink.d.ts +5 -5
- package/dist/Sink.js +3 -3
- package/dist/Stream.d.ts +55 -55
- package/dist/Stream.js +21 -21
- package/dist/String.d.ts +5 -5
- package/dist/String.js +3 -3
- package/dist/Struct.d.ts +8 -8
- package/dist/Struct.js +3 -3
- package/dist/SynchronizedRef.d.ts +57 -57
- package/dist/SynchronizedRef.js +19 -19
- package/dist/Terminal.d.ts +1 -1
- package/dist/Terminal.js +1 -1
- package/dist/Tracer.d.ts +5 -5
- package/dist/Tracer.js +2 -2
- package/dist/Tuple.d.ts +14 -14
- package/dist/Tuple.js +6 -6
- package/dist/TxHashMap.d.ts +3 -3
- package/dist/TxHashSet.d.ts +1 -1
- package/dist/Unify.d.ts +7 -7
- package/dist/Unify.js +1 -1
- package/dist/testing/TestClock.d.ts +5 -5
- package/dist/testing/TestClock.js +4 -4
- package/dist/testing/TestConsole.d.ts +3 -3
- package/dist/testing/TestConsole.js +3 -3
- package/dist/unstable/ai/Chat.d.ts +2 -2
- package/dist/unstable/ai/Chat.js +2 -2
- package/dist/unstable/ai/EmbeddingModel.d.ts +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +2 -2
- package/dist/unstable/ai/IdGenerator.js +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +4 -4
- package/dist/unstable/ai/LanguageModel.js +1 -1
- package/dist/unstable/ai/Prompt.d.ts +15 -15
- package/dist/unstable/ai/Prompt.js +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +5 -5
- package/dist/unstable/ai/Telemetry.js +2 -2
- package/dist/unstable/ai/Tokenizer.d.ts +1 -1
- package/dist/unstable/ai/Tokenizer.js +1 -1
- package/dist/unstable/ai/Tool.d.ts +6 -6
- package/dist/unstable/ai/Tool.js +6 -6
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +1 -1
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +1 -1
- package/dist/unstable/cli/Primitive.d.ts +3 -3
- package/dist/unstable/cli/Primitive.js +1 -1
- package/dist/unstable/cli/Prompt.d.ts +11 -11
- package/dist/unstable/cli/internal/parser.js +145 -10
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +1 -1
- package/dist/unstable/cluster/Entity.js +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +2 -2
- package/dist/unstable/cluster/HttpRunner.js +2 -2
- package/dist/unstable/cluster/K8sHttpClient.d.ts +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +1 -1
- package/dist/unstable/cluster/Runners.d.ts +1 -1
- package/dist/unstable/cluster/Runners.js +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +1 -1
- package/dist/unstable/cluster/Sharding.js +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +5 -5
- package/dist/unstable/cluster/Snowflake.js +5 -5
- package/dist/unstable/devtools/DevToolsClient.d.ts +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +1 -1
- package/dist/unstable/eventlog/EventLog.js +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +3 -3
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +3 -3
- package/dist/unstable/http/Cookies.d.ts +1 -1
- package/dist/unstable/http/Etag.d.ts +1 -1
- package/dist/unstable/http/Etag.js +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +2 -2
- package/dist/unstable/http/FetchHttpClient.js +2 -2
- package/dist/unstable/http/HttpClient.d.ts +1 -1
- package/dist/unstable/http/HttpClient.js +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +2 -2
- package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
- package/dist/unstable/http/HttpMiddleware.js +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +1 -1
- package/dist/unstable/http/HttpPlatform.js +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +4 -4
- package/dist/unstable/http/HttpRouter.js +4 -4
- package/dist/unstable/http/HttpServerResponse.d.ts +3 -3
- package/dist/unstable/http/Url.d.ts +33 -33
- package/dist/unstable/http/Url.js +11 -11
- package/dist/unstable/httpapi/HttpApi.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApi.js +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
- package/dist/unstable/httpapi/HttpApiError.js +13 -13
- package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -4
- package/dist/unstable/observability/PrometheusMetrics.js +2 -2
- package/dist/unstable/persistence/KeyValueStore.d.ts +3 -3
- package/dist/unstable/persistence/KeyValueStore.js +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +2 -2
- package/dist/unstable/persistence/Persistable.js +2 -2
- package/dist/unstable/persistence/PersistedQueue.d.ts +8 -8
- package/dist/unstable/persistence/PersistedQueue.js +8 -8
- package/dist/unstable/persistence/RateLimiter.d.ts +1 -1
- package/dist/unstable/persistence/RateLimiter.js +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +5 -5
- package/dist/unstable/process/ChildProcess.js +2 -2
- package/dist/unstable/reactivity/AsyncResult.d.ts +4 -4
- package/dist/unstable/reactivity/AsyncResult.js +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +1 -1
- package/dist/unstable/reactivity/Atom.js +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +1 -1
- package/dist/unstable/reactivity/Reactivity.js +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +5 -5
- package/dist/unstable/rpc/Rpc.js +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +3 -3
- package/dist/unstable/rpc/RpcSchema.js +2 -2
- package/dist/unstable/schema/Model.d.ts +2 -2
- package/dist/unstable/schema/Model.js +1 -1
- package/dist/unstable/socket/Socket.d.ts +3 -3
- package/dist/unstable/socket/Socket.js +3 -3
- package/dist/unstable/socket/SocketServer.d.ts +1 -1
- package/dist/unstable/socket/SocketServer.js +1 -1
- package/dist/unstable/sql/Migrator.d.ts +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +3 -3
- package/dist/unstable/sql/SqlClient.js +2 -2
- package/dist/unstable/sql/SqlConnection.d.ts +1 -1
- package/dist/unstable/sql/SqlConnection.js +1 -1
- package/dist/unstable/sql/Statement.d.ts +2 -2
- package/dist/unstable/sql/Statement.js +2 -2
- package/dist/unstable/workers/Transferable.d.ts +1 -1
- package/dist/unstable/workers/Transferable.js +1 -1
- package/dist/unstable/workers/Worker.d.ts +1 -1
- package/dist/unstable/workers/Worker.js +1 -1
- package/dist/unstable/workflow/Activity.d.ts +1 -1
- package/dist/unstable/workflow/Activity.js +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +1 -1
- package/package.json +1 -1
- package/src/Array.ts +16 -16
- package/src/Boolean.ts +2 -2
- package/src/Channel.ts +67 -67
- package/src/Chunk.ts +18 -18
- package/src/Context.ts +4 -4
- package/src/Cron.ts +4 -4
- package/src/Deferred.ts +37 -37
- package/src/Duration.ts +6 -6
- package/src/Effect.ts +58 -58
- package/src/Equal.ts +2 -2
- package/src/Equivalence.ts +1 -1
- package/src/ExecutionPlan.ts +2 -2
- package/src/FileSystem.ts +6 -6
- package/src/Function.ts +5 -5
- package/src/Graph.ts +11 -11
- package/src/HKT.ts +1 -1
- package/src/HashMap.ts +3 -3
- package/src/HashSet.ts +1 -1
- package/src/Iterable.ts +15 -15
- package/src/Layer.ts +16 -16
- package/src/Logger.ts +7 -7
- package/src/ManagedRuntime.ts +2 -2
- package/src/Match.ts +20 -20
- package/src/Metric.ts +20 -20
- package/src/Option.ts +36 -36
- package/src/Order.ts +1 -1
- package/src/Path.ts +1 -1
- package/src/Pipeable.ts +1 -1
- package/src/Predicate.ts +5 -5
- package/src/PubSub.ts +9 -9
- package/src/Queue.ts +24 -24
- package/src/Record.ts +15 -15
- package/src/Redacted.ts +2 -2
- package/src/Ref.ts +18 -18
- package/src/RegExp.ts +1 -1
- package/src/Request.ts +4 -4
- package/src/RequestResolver.ts +8 -8
- package/src/Resource.ts +1 -1
- package/src/Result.ts +18 -18
- package/src/Schedule.ts +45 -45
- package/src/Schema.ts +177 -459
- package/src/SchemaAST.ts +1 -1
- package/src/SchemaGetter.ts +13 -13
- package/src/SchemaParser.ts +3 -3
- package/src/Scope.ts +1 -1
- package/src/Sink.ts +5 -5
- package/src/Stream.ts +57 -57
- package/src/String.ts +5 -5
- package/src/Struct.ts +8 -8
- package/src/SynchronizedRef.ts +57 -57
- package/src/Terminal.ts +1 -1
- package/src/Tracer.ts +5 -5
- package/src/Tuple.ts +14 -14
- package/src/TxHashMap.ts +3 -3
- package/src/TxHashSet.ts +1 -1
- package/src/Unify.ts +7 -7
- package/src/testing/TestClock.ts +5 -5
- package/src/testing/TestConsole.ts +3 -3
- package/src/unstable/ai/Chat.ts +2 -2
- package/src/unstable/ai/EmbeddingModel.ts +1 -1
- package/src/unstable/ai/IdGenerator.ts +2 -2
- package/src/unstable/ai/LanguageModel.ts +4 -4
- package/src/unstable/ai/Prompt.ts +15 -15
- package/src/unstable/ai/Telemetry.ts +5 -5
- package/src/unstable/ai/Tokenizer.ts +1 -1
- package/src/unstable/ai/Tool.ts +6 -6
- package/src/unstable/cli/Command.ts +5 -1
- package/src/unstable/cli/Param.ts +1 -1
- package/src/unstable/cli/Primitive.ts +3 -3
- package/src/unstable/cli/Prompt.ts +11 -11
- package/src/unstable/cli/internal/parser.ts +204 -10
- package/src/unstable/cluster/Entity.ts +1 -1
- package/src/unstable/cluster/HttpRunner.ts +2 -2
- package/src/unstable/cluster/K8sHttpClient.ts +1 -1
- package/src/unstable/cluster/Runners.ts +1 -1
- package/src/unstable/cluster/Sharding.ts +1 -1
- package/src/unstable/cluster/SingletonAddress.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +5 -5
- package/src/unstable/devtools/DevToolsClient.ts +1 -1
- package/src/unstable/eventlog/EventLog.ts +1 -1
- package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
- package/src/unstable/eventlog/EventLogRemote.ts +1 -1
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +3 -3
- package/src/unstable/http/Cookies.ts +1 -1
- package/src/unstable/http/Etag.ts +1 -1
- package/src/unstable/http/FetchHttpClient.ts +2 -2
- package/src/unstable/http/HttpClient.ts +1 -1
- package/src/unstable/http/HttpClientRequest.ts +2 -2
- package/src/unstable/http/HttpMiddleware.ts +1 -1
- package/src/unstable/http/HttpPlatform.ts +1 -1
- package/src/unstable/http/HttpRouter.ts +4 -4
- package/src/unstable/http/HttpServerResponse.ts +3 -3
- package/src/unstable/http/Url.ts +33 -33
- package/src/unstable/httpapi/HttpApi.ts +1 -1
- package/src/unstable/httpapi/HttpApiError.ts +13 -13
- package/src/unstable/observability/PrometheusMetrics.ts +4 -4
- package/src/unstable/persistence/KeyValueStore.ts +3 -3
- package/src/unstable/persistence/Persistable.ts +2 -2
- package/src/unstable/persistence/PersistedQueue.ts +8 -8
- package/src/unstable/persistence/RateLimiter.ts +1 -1
- package/src/unstable/process/ChildProcess.ts +5 -5
- package/src/unstable/reactivity/AsyncResult.ts +4 -4
- package/src/unstable/reactivity/Atom.ts +1 -1
- package/src/unstable/reactivity/AtomRegistry.ts +1 -1
- package/src/unstable/reactivity/Reactivity.ts +1 -1
- package/src/unstable/rpc/Rpc.ts +5 -5
- package/src/unstable/rpc/RpcMiddleware.ts +1 -1
- package/src/unstable/rpc/RpcSchema.ts +3 -3
- package/src/unstable/schema/Model.ts +2 -2
- package/src/unstable/socket/Socket.ts +3 -3
- package/src/unstable/socket/SocketServer.ts +1 -1
- package/src/unstable/sql/Migrator.ts +1 -1
- package/src/unstable/sql/SqlClient.ts +3 -3
- package/src/unstable/sql/SqlConnection.ts +1 -1
- package/src/unstable/sql/Statement.ts +2 -2
- package/src/unstable/workers/Transferable.ts +1 -1
- package/src/unstable/workers/Worker.ts +1 -1
- package/src/unstable/workflow/Activity.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +1 -1
package/dist/Graph.js
CHANGED
|
@@ -1441,7 +1441,7 @@ export const neighborsDirected = /*#__PURE__*/dual(3, (graph, nodeIndex, directi
|
|
|
1441
1441
|
* // }
|
|
1442
1442
|
* ```
|
|
1443
1443
|
*
|
|
1444
|
-
* @category
|
|
1444
|
+
* @category converting
|
|
1445
1445
|
* @since 3.18.0
|
|
1446
1446
|
*/
|
|
1447
1447
|
export const toGraphViz = /*#__PURE__*/dual(args => isGraph(args[0]), (graph, options) => {
|
|
@@ -1678,7 +1678,7 @@ const formatMermaidNode = (nodeId, label, shape) => {
|
|
|
1678
1678
|
* // 0 -->|"builds with"| 3
|
|
1679
1679
|
* ```
|
|
1680
1680
|
*
|
|
1681
|
-
* @category
|
|
1681
|
+
* @category converting
|
|
1682
1682
|
* @since 3.18.0
|
|
1683
1683
|
*/
|
|
1684
1684
|
export const toMermaid = /*#__PURE__*/dual(args => isGraph(args[0]), (graph, options) => {
|
|
@@ -2804,7 +2804,7 @@ export class Walker {
|
|
|
2804
2804
|
* console.log(indices) // [0, 1]
|
|
2805
2805
|
* ```
|
|
2806
2806
|
*
|
|
2807
|
-
* @category
|
|
2807
|
+
* @category iterators
|
|
2808
2808
|
* @since 3.18.0
|
|
2809
2809
|
*/
|
|
2810
2810
|
export const indices = walker => walker.visit((index, _) => index);
|
|
@@ -2827,7 +2827,7 @@ export const indices = walker => walker.visit((index, _) => index);
|
|
|
2827
2827
|
* console.log(values) // ["A", "B"]
|
|
2828
2828
|
* ```
|
|
2829
2829
|
*
|
|
2830
|
-
* @category
|
|
2830
|
+
* @category iterators
|
|
2831
2831
|
* @since 3.18.0
|
|
2832
2832
|
*/
|
|
2833
2833
|
export const values = walker => walker.visit((_, data) => data);
|
|
@@ -2850,7 +2850,7 @@ export const values = walker => walker.visit((_, data) => data);
|
|
|
2850
2850
|
* console.log(entries) // [[0, "A"], [1, "B"]]
|
|
2851
2851
|
* ```
|
|
2852
2852
|
*
|
|
2853
|
-
* @category
|
|
2853
|
+
* @category iterators
|
|
2854
2854
|
* @since 3.18.0
|
|
2855
2855
|
*/
|
|
2856
2856
|
export const entries = walker => walker.visit((index, data) => [index, data]);
|
package/dist/HKT.d.ts
CHANGED
package/dist/HashMap.d.ts
CHANGED
|
@@ -191,7 +191,7 @@ export declare namespace HashMap {
|
|
|
191
191
|
* console.log(getUserById("alice")) // Option.some({ name: "Alice", age: 30 })
|
|
192
192
|
* ```
|
|
193
193
|
*
|
|
194
|
-
* @category
|
|
194
|
+
* @category utility types
|
|
195
195
|
* @since 2.0.0
|
|
196
196
|
*/
|
|
197
197
|
type Key<T extends HashMap<any, any>> = [T] extends [HashMap<infer _K, infer _V>] ? _K : never;
|
|
@@ -221,7 +221,7 @@ export declare namespace HashMap {
|
|
|
221
221
|
* // alice has type Option<User> thanks to type extraction
|
|
222
222
|
* ```
|
|
223
223
|
*
|
|
224
|
-
* @category
|
|
224
|
+
* @category utility types
|
|
225
225
|
* @since 2.0.0
|
|
226
226
|
*/
|
|
227
227
|
type Value<T extends HashMap<any, any>> = [T] extends [HashMap<infer _K, infer _V>] ? _V : never;
|
|
@@ -252,7 +252,7 @@ export declare namespace HashMap {
|
|
|
252
252
|
* console.log(descriptions) // ["book: $29 (education)", "laptop: $999 (electronics)"]
|
|
253
253
|
* ```
|
|
254
254
|
*
|
|
255
|
-
* @category
|
|
255
|
+
* @category utility types
|
|
256
256
|
* @since 3.9.0
|
|
257
257
|
*/
|
|
258
258
|
type Entry<T extends HashMap<any, any>> = [Key<T>, Value<T>];
|
package/dist/HashSet.d.ts
CHANGED
package/dist/Iterable.d.ts
CHANGED
|
@@ -288,7 +288,7 @@ export declare const fromRecord: <K extends string, A>(self: Readonly<Record<K,
|
|
|
288
288
|
* console.log(Array.from(withZ)) // ["z", "a", "b", "c"]
|
|
289
289
|
* ```
|
|
290
290
|
*
|
|
291
|
-
* @category
|
|
291
|
+
* @category combining
|
|
292
292
|
* @since 2.0.0
|
|
293
293
|
*/
|
|
294
294
|
export declare const prepend: {
|
|
@@ -310,7 +310,7 @@ export declare const prepend: {
|
|
|
310
310
|
* console.log(Array.from(withZ)) // ["z", "a", "b", "c"]
|
|
311
311
|
* ```
|
|
312
312
|
*
|
|
313
|
-
* @category
|
|
313
|
+
* @category combining
|
|
314
314
|
* @since 2.0.0
|
|
315
315
|
*/
|
|
316
316
|
<B>(head: B): <A>(self: Iterable<A>) => Iterable<A | B>;
|
|
@@ -332,7 +332,7 @@ export declare const prepend: {
|
|
|
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
|
<A, B>(self: Iterable<A>, head: B): Iterable<A | B>;
|
|
@@ -352,7 +352,7 @@ export declare const prepend: {
|
|
|
352
352
|
* )
|
|
353
353
|
* ```
|
|
354
354
|
*
|
|
355
|
-
* @category
|
|
355
|
+
* @category combining
|
|
356
356
|
* @since 2.0.0
|
|
357
357
|
*/
|
|
358
358
|
export declare const prependAll: {
|
|
@@ -371,7 +371,7 @@ export declare const prependAll: {
|
|
|
371
371
|
* )
|
|
372
372
|
* ```
|
|
373
373
|
*
|
|
374
|
-
* @category
|
|
374
|
+
* @category combining
|
|
375
375
|
* @since 2.0.0
|
|
376
376
|
*/
|
|
377
377
|
<B>(that: Iterable<B>): <A>(self: Iterable<A>) => Iterable<A | B>;
|
|
@@ -390,7 +390,7 @@ export declare const prependAll: {
|
|
|
390
390
|
* )
|
|
391
391
|
* ```
|
|
392
392
|
*
|
|
393
|
-
* @category
|
|
393
|
+
* @category combining
|
|
394
394
|
* @since 2.0.0
|
|
395
395
|
*/
|
|
396
396
|
<A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>;
|
|
@@ -433,7 +433,7 @@ export declare const prependAll: {
|
|
|
433
433
|
* @see {@link prepend} for adding one element before the existing elements
|
|
434
434
|
* @see {@link appendAll} for appending all elements from another iterable
|
|
435
435
|
*
|
|
436
|
-
* @category
|
|
436
|
+
* @category combining
|
|
437
437
|
* @since 2.0.0
|
|
438
438
|
*/
|
|
439
439
|
export declare const append: {
|
|
@@ -475,7 +475,7 @@ export declare const append: {
|
|
|
475
475
|
* @see {@link prepend} for adding one element before the existing elements
|
|
476
476
|
* @see {@link appendAll} for appending all elements from another iterable
|
|
477
477
|
*
|
|
478
|
-
* @category
|
|
478
|
+
* @category combining
|
|
479
479
|
* @since 2.0.0
|
|
480
480
|
*/
|
|
481
481
|
<B>(last: B): <A>(self: Iterable<A>) => Iterable<A | B>;
|
|
@@ -517,7 +517,7 @@ export declare const append: {
|
|
|
517
517
|
* @see {@link prepend} for adding one element before the existing elements
|
|
518
518
|
* @see {@link appendAll} for appending all elements from another iterable
|
|
519
519
|
*
|
|
520
|
-
* @category
|
|
520
|
+
* @category combining
|
|
521
521
|
* @since 2.0.0
|
|
522
522
|
*/
|
|
523
523
|
<A, B>(self: Iterable<A>, last: B): Iterable<A | B>;
|
|
@@ -565,7 +565,7 @@ export declare const append: {
|
|
|
565
565
|
* @see {@link append} for appending one value instead of another iterable
|
|
566
566
|
* @see {@link prependAll} for yielding another iterable before `self`
|
|
567
567
|
*
|
|
568
|
-
* @category
|
|
568
|
+
* @category combining
|
|
569
569
|
* @since 2.0.0
|
|
570
570
|
*/
|
|
571
571
|
export declare const appendAll: {
|
|
@@ -612,7 +612,7 @@ export declare const appendAll: {
|
|
|
612
612
|
* @see {@link append} for appending one value instead of another iterable
|
|
613
613
|
* @see {@link prependAll} for yielding another iterable before `self`
|
|
614
614
|
*
|
|
615
|
-
* @category
|
|
615
|
+
* @category combining
|
|
616
616
|
* @since 2.0.0
|
|
617
617
|
*/
|
|
618
618
|
<B>(that: Iterable<B>): <A>(self: Iterable<A>) => Iterable<A | B>;
|
|
@@ -659,7 +659,7 @@ export declare const appendAll: {
|
|
|
659
659
|
* @see {@link append} for appending one value instead of another iterable
|
|
660
660
|
* @see {@link prependAll} for yielding another iterable before `self`
|
|
661
661
|
*
|
|
662
|
-
* @category
|
|
662
|
+
* @category combining
|
|
663
663
|
* @since 2.0.0
|
|
664
664
|
*/
|
|
665
665
|
<A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>;
|
|
@@ -2048,7 +2048,7 @@ export declare const zipWith: {
|
|
|
2048
2048
|
* console.log(Array.from(css).join("")) // "color: red; font-size: 14px; margin: 10px"
|
|
2049
2049
|
* ```
|
|
2050
2050
|
*
|
|
2051
|
-
* @category
|
|
2051
|
+
* @category combining
|
|
2052
2052
|
* @since 2.0.0
|
|
2053
2053
|
*/
|
|
2054
2054
|
export declare const intersperse: {
|
|
@@ -2094,7 +2094,7 @@ export declare const intersperse: {
|
|
|
2094
2094
|
* console.log(Array.from(css).join("")) // "color: red; font-size: 14px; margin: 10px"
|
|
2095
2095
|
* ```
|
|
2096
2096
|
*
|
|
2097
|
-
* @category
|
|
2097
|
+
* @category combining
|
|
2098
2098
|
* @since 2.0.0
|
|
2099
2099
|
*/
|
|
2100
2100
|
<B>(middle: B): <A>(self: Iterable<A>) => Iterable<A | B>;
|
|
@@ -2140,7 +2140,7 @@ export declare const intersperse: {
|
|
|
2140
2140
|
* console.log(Array.from(css).join("")) // "color: red; font-size: 14px; margin: 10px"
|
|
2141
2141
|
* ```
|
|
2142
2142
|
*
|
|
2143
|
-
* @category
|
|
2143
|
+
* @category combining
|
|
2144
2144
|
* @since 2.0.0
|
|
2145
2145
|
*/
|
|
2146
2146
|
<A, B>(self: Iterable<A>, middle: B): Iterable<A | B>;
|
package/dist/Iterable.js
CHANGED
|
@@ -249,7 +249,7 @@ export const fromRecord = self => ({
|
|
|
249
249
|
* console.log(Array.from(withZ)) // ["z", "a", "b", "c"]
|
|
250
250
|
* ```
|
|
251
251
|
*
|
|
252
|
-
* @category
|
|
252
|
+
* @category combining
|
|
253
253
|
* @since 2.0.0
|
|
254
254
|
*/
|
|
255
255
|
export const prepend = /*#__PURE__*/dual(2, (self, head) => prependAll(self, [head]));
|
|
@@ -268,7 +268,7 @@ export const prepend = /*#__PURE__*/dual(2, (self, head) => prependAll(self, [he
|
|
|
268
268
|
* )
|
|
269
269
|
* ```
|
|
270
270
|
*
|
|
271
|
-
* @category
|
|
271
|
+
* @category combining
|
|
272
272
|
* @since 2.0.0
|
|
273
273
|
*/
|
|
274
274
|
export const prependAll = /*#__PURE__*/dual(2, (self, that) => appendAll(that, self));
|
|
@@ -310,7 +310,7 @@ export const prependAll = /*#__PURE__*/dual(2, (self, that) => appendAll(that, s
|
|
|
310
310
|
* @see {@link prepend} for adding one element before the existing elements
|
|
311
311
|
* @see {@link appendAll} for appending all elements from another iterable
|
|
312
312
|
*
|
|
313
|
-
* @category
|
|
313
|
+
* @category combining
|
|
314
314
|
* @since 2.0.0
|
|
315
315
|
*/
|
|
316
316
|
export const append = /*#__PURE__*/dual(2, (self, last) => appendAll(self, [last]));
|
|
@@ -357,7 +357,7 @@ export const append = /*#__PURE__*/dual(2, (self, last) => appendAll(self, [last
|
|
|
357
357
|
* @see {@link append} for appending one value instead of another iterable
|
|
358
358
|
* @see {@link prependAll} for yielding another iterable before `self`
|
|
359
359
|
*
|
|
360
|
-
* @category
|
|
360
|
+
* @category combining
|
|
361
361
|
* @since 2.0.0
|
|
362
362
|
*/
|
|
363
363
|
export const appendAll = /*#__PURE__*/dual(2, (self, that) => ({
|
|
@@ -964,7 +964,7 @@ export const zipWith = /*#__PURE__*/dual(3, (self, that, f) => ({
|
|
|
964
964
|
* console.log(Array.from(css).join("")) // "color: red; font-size: 14px; margin: 10px"
|
|
965
965
|
* ```
|
|
966
966
|
*
|
|
967
|
-
* @category
|
|
967
|
+
* @category combining
|
|
968
968
|
* @since 2.0.0
|
|
969
969
|
*/
|
|
970
970
|
export const intersperse = /*#__PURE__*/dual(2, (self, middle) => ({
|
package/dist/Layer.d.ts
CHANGED
|
@@ -1305,7 +1305,7 @@ export declare const suspend: <A, E, R>(evaluate: LazyArg<Layer<A, E, R>>) => La
|
|
|
1305
1305
|
* const unwrappedLayer = Layer.unwrap(layerEffect)
|
|
1306
1306
|
* ```
|
|
1307
1307
|
*
|
|
1308
|
-
* @category
|
|
1308
|
+
* @category converting
|
|
1309
1309
|
* @since 4.0.0
|
|
1310
1310
|
*/
|
|
1311
1311
|
export declare const unwrap: <A, E1, R1, E, R>(self: Effect<Layer<A, E1, R1>, E, R>) => Layer<A, E | E1, R1 | Exclude<R, Scope.Scope>>;
|
|
@@ -1651,7 +1651,7 @@ export declare const merge: {
|
|
|
1651
1651
|
*
|
|
1652
1652
|
* @see {@link provideMerge} for retaining the dependency services
|
|
1653
1653
|
*
|
|
1654
|
-
* @category
|
|
1654
|
+
* @category providing services
|
|
1655
1655
|
* @since 2.0.0
|
|
1656
1656
|
*/
|
|
1657
1657
|
export declare const provide: {
|
|
@@ -1731,7 +1731,7 @@ export declare const provide: {
|
|
|
1731
1731
|
*
|
|
1732
1732
|
* @see {@link provideMerge} for retaining the dependency services
|
|
1733
1733
|
*
|
|
1734
|
-
* @category
|
|
1734
|
+
* @category providing services
|
|
1735
1735
|
* @since 2.0.0
|
|
1736
1736
|
*/
|
|
1737
1737
|
<RIn, E, ROut>(that: Layer<ROut, E, RIn>): <RIn2, E2, ROut2>(self: Layer<ROut2, E2, RIn2>) => Layer<ROut2, E | E2, RIn | Exclude<RIn2, ROut>>;
|
|
@@ -1811,7 +1811,7 @@ export declare const provide: {
|
|
|
1811
1811
|
*
|
|
1812
1812
|
* @see {@link provideMerge} for retaining the dependency services
|
|
1813
1813
|
*
|
|
1814
|
-
* @category
|
|
1814
|
+
* @category providing services
|
|
1815
1815
|
* @since 2.0.0
|
|
1816
1816
|
*/
|
|
1817
1817
|
<const Layers extends [Any, ...Array<Any>]>(that: Layers): <A, E, R>(self: Layer<A, E, R>) => Layer<A, E | Error<Layers[number]>, Services<Layers[number]> | Exclude<R, Success<Layers[number]>>>;
|
|
@@ -1891,7 +1891,7 @@ export declare const provide: {
|
|
|
1891
1891
|
*
|
|
1892
1892
|
* @see {@link provideMerge} for retaining the dependency services
|
|
1893
1893
|
*
|
|
1894
|
-
* @category
|
|
1894
|
+
* @category providing services
|
|
1895
1895
|
* @since 2.0.0
|
|
1896
1896
|
*/
|
|
1897
1897
|
<RIn2, E2, ROut2, RIn, E, ROut>(self: Layer<ROut2, E2, RIn2>, that: Layer<ROut, E, RIn>): Layer<ROut2, E | E2, RIn | Exclude<RIn2, ROut>>;
|
|
@@ -1971,7 +1971,7 @@ export declare const provide: {
|
|
|
1971
1971
|
*
|
|
1972
1972
|
* @see {@link provideMerge} for retaining the dependency services
|
|
1973
1973
|
*
|
|
1974
|
-
* @category
|
|
1974
|
+
* @category providing services
|
|
1975
1975
|
* @since 2.0.0
|
|
1976
1976
|
*/
|
|
1977
1977
|
<A, E, R, const Layers extends [Any, ...Array<Any>]>(self: Layer<A, E, R>, that: Layers): Layer<A, E | Error<Layers[number]>, Services<Layers[number]> | Exclude<R, Success<Layers[number]>>>;
|
|
@@ -2054,7 +2054,7 @@ export declare const provide: {
|
|
|
2054
2054
|
*
|
|
2055
2055
|
* @see {@link provide} for keeping dependency services private
|
|
2056
2056
|
*
|
|
2057
|
-
* @category
|
|
2057
|
+
* @category providing services
|
|
2058
2058
|
* @since 2.0.0
|
|
2059
2059
|
*/
|
|
2060
2060
|
export declare const provideMerge: {
|
|
@@ -2136,7 +2136,7 @@ export declare const provideMerge: {
|
|
|
2136
2136
|
*
|
|
2137
2137
|
* @see {@link provide} for keeping dependency services private
|
|
2138
2138
|
*
|
|
2139
|
-
* @category
|
|
2139
|
+
* @category providing services
|
|
2140
2140
|
* @since 2.0.0
|
|
2141
2141
|
*/
|
|
2142
2142
|
<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>>;
|
|
@@ -2218,7 +2218,7 @@ export declare const provideMerge: {
|
|
|
2218
2218
|
*
|
|
2219
2219
|
* @see {@link provide} for keeping dependency services private
|
|
2220
2220
|
*
|
|
2221
|
-
* @category
|
|
2221
|
+
* @category providing services
|
|
2222
2222
|
* @since 2.0.0
|
|
2223
2223
|
*/
|
|
2224
2224
|
<const Layers extends [Any, ...Array<Any>]>(that: Layers): <A, E, R>(self: Layer<A, E, R>) => Layer<A | Success<Layers[number]>, E | Error<Layers[number]>, Services<Layers[number]> | Exclude<R, Success<Layers[number]>>>;
|
|
@@ -2300,7 +2300,7 @@ export declare const provideMerge: {
|
|
|
2300
2300
|
*
|
|
2301
2301
|
* @see {@link provide} for keeping dependency services private
|
|
2302
2302
|
*
|
|
2303
|
-
* @category
|
|
2303
|
+
* @category providing services
|
|
2304
2304
|
* @since 2.0.0
|
|
2305
2305
|
*/
|
|
2306
2306
|
<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>>;
|
|
@@ -2382,7 +2382,7 @@ export declare const provideMerge: {
|
|
|
2382
2382
|
*
|
|
2383
2383
|
* @see {@link provide} for keeping dependency services private
|
|
2384
2384
|
*
|
|
2385
|
-
* @category
|
|
2385
|
+
* @category providing services
|
|
2386
2386
|
* @since 2.0.0
|
|
2387
2387
|
*/
|
|
2388
2388
|
<A, E, R, const Layers extends [Any, ...Array<Any>]>(self: Layer<A, E, R>, that: Layers): Layer<A | Success<Layers[number]>, E | Error<Layers[number]>, Services<Layers[number]> | Exclude<R, Success<Layers[number]>>>;
|
|
@@ -3166,7 +3166,7 @@ export declare const catchCause: {
|
|
|
3166
3166
|
* transformation function `f`, and replaces the old service with the
|
|
3167
3167
|
* transformed one.
|
|
3168
3168
|
*
|
|
3169
|
-
* @category
|
|
3169
|
+
* @category providing services
|
|
3170
3170
|
* @since 3.13.0
|
|
3171
3171
|
*/
|
|
3172
3172
|
export declare const updateService: {
|
|
@@ -3185,7 +3185,7 @@ export declare const updateService: {
|
|
|
3185
3185
|
* transformation function `f`, and replaces the old service with the
|
|
3186
3186
|
* transformed one.
|
|
3187
3187
|
*
|
|
3188
|
-
* @category
|
|
3188
|
+
* @category providing services
|
|
3189
3189
|
* @since 3.13.0
|
|
3190
3190
|
*/
|
|
3191
3191
|
<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>;
|
|
@@ -3204,7 +3204,7 @@ export declare const updateService: {
|
|
|
3204
3204
|
* transformation function `f`, and replaces the old service with the
|
|
3205
3205
|
* transformed one.
|
|
3206
3206
|
*
|
|
3207
|
-
* @category
|
|
3207
|
+
* @category providing services
|
|
3208
3208
|
* @since 3.13.0
|
|
3209
3209
|
*/
|
|
3210
3210
|
<A1, E1, R1, I, A>(layer: Layer<A1, E1, R1>, service: Context.Key<I, A>, f: (a: Types.NoInfer<A>) => A): Layer<A1, E1, I | R1>;
|
|
@@ -3285,7 +3285,7 @@ export declare const updateService: {
|
|
|
3285
3285
|
* // same Counter: false
|
|
3286
3286
|
* ```
|
|
3287
3287
|
*
|
|
3288
|
-
* @category
|
|
3288
|
+
* @category layers
|
|
3289
3289
|
* @since 2.0.0
|
|
3290
3290
|
*/
|
|
3291
3291
|
export declare const fresh: <A, E, R>(self: Layer<A, E, R>) => Layer<A, E, R>;
|
|
@@ -3663,7 +3663,7 @@ export declare const satisfiesServicesType: <RIn>() => <ROut, E, RIn2 extends RI
|
|
|
3663
3663
|
* @see {@link span} for creating a layer span
|
|
3664
3664
|
* @see {@link withSpan} for wrapping layer construction in a span
|
|
3665
3665
|
*
|
|
3666
|
-
* @category
|
|
3666
|
+
* @category options
|
|
3667
3667
|
* @since 4.0.0
|
|
3668
3668
|
*/
|
|
3669
3669
|
export interface SpanOptions extends Tracer.SpanOptions {
|
package/dist/Layer.js
CHANGED
|
@@ -764,7 +764,7 @@ export const suspend = evaluate => fromBuildMemo((memoMap, scope) => internalEff
|
|
|
764
764
|
* const unwrappedLayer = Layer.unwrap(layerEffect)
|
|
765
765
|
* ```
|
|
766
766
|
*
|
|
767
|
-
* @category
|
|
767
|
+
* @category converting
|
|
768
768
|
* @since 4.0.0
|
|
769
769
|
*/
|
|
770
770
|
export const unwrap = self => {
|
|
@@ -943,7 +943,7 @@ const provideWith = (self, that, f) => fromBuild((memoMap, scope) => internalEff
|
|
|
943
943
|
*
|
|
944
944
|
* @see {@link provideMerge} for retaining the dependency services
|
|
945
945
|
*
|
|
946
|
-
* @category
|
|
946
|
+
* @category providing services
|
|
947
947
|
* @since 2.0.0
|
|
948
948
|
*/
|
|
949
949
|
export const provide = /*#__PURE__*/dual(2, (self, that) => provideWith(self, that, identity));
|
|
@@ -1025,7 +1025,7 @@ export const provide = /*#__PURE__*/dual(2, (self, that) => provideWith(self, th
|
|
|
1025
1025
|
*
|
|
1026
1026
|
* @see {@link provide} for keeping dependency services private
|
|
1027
1027
|
*
|
|
1028
|
-
* @category
|
|
1028
|
+
* @category providing services
|
|
1029
1029
|
* @since 2.0.0
|
|
1030
1030
|
*/
|
|
1031
1031
|
export const provideMerge = /*#__PURE__*/dual(2, (self, that) => provideWith(self, that, (self, that) => Context.merge(that, self)));
|
|
@@ -1339,7 +1339,7 @@ export const catchCause = /*#__PURE__*/dual(2, (self, onError) => fromBuildUnsaf
|
|
|
1339
1339
|
* transformation function `f`, and replaces the old service with the
|
|
1340
1340
|
* transformed one.
|
|
1341
1341
|
*
|
|
1342
|
-
* @category
|
|
1342
|
+
* @category providing services
|
|
1343
1343
|
* @since 3.13.0
|
|
1344
1344
|
*/
|
|
1345
1345
|
export const updateService = /*#__PURE__*/dual(3, (layer, service, f) => provide(layer, effect(service, internalEffect.map(service, f))));
|
|
@@ -1419,7 +1419,7 @@ export const updateService = /*#__PURE__*/dual(3, (layer, service, f) => provide
|
|
|
1419
1419
|
* // same Counter: false
|
|
1420
1420
|
* ```
|
|
1421
1421
|
*
|
|
1422
|
-
* @category
|
|
1422
|
+
* @category layers
|
|
1423
1423
|
* @since 2.0.0
|
|
1424
1424
|
*/
|
|
1425
1425
|
export const fresh = self => fromBuildUnsafe((_, scope) => self.build(makeMemoMapUnsafe(), scope));
|
package/dist/Logger.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export interface Logger<in Message, out Output> extends Pipeable {
|
|
|
76
76
|
* )
|
|
77
77
|
* ```
|
|
78
78
|
*
|
|
79
|
-
* @category
|
|
79
|
+
* @category options
|
|
80
80
|
* @since 2.0.0
|
|
81
81
|
*/
|
|
82
82
|
export interface Options<out Message> {
|
|
@@ -196,7 +196,7 @@ export declare const LogToStderr: Context.Reference<boolean>;
|
|
|
196
196
|
* )
|
|
197
197
|
* ```
|
|
198
198
|
*
|
|
199
|
-
* @category
|
|
199
|
+
* @category mapping
|
|
200
200
|
* @since 2.0.0
|
|
201
201
|
*/
|
|
202
202
|
export declare const map: (<Output, Output2>(f: (output: Output) => Output2) => <Message>(self: Logger<Message, Output>) => Logger<Message, Output2>) & (<Message, Output, Output2>(self: Logger<Message, Output>, f: (output: Output) => Output2) => Logger<Message, Output2>);
|
|
@@ -227,7 +227,7 @@ export declare const map: (<Output, Output2>(f: (output: Output) => Output2) =>
|
|
|
227
227
|
* )
|
|
228
228
|
* ```
|
|
229
229
|
*
|
|
230
|
-
* @category
|
|
230
|
+
* @category logging
|
|
231
231
|
* @since 2.0.0
|
|
232
232
|
*/
|
|
233
233
|
export declare const withConsoleLog: <Message, Output>(self: Logger<Message, Output>) => Logger<Message, void>;
|
|
@@ -258,7 +258,7 @@ export declare const withConsoleLog: <Message, Output>(self: Logger<Message, Out
|
|
|
258
258
|
* )
|
|
259
259
|
* ```
|
|
260
260
|
*
|
|
261
|
-
* @category
|
|
261
|
+
* @category logging
|
|
262
262
|
* @since 2.0.0
|
|
263
263
|
*/
|
|
264
264
|
export declare const withConsoleError: <Message, Output>(self: Logger<Message, Output>) => Logger<Message, void>;
|
|
@@ -299,7 +299,7 @@ export declare const withConsoleError: <Message, Output>(self: Logger<Message, O
|
|
|
299
299
|
* )
|
|
300
300
|
* ```
|
|
301
301
|
*
|
|
302
|
-
* @category
|
|
302
|
+
* @category logging
|
|
303
303
|
* @since 3.8.0
|
|
304
304
|
*/
|
|
305
305
|
export declare const withLeveledConsole: <Message, Output>(self: Logger<Message, Output>) => Logger<Message, void>;
|
package/dist/Logger.js
CHANGED
|
@@ -203,7 +203,7 @@ export const LogToStderr = effect.LogToStderr;
|
|
|
203
203
|
* )
|
|
204
204
|
* ```
|
|
205
205
|
*
|
|
206
|
-
* @category
|
|
206
|
+
* @category mapping
|
|
207
207
|
* @since 2.0.0
|
|
208
208
|
*/
|
|
209
209
|
export const map = /*#__PURE__*/dual(2, (self, f) => effect.loggerMake(options => f(self.log(options))));
|
|
@@ -234,7 +234,7 @@ export const map = /*#__PURE__*/dual(2, (self, f) => effect.loggerMake(options =
|
|
|
234
234
|
* )
|
|
235
235
|
* ```
|
|
236
236
|
*
|
|
237
|
-
* @category
|
|
237
|
+
* @category logging
|
|
238
238
|
* @since 2.0.0
|
|
239
239
|
*/
|
|
240
240
|
export const withConsoleLog = self => effect.loggerMake(options => {
|
|
@@ -268,7 +268,7 @@ export const withConsoleLog = self => effect.loggerMake(options => {
|
|
|
268
268
|
* )
|
|
269
269
|
* ```
|
|
270
270
|
*
|
|
271
|
-
* @category
|
|
271
|
+
* @category logging
|
|
272
272
|
* @since 2.0.0
|
|
273
273
|
*/
|
|
274
274
|
export const withConsoleError = self => effect.loggerMake(options => {
|
|
@@ -312,7 +312,7 @@ export const withConsoleError = self => effect.loggerMake(options => {
|
|
|
312
312
|
* )
|
|
313
313
|
* ```
|
|
314
314
|
*
|
|
315
|
-
* @category
|
|
315
|
+
* @category logging
|
|
316
316
|
* @since 3.8.0
|
|
317
317
|
*/
|
|
318
318
|
export const withLeveledConsole = self => effect.loggerMake(options => {
|
package/dist/ManagedRuntime.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ export declare namespace ManagedRuntime {
|
|
|
88
88
|
* Use to derive the service requirements provided by an existing
|
|
89
89
|
* `ManagedRuntime` type.
|
|
90
90
|
*
|
|
91
|
-
* @category
|
|
91
|
+
* @category utility types
|
|
92
92
|
* @since 3.4.0
|
|
93
93
|
*/
|
|
94
94
|
type Services<T extends ManagedRuntime<never, any>> = [T] extends [ManagedRuntime<infer R, infer _E>] ? R : never;
|
|
@@ -100,7 +100,7 @@ export declare namespace ManagedRuntime {
|
|
|
100
100
|
* Use to derive the layer construction error type from an existing
|
|
101
101
|
* `ManagedRuntime` type.
|
|
102
102
|
*
|
|
103
|
-
* @category
|
|
103
|
+
* @category utility types
|
|
104
104
|
* @since 3.4.0
|
|
105
105
|
*/
|
|
106
106
|
type Error<T extends ManagedRuntime<never, any>> = [T] extends [ManagedRuntime<infer _R, infer E>] ? E : never;
|