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/SynchronizedRef.js
CHANGED
|
@@ -118,7 +118,7 @@ export const get = self => Effect.sync(() => getUnsafe(self));
|
|
|
118
118
|
* @see {@link setAndGet} for setting a value and returning the new value
|
|
119
119
|
* @see {@link getAndUpdate} for deriving the new value from the current value
|
|
120
120
|
*
|
|
121
|
-
* @category
|
|
121
|
+
* @category mutations
|
|
122
122
|
* @since 2.0.0
|
|
123
123
|
*/
|
|
124
124
|
export const getAndSet = /*#__PURE__*/dual(2, (self, value) => self.semaphore.withPermit(Ref.getAndSet(self.backing, value)));
|
|
@@ -134,7 +134,7 @@ export const getAndSet = /*#__PURE__*/dual(2, (self, value) => self.semaphore.wi
|
|
|
134
134
|
* @see {@link updateAndGet} for updating and returning the new value
|
|
135
135
|
* @see {@link getAndUpdateEffect} for effectful updates that return the previous value
|
|
136
136
|
*
|
|
137
|
-
* @category
|
|
137
|
+
* @category mutations
|
|
138
138
|
* @since 2.0.0
|
|
139
139
|
*/
|
|
140
140
|
export const getAndUpdate = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Ref.getAndUpdate(self.backing, f)));
|
|
@@ -152,7 +152,7 @@ export const getAndUpdate = /*#__PURE__*/dual(2, (self, f) => self.semaphore.wit
|
|
|
152
152
|
* @see {@link modifyEffect} for effectful updates with a custom return value
|
|
153
153
|
* @see {@link getAndUpdateSomeEffect} for conditional effectful updates that return the previous value
|
|
154
154
|
*
|
|
155
|
-
* @category
|
|
155
|
+
* @category mutations
|
|
156
156
|
* @since 2.0.0
|
|
157
157
|
*/
|
|
158
158
|
export const getAndUpdateEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Effect.suspend(() => {
|
|
@@ -174,7 +174,7 @@ export const getAndUpdateEffect = /*#__PURE__*/dual(2, (self, f) => self.semapho
|
|
|
174
174
|
* @see {@link getAndUpdate} for always applying a pure update
|
|
175
175
|
* @see {@link updateSome} for applying a pure conditional update without returning the previous value
|
|
176
176
|
*
|
|
177
|
-
* @category
|
|
177
|
+
* @category mutations
|
|
178
178
|
* @since 2.0.0
|
|
179
179
|
*/
|
|
180
180
|
export const getAndUpdateSome = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Ref.getAndUpdateSome(self, pf)));
|
|
@@ -191,7 +191,7 @@ export const getAndUpdateSome = /*#__PURE__*/dual(2, (self, pf) => self.semaphor
|
|
|
191
191
|
* @see {@link getAndUpdateSome} for the pure conditional variant
|
|
192
192
|
* @see {@link updateSomeEffect} for effectful conditional updates without returning the previous value
|
|
193
193
|
*
|
|
194
|
-
* @category
|
|
194
|
+
* @category mutations
|
|
195
195
|
* @since 2.0.0
|
|
196
196
|
*/
|
|
197
197
|
export const getAndUpdateSomeEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Effect.suspend(() => {
|
|
@@ -217,7 +217,7 @@ export const getAndUpdateSomeEffect = /*#__PURE__*/dual(2, (self, pf) => self.se
|
|
|
217
217
|
* @see {@link modifySome} for deriving a result and optionally updating the stored value
|
|
218
218
|
* @see {@link updateAndGet} for returning the new stored value instead of a separate result
|
|
219
219
|
*
|
|
220
|
-
* @category
|
|
220
|
+
* @category mutations
|
|
221
221
|
* @since 2.0.0
|
|
222
222
|
*/
|
|
223
223
|
export const modify = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Ref.modify(self.backing, f)));
|
|
@@ -233,7 +233,7 @@ export const modify = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermi
|
|
|
233
233
|
* @see {@link modify} for the pure variant
|
|
234
234
|
* @see {@link updateEffect} for effectfully storing a new value without a separate result
|
|
235
235
|
*
|
|
236
|
-
* @category
|
|
236
|
+
* @category mutations
|
|
237
237
|
* @since 2.0.0
|
|
238
238
|
*/
|
|
239
239
|
export const modifyEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Effect.suspend(() => {
|
|
@@ -254,7 +254,7 @@ export const modifyEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.wit
|
|
|
254
254
|
* @see {@link modify} for always storing a new value
|
|
255
255
|
* @see {@link updateSome} for optional updates without a separate return value
|
|
256
256
|
*
|
|
257
|
-
* @category
|
|
257
|
+
* @category mutations
|
|
258
258
|
* @since 2.0.0
|
|
259
259
|
*/
|
|
260
260
|
export const modifySome = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Ref.modifySome(self.backing, pf)));
|
|
@@ -271,7 +271,7 @@ export const modifySome = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.with
|
|
|
271
271
|
* @see {@link modifySome} for the pure variant
|
|
272
272
|
* @see {@link updateSomeEffect} for effectful optional updates without a separate return value
|
|
273
273
|
*
|
|
274
|
-
* @category
|
|
274
|
+
* @category mutations
|
|
275
275
|
* @since 2.0.0
|
|
276
276
|
*/
|
|
277
277
|
export const modifySomeEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Effect.suspend(() => {
|
|
@@ -296,7 +296,7 @@ export const modifySomeEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphor
|
|
|
296
296
|
* @see {@link setAndGet} for replacing the value when the new value should be returned
|
|
297
297
|
* @see {@link update} for deriving the next value from the current value
|
|
298
298
|
*
|
|
299
|
-
* @category
|
|
299
|
+
* @category mutations
|
|
300
300
|
* @since 2.0.0
|
|
301
301
|
*/
|
|
302
302
|
export const set = /*#__PURE__*/dual(2, (self, value) => self.semaphore.withPermit(Ref.set(self.backing, value)));
|
|
@@ -311,7 +311,7 @@ export const set = /*#__PURE__*/dual(2, (self, value) => self.semaphore.withPerm
|
|
|
311
311
|
* @see {@link set} for setting without returning a value
|
|
312
312
|
* @see {@link getAndSet} for setting while returning the previous value
|
|
313
313
|
*
|
|
314
|
-
* @category
|
|
314
|
+
* @category mutations
|
|
315
315
|
* @since 2.0.0
|
|
316
316
|
*/
|
|
317
317
|
export const setAndGet = /*#__PURE__*/dual(2, (self, value) => self.semaphore.withPermit(Ref.setAndGet(self.backing, value)));
|
|
@@ -328,7 +328,7 @@ export const setAndGet = /*#__PURE__*/dual(2, (self, value) => self.semaphore.wi
|
|
|
328
328
|
* @see {@link updateAndGet} for returning the new stored value
|
|
329
329
|
* @see {@link getAndUpdate} for returning the previous stored value
|
|
330
330
|
*
|
|
331
|
-
* @category
|
|
331
|
+
* @category mutations
|
|
332
332
|
* @since 2.0.0
|
|
333
333
|
*/
|
|
334
334
|
export const update = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Ref.update(self.backing, f)));
|
|
@@ -347,7 +347,7 @@ export const update = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermi
|
|
|
347
347
|
* @see {@link modifyEffect} for returning a separate result while storing a new value
|
|
348
348
|
* @see {@link updateSomeEffect} for effectfully applying only some state transitions
|
|
349
349
|
*
|
|
350
|
-
* @category
|
|
350
|
+
* @category mutations
|
|
351
351
|
* @since 2.0.0
|
|
352
352
|
*/
|
|
353
353
|
export const updateEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Effect.suspend(() => {
|
|
@@ -367,7 +367,7 @@ export const updateEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.wit
|
|
|
367
367
|
* @see {@link update} for updating without returning the new value
|
|
368
368
|
* @see {@link getAndUpdate} for updating while returning the previous value
|
|
369
369
|
*
|
|
370
|
-
* @category
|
|
370
|
+
* @category mutations
|
|
371
371
|
* @since 2.0.0
|
|
372
372
|
*/
|
|
373
373
|
export const updateAndGet = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Ref.updateAndGet(self.backing, f)));
|
|
@@ -382,7 +382,7 @@ export const updateAndGet = /*#__PURE__*/dual(2, (self, f) => self.semaphore.wit
|
|
|
382
382
|
* @see {@link updateEffect} for effectful updates without returning the new value
|
|
383
383
|
* @see {@link updateAndGet} for the pure variant
|
|
384
384
|
*
|
|
385
|
-
* @category
|
|
385
|
+
* @category mutations
|
|
386
386
|
* @since 2.0.0
|
|
387
387
|
*/
|
|
388
388
|
export const updateAndGetEffect = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Effect.suspend(() => {
|
|
@@ -403,7 +403,7 @@ export const updateAndGetEffect = /*#__PURE__*/dual(2, (self, f) => self.semapho
|
|
|
403
403
|
* @see {@link update} for always applying a pure update
|
|
404
404
|
* @see {@link updateSomeAndGet} for returning the resulting current value
|
|
405
405
|
*
|
|
406
|
-
* @category
|
|
406
|
+
* @category mutations
|
|
407
407
|
* @since 2.0.0
|
|
408
408
|
*/
|
|
409
409
|
export const updateSome = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withPermit(Ref.updateSome(self.backing, f)));
|
|
@@ -418,7 +418,7 @@ export const updateSome = /*#__PURE__*/dual(2, (self, f) => self.semaphore.withP
|
|
|
418
418
|
* @see {@link updateSome} for the pure conditional variant
|
|
419
419
|
* @see {@link updateEffect} for effectful updates that always store a new value
|
|
420
420
|
*
|
|
421
|
-
* @category
|
|
421
|
+
* @category mutations
|
|
422
422
|
* @since 2.0.0
|
|
423
423
|
*/
|
|
424
424
|
export const updateSomeEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Effect.suspend(() => {
|
|
@@ -443,7 +443,7 @@ export const updateSomeEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphor
|
|
|
443
443
|
* @see {@link updateSome} for conditional updates without returning a value
|
|
444
444
|
* @see {@link updateAndGet} for always applying a pure update and returning the new value
|
|
445
445
|
*
|
|
446
|
-
* @category
|
|
446
|
+
* @category mutations
|
|
447
447
|
* @since 2.0.0
|
|
448
448
|
*/
|
|
449
449
|
export const updateSomeAndGet = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Ref.updateSomeAndGet(self.backing, pf)));
|
|
@@ -460,7 +460,7 @@ export const updateSomeAndGet = /*#__PURE__*/dual(2, (self, pf) => self.semaphor
|
|
|
460
460
|
* @see {@link updateSomeEffect} for effectful conditional updates without returning a value
|
|
461
461
|
* @see {@link updateAndGetEffect} for effectful updates that always store and return a new value
|
|
462
462
|
*
|
|
463
|
-
* @category
|
|
463
|
+
* @category mutations
|
|
464
464
|
* @since 2.0.0
|
|
465
465
|
*/
|
|
466
466
|
export const updateSomeAndGetEffect = /*#__PURE__*/dual(2, (self, pf) => self.semaphore.withPermit(Effect.suspend(() => {
|
package/dist/Terminal.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ export declare const isQuitError: (u: unknown) => u is QuitError;
|
|
|
171
171
|
* Use to access or provide platform terminal capabilities such as reading
|
|
172
172
|
* input, writing output, and inspecting terminal dimensions.
|
|
173
173
|
*
|
|
174
|
-
* @category
|
|
174
|
+
* @category services
|
|
175
175
|
* @since 4.0.0
|
|
176
176
|
*/
|
|
177
177
|
export declare const Terminal: Context.Service<Terminal, Terminal>;
|
package/dist/Terminal.js
CHANGED
|
@@ -54,7 +54,7 @@ export const isQuitError = u => Predicate.hasProperty(u, QuitErrorTypeId);
|
|
|
54
54
|
* Use to access or provide platform terminal capabilities such as reading
|
|
55
55
|
* input, writing output, and inspecting terminal dimensions.
|
|
56
56
|
*
|
|
57
|
-
* @category
|
|
57
|
+
* @category services
|
|
58
58
|
* @since 4.0.0
|
|
59
59
|
*/
|
|
60
60
|
export const Terminal = /*#__PURE__*/Context.Service("effect/platform/Terminal");
|
package/dist/Tracer.d.ts
CHANGED
|
@@ -162,7 +162,7 @@ export type AnySpan = Span | ExternalSpan;
|
|
|
162
162
|
* console.log(Tracer.ParentSpanKey) // "effect/Tracer/ParentSpan"
|
|
163
163
|
* ```
|
|
164
164
|
*
|
|
165
|
-
* @category
|
|
165
|
+
* @category constants
|
|
166
166
|
* @since 4.0.0
|
|
167
167
|
*/
|
|
168
168
|
export declare const ParentSpanKey = "effect/Tracer/ParentSpan";
|
|
@@ -183,7 +183,7 @@ declare const ParentSpan_base: Context.ServiceClass<ParentSpan, "effect/Tracer/P
|
|
|
183
183
|
* })
|
|
184
184
|
* ```
|
|
185
185
|
*
|
|
186
|
-
* @category
|
|
186
|
+
* @category services
|
|
187
187
|
* @since 2.0.0
|
|
188
188
|
*/
|
|
189
189
|
export declare class ParentSpan extends ParentSpan_base {
|
|
@@ -245,7 +245,7 @@ export interface ExternalSpan {
|
|
|
245
245
|
* )
|
|
246
246
|
* ```
|
|
247
247
|
*
|
|
248
|
-
* @category
|
|
248
|
+
* @category options
|
|
249
249
|
* @since 3.1.0
|
|
250
250
|
*/
|
|
251
251
|
export interface SpanOptions extends SpanOptionsNoTrace, TraceOptions {
|
|
@@ -255,7 +255,7 @@ export interface SpanOptions extends SpanOptionsNoTrace, TraceOptions {
|
|
|
255
255
|
* attributes, links, parent or root selection, annotations, span kind,
|
|
256
256
|
* sampling, and the trace level used for filtering.
|
|
257
257
|
*
|
|
258
|
-
* @category
|
|
258
|
+
* @category options
|
|
259
259
|
* @since 4.0.0
|
|
260
260
|
*/
|
|
261
261
|
export interface SpanOptionsNoTrace {
|
|
@@ -272,7 +272,7 @@ export interface SpanOptionsNoTrace {
|
|
|
272
272
|
* Options that control stack trace capture for tracing wrappers.
|
|
273
273
|
* `captureStackTrace` can disable capture or provide a lazy stack string.
|
|
274
274
|
*
|
|
275
|
-
* @category
|
|
275
|
+
* @category options
|
|
276
276
|
* @since 4.0.0
|
|
277
277
|
*/
|
|
278
278
|
export interface TraceOptions {
|
package/dist/Tracer.js
CHANGED
|
@@ -60,7 +60,7 @@ const evaluate = "~effect/Effect/evaluate";
|
|
|
60
60
|
* console.log(Tracer.ParentSpanKey) // "effect/Tracer/ParentSpan"
|
|
61
61
|
* ```
|
|
62
62
|
*
|
|
63
|
-
* @category
|
|
63
|
+
* @category constants
|
|
64
64
|
* @since 4.0.0
|
|
65
65
|
*/
|
|
66
66
|
export const ParentSpanKey = "effect/Tracer/ParentSpan";
|
|
@@ -80,7 +80,7 @@ export const ParentSpanKey = "effect/Tracer/ParentSpan";
|
|
|
80
80
|
* })
|
|
81
81
|
* ```
|
|
82
82
|
*
|
|
83
|
-
* @category
|
|
83
|
+
* @category services
|
|
84
84
|
* @since 2.0.0
|
|
85
85
|
*/
|
|
86
86
|
export class ParentSpan extends /*#__PURE__*/Context.Service()(ParentSpanKey) {}
|
package/dist/Tuple.d.ts
CHANGED
|
@@ -208,7 +208,7 @@ type PickTuple<T extends ReadonlyArray<unknown>, K> = _BuildTuple<T, K>;
|
|
|
208
208
|
*
|
|
209
209
|
* @see {@link omit} – the inverse (exclude indices instead)
|
|
210
210
|
* @see {@link get} – extract a single element
|
|
211
|
-
* @category
|
|
211
|
+
* @category filtering
|
|
212
212
|
* @since 4.0.0
|
|
213
213
|
*/
|
|
214
214
|
export declare const pick: {
|
|
@@ -234,7 +234,7 @@ export declare const pick: {
|
|
|
234
234
|
*
|
|
235
235
|
* @see {@link omit} – the inverse (exclude indices instead)
|
|
236
236
|
* @see {@link get} – extract a single element
|
|
237
|
-
* @category
|
|
237
|
+
* @category filtering
|
|
238
238
|
* @since 4.0.0
|
|
239
239
|
*/
|
|
240
240
|
<const T extends ReadonlyArray<unknown>, const I extends ReadonlyArray<Indices<T>>>(indices: I): (self: T) => PickTuple<T, I[number]>;
|
|
@@ -260,7 +260,7 @@ export declare const pick: {
|
|
|
260
260
|
*
|
|
261
261
|
* @see {@link omit} – the inverse (exclude indices instead)
|
|
262
262
|
* @see {@link get} – extract a single element
|
|
263
|
-
* @category
|
|
263
|
+
* @category filtering
|
|
264
264
|
* @since 4.0.0
|
|
265
265
|
*/
|
|
266
266
|
<const T extends ReadonlyArray<unknown>, const I extends ReadonlyArray<Indices<T>>>(self: T, indices: I): PickTuple<T, I[number]>;
|
|
@@ -287,7 +287,7 @@ type OmitTuple<T extends ReadonlyArray<unknown>, K> = _BuildTuple<T, Exclude<Ind
|
|
|
287
287
|
* ```
|
|
288
288
|
*
|
|
289
289
|
* @see {@link pick} – the inverse (keep only specified indices)
|
|
290
|
-
* @category
|
|
290
|
+
* @category filtering
|
|
291
291
|
* @since 4.0.0
|
|
292
292
|
*/
|
|
293
293
|
export declare const omit: {
|
|
@@ -312,7 +312,7 @@ export declare const omit: {
|
|
|
312
312
|
* ```
|
|
313
313
|
*
|
|
314
314
|
* @see {@link pick} – the inverse (keep only specified indices)
|
|
315
|
-
* @category
|
|
315
|
+
* @category filtering
|
|
316
316
|
* @since 4.0.0
|
|
317
317
|
*/
|
|
318
318
|
<const T extends ReadonlyArray<unknown>, const I extends ReadonlyArray<Indices<T>>>(indices: I): (self: T) => OmitTuple<T, I[number]>;
|
|
@@ -337,7 +337,7 @@ export declare const omit: {
|
|
|
337
337
|
* ```
|
|
338
338
|
*
|
|
339
339
|
* @see {@link pick} – the inverse (keep only specified indices)
|
|
340
|
-
* @category
|
|
340
|
+
* @category filtering
|
|
341
341
|
* @since 4.0.0
|
|
342
342
|
*/
|
|
343
343
|
<const T extends ReadonlyArray<unknown>, const I extends ReadonlyArray<Indices<T>>>(self: T, indices: I): OmitTuple<T, I[number]>;
|
|
@@ -363,7 +363,7 @@ export declare const omit: {
|
|
|
363
363
|
* ```
|
|
364
364
|
*
|
|
365
365
|
* @see {@link appendElements} – append multiple elements (another tuple)
|
|
366
|
-
* @category
|
|
366
|
+
* @category combining
|
|
367
367
|
* @since 2.0.0
|
|
368
368
|
*/
|
|
369
369
|
export declare const appendElement: {
|
|
@@ -388,7 +388,7 @@ export declare const appendElement: {
|
|
|
388
388
|
* ```
|
|
389
389
|
*
|
|
390
390
|
* @see {@link appendElements} – append multiple elements (another tuple)
|
|
391
|
-
* @category
|
|
391
|
+
* @category combining
|
|
392
392
|
* @since 2.0.0
|
|
393
393
|
*/
|
|
394
394
|
<const E>(element: E): <const T extends ReadonlyArray<unknown>>(self: T) => [...T, E];
|
|
@@ -413,7 +413,7 @@ export declare const appendElement: {
|
|
|
413
413
|
* ```
|
|
414
414
|
*
|
|
415
415
|
* @see {@link appendElements} – append multiple elements (another tuple)
|
|
416
|
-
* @category
|
|
416
|
+
* @category combining
|
|
417
417
|
* @since 2.0.0
|
|
418
418
|
*/
|
|
419
419
|
<const T extends ReadonlyArray<unknown>, const E>(self: T, element: E): [...T, E];
|
|
@@ -440,7 +440,7 @@ export declare const appendElement: {
|
|
|
440
440
|
* ```
|
|
441
441
|
*
|
|
442
442
|
* @see {@link appendElement} – append a single element
|
|
443
|
-
* @category
|
|
443
|
+
* @category combining
|
|
444
444
|
* @since 4.0.0
|
|
445
445
|
*/
|
|
446
446
|
export declare const appendElements: {
|
|
@@ -466,7 +466,7 @@ export declare const appendElements: {
|
|
|
466
466
|
* ```
|
|
467
467
|
*
|
|
468
468
|
* @see {@link appendElement} – append a single element
|
|
469
|
-
* @category
|
|
469
|
+
* @category combining
|
|
470
470
|
* @since 4.0.0
|
|
471
471
|
*/
|
|
472
472
|
<const T2 extends ReadonlyArray<unknown>>(that: T2): <const T1 extends ReadonlyArray<unknown>>(self: T1) => [...T1, ...T2];
|
|
@@ -492,7 +492,7 @@ export declare const appendElements: {
|
|
|
492
492
|
* ```
|
|
493
493
|
*
|
|
494
494
|
* @see {@link appendElement} – append a single element
|
|
495
|
-
* @category
|
|
495
|
+
* @category combining
|
|
496
496
|
* @since 4.0.0
|
|
497
497
|
*/
|
|
498
498
|
<const T1 extends ReadonlyArray<unknown>, const T2 extends ReadonlyArray<unknown>>(self: T1, that: T2): [...T1, ...T2];
|
|
@@ -1075,7 +1075,7 @@ export declare const mapOmit: {
|
|
|
1075
1075
|
* ```
|
|
1076
1076
|
*
|
|
1077
1077
|
* @see {@link makeOrder} – create an `Order` for tuples
|
|
1078
|
-
* @category
|
|
1078
|
+
* @category instances
|
|
1079
1079
|
* @since 4.0.0
|
|
1080
1080
|
*/
|
|
1081
1081
|
export declare const makeEquivalence: typeof Equivalence.Tuple;
|
|
@@ -1104,7 +1104,7 @@ export declare const makeEquivalence: typeof Equivalence.Tuple;
|
|
|
1104
1104
|
* ```
|
|
1105
1105
|
*
|
|
1106
1106
|
* @see {@link makeEquivalence} – create an `Equivalence` for tuples
|
|
1107
|
-
* @category
|
|
1107
|
+
* @category ordering
|
|
1108
1108
|
* @since 4.0.0
|
|
1109
1109
|
*/
|
|
1110
1110
|
export declare const makeOrder: typeof order.Tuple;
|
package/dist/Tuple.js
CHANGED
|
@@ -149,7 +149,7 @@ export const get = /*#__PURE__*/dual(2, (self, index) => self[index]);
|
|
|
149
149
|
*
|
|
150
150
|
* @see {@link omit} – the inverse (exclude indices instead)
|
|
151
151
|
* @see {@link get} – extract a single element
|
|
152
|
-
* @category
|
|
152
|
+
* @category filtering
|
|
153
153
|
* @since 4.0.0
|
|
154
154
|
*/
|
|
155
155
|
export const pick = /*#__PURE__*/dual(2, (self, indices) => {
|
|
@@ -176,7 +176,7 @@ export const pick = /*#__PURE__*/dual(2, (self, indices) => {
|
|
|
176
176
|
* ```
|
|
177
177
|
*
|
|
178
178
|
* @see {@link pick} – the inverse (keep only specified indices)
|
|
179
|
-
* @category
|
|
179
|
+
* @category filtering
|
|
180
180
|
* @since 4.0.0
|
|
181
181
|
*/
|
|
182
182
|
export const omit = /*#__PURE__*/dual(2, (self, indices) => {
|
|
@@ -204,7 +204,7 @@ export const omit = /*#__PURE__*/dual(2, (self, indices) => {
|
|
|
204
204
|
* ```
|
|
205
205
|
*
|
|
206
206
|
* @see {@link appendElements} – append multiple elements (another tuple)
|
|
207
|
-
* @category
|
|
207
|
+
* @category combining
|
|
208
208
|
* @since 2.0.0
|
|
209
209
|
*/
|
|
210
210
|
export const appendElement = /*#__PURE__*/dual(2, (self, element) => [...self, element]);
|
|
@@ -230,7 +230,7 @@ export const appendElement = /*#__PURE__*/dual(2, (self, element) => [...self, e
|
|
|
230
230
|
* ```
|
|
231
231
|
*
|
|
232
232
|
* @see {@link appendElement} – append a single element
|
|
233
|
-
* @category
|
|
233
|
+
* @category combining
|
|
234
234
|
* @since 4.0.0
|
|
235
235
|
*/
|
|
236
236
|
export const appendElements = /*#__PURE__*/dual(2, (self, that) => [...self, ...that]);
|
|
@@ -447,7 +447,7 @@ export const mapOmit = /*#__PURE__*/dual(3, (self, indices, lambda) => {
|
|
|
447
447
|
* ```
|
|
448
448
|
*
|
|
449
449
|
* @see {@link makeOrder} – create an `Order` for tuples
|
|
450
|
-
* @category
|
|
450
|
+
* @category instances
|
|
451
451
|
* @since 4.0.0
|
|
452
452
|
*/
|
|
453
453
|
export const makeEquivalence = Equivalence.Tuple;
|
|
@@ -476,7 +476,7 @@ export const makeEquivalence = Equivalence.Tuple;
|
|
|
476
476
|
* ```
|
|
477
477
|
*
|
|
478
478
|
* @see {@link makeEquivalence} – create an `Equivalence` for tuples
|
|
479
|
-
* @category
|
|
479
|
+
* @category ordering
|
|
480
480
|
* @since 4.0.0
|
|
481
481
|
*/
|
|
482
482
|
export const makeOrder = order.Tuple;
|
package/dist/TxHashMap.d.ts
CHANGED
|
@@ -136,7 +136,7 @@ export declare namespace TxHashMap {
|
|
|
136
136
|
* })
|
|
137
137
|
* ```
|
|
138
138
|
*
|
|
139
|
-
* @category
|
|
139
|
+
* @category utility types
|
|
140
140
|
* @since 4.0.0
|
|
141
141
|
*/
|
|
142
142
|
type Key<T extends TxHashMap<any, any>> = T extends TxHashMap<infer K, any> ? K : never;
|
|
@@ -168,7 +168,7 @@ export declare namespace TxHashMap {
|
|
|
168
168
|
* })
|
|
169
169
|
* ```
|
|
170
170
|
*
|
|
171
|
-
* @category
|
|
171
|
+
* @category utility types
|
|
172
172
|
* @since 4.0.0
|
|
173
173
|
*/
|
|
174
174
|
type Value<T extends TxHashMap<any, any>> = T extends TxHashMap<any, infer V> ? V : never;
|
|
@@ -203,7 +203,7 @@ export declare namespace TxHashMap {
|
|
|
203
203
|
* })
|
|
204
204
|
* ```
|
|
205
205
|
*
|
|
206
|
-
* @category
|
|
206
|
+
* @category utility types
|
|
207
207
|
* @since 4.0.0
|
|
208
208
|
*/
|
|
209
209
|
type Entry<T extends TxHashMap<any, any>> = T extends TxHashMap<infer K, infer V> ? readonly [K, V] : never;
|
package/dist/TxHashSet.d.ts
CHANGED
|
@@ -119,7 +119,7 @@ export declare namespace TxHashSet {
|
|
|
119
119
|
* console.log(processFruit("apple")) // Processing apple
|
|
120
120
|
* ```
|
|
121
121
|
*
|
|
122
|
-
* @category
|
|
122
|
+
* @category utility types
|
|
123
123
|
* @since 4.0.0
|
|
124
124
|
*/
|
|
125
125
|
type Value<T> = T extends TxHashSet<infer V> ? V : never;
|
package/dist/Unify.d.ts
CHANGED
|
@@ -246,7 +246,7 @@ export type Unify<A> = Values<ExtractTypes<(FilterIn<A> & {
|
|
|
246
246
|
*
|
|
247
247
|
* @see {@link Unify} for the type-level normalization applied by this helper
|
|
248
248
|
*
|
|
249
|
-
* @category
|
|
249
|
+
* @category utility types
|
|
250
250
|
* @since 2.0.0
|
|
251
251
|
*/
|
|
252
252
|
export declare const unify: {
|
|
@@ -291,7 +291,7 @@ export declare const unify: {
|
|
|
291
291
|
*
|
|
292
292
|
* @see {@link Unify} for the type-level normalization applied by this helper
|
|
293
293
|
*
|
|
294
|
-
* @category
|
|
294
|
+
* @category utility types
|
|
295
295
|
* @since 2.0.0
|
|
296
296
|
*/
|
|
297
297
|
<Args extends Array<any>, Args2 extends Array<any>, Args3 extends Array<any>, Args4 extends Array<any>, Args5 extends Array<any>, T>(x: (...args: Args) => (...args: Args2) => (...args: Args3) => (...args: Args4) => (...args: Args5) => T): (...args: Args) => (...args: Args2) => (...args: Args3) => (...args: Args4) => (...args: Args5) => Unify<T>;
|
|
@@ -336,7 +336,7 @@ export declare const unify: {
|
|
|
336
336
|
*
|
|
337
337
|
* @see {@link Unify} for the type-level normalization applied by this helper
|
|
338
338
|
*
|
|
339
|
-
* @category
|
|
339
|
+
* @category utility types
|
|
340
340
|
* @since 2.0.0
|
|
341
341
|
*/
|
|
342
342
|
<Args extends Array<any>, Args2 extends Array<any>, Args3 extends Array<any>, Args4 extends Array<any>, T>(x: (...args: Args) => (...args: Args2) => (...args: Args3) => (...args: Args4) => T): (...args: Args) => (...args: Args2) => (...args: Args3) => (...args: Args4) => Unify<T>;
|
|
@@ -381,7 +381,7 @@ export declare const unify: {
|
|
|
381
381
|
*
|
|
382
382
|
* @see {@link Unify} for the type-level normalization applied by this helper
|
|
383
383
|
*
|
|
384
|
-
* @category
|
|
384
|
+
* @category utility types
|
|
385
385
|
* @since 2.0.0
|
|
386
386
|
*/
|
|
387
387
|
<Args extends Array<any>, Args2 extends Array<any>, Args3 extends Array<any>, T>(x: (...args: Args) => (...args: Args2) => (...args: Args3) => T): (...args: Args) => (...args: Args2) => (...args: Args3) => Unify<T>;
|
|
@@ -426,7 +426,7 @@ export declare const unify: {
|
|
|
426
426
|
*
|
|
427
427
|
* @see {@link Unify} for the type-level normalization applied by this helper
|
|
428
428
|
*
|
|
429
|
-
* @category
|
|
429
|
+
* @category utility types
|
|
430
430
|
* @since 2.0.0
|
|
431
431
|
*/
|
|
432
432
|
<Args extends Array<any>, Args2 extends Array<any>, T>(x: (...args: Args) => (...args: Args2) => T): (...args: Args) => (...args: Args2) => Unify<T>;
|
|
@@ -471,7 +471,7 @@ export declare const unify: {
|
|
|
471
471
|
*
|
|
472
472
|
* @see {@link Unify} for the type-level normalization applied by this helper
|
|
473
473
|
*
|
|
474
|
-
* @category
|
|
474
|
+
* @category utility types
|
|
475
475
|
* @since 2.0.0
|
|
476
476
|
*/
|
|
477
477
|
<Args extends Array<any>, T>(x: (...args: Args) => T): (...args: Args) => Unify<T>;
|
|
@@ -516,7 +516,7 @@ export declare const unify: {
|
|
|
516
516
|
*
|
|
517
517
|
* @see {@link Unify} for the type-level normalization applied by this helper
|
|
518
518
|
*
|
|
519
|
-
* @category
|
|
519
|
+
* @category utility types
|
|
520
520
|
* @since 2.0.0
|
|
521
521
|
*/
|
|
522
522
|
<T>(x: T): Unify<T>;
|
package/dist/Unify.js
CHANGED
|
@@ -132,7 +132,7 @@ export declare namespace TestClock {
|
|
|
132
132
|
* })
|
|
133
133
|
* ```
|
|
134
134
|
*
|
|
135
|
-
* @category
|
|
135
|
+
* @category options
|
|
136
136
|
* @since 4.0.0
|
|
137
137
|
*/
|
|
138
138
|
interface Options {
|
|
@@ -243,7 +243,7 @@ export declare const layer: (options?: TestClock.Options) => Layer.Layer<TestClo
|
|
|
243
243
|
* })
|
|
244
244
|
* ```
|
|
245
245
|
*
|
|
246
|
-
* @category
|
|
246
|
+
* @category testing
|
|
247
247
|
* @since 2.0.0
|
|
248
248
|
*/
|
|
249
249
|
export declare const testClockWith: <A, E, R>(f: (testClock: TestClock) => Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
@@ -275,7 +275,7 @@ export declare const testClockWith: <A, E, R>(f: (testClock: TestClock) => Effec
|
|
|
275
275
|
* })
|
|
276
276
|
* ```
|
|
277
277
|
*
|
|
278
|
-
* @category
|
|
278
|
+
* @category testing
|
|
279
279
|
* @since 2.0.0
|
|
280
280
|
*/
|
|
281
281
|
export declare const adjust: (duration: Duration.Input) => Effect.Effect<void>;
|
|
@@ -307,7 +307,7 @@ export declare const adjust: (duration: Duration.Input) => Effect.Effect<void>;
|
|
|
307
307
|
* })
|
|
308
308
|
* ```
|
|
309
309
|
*
|
|
310
|
-
* @category
|
|
310
|
+
* @category testing
|
|
311
311
|
* @since 2.0.0
|
|
312
312
|
*/
|
|
313
313
|
export declare const setTime: (timestamp: number) => Effect.Effect<void>;
|
|
@@ -339,7 +339,7 @@ export declare const setTime: (timestamp: number) => Effect.Effect<void>;
|
|
|
339
339
|
* })
|
|
340
340
|
* ```
|
|
341
341
|
*
|
|
342
|
-
* @category
|
|
342
|
+
* @category testing
|
|
343
343
|
* @since 4.0.0
|
|
344
344
|
*/
|
|
345
345
|
export declare const withLive: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
@@ -225,7 +225,7 @@ export const layer = /*#__PURE__*/flow(make, /*#__PURE__*/Layer.effect(Clock.Clo
|
|
|
225
225
|
* })
|
|
226
226
|
* ```
|
|
227
227
|
*
|
|
228
|
-
* @category
|
|
228
|
+
* @category testing
|
|
229
229
|
* @since 2.0.0
|
|
230
230
|
*/
|
|
231
231
|
export const testClockWith = f => Effect.withFiber(fiber => f(fiber.getRef(Clock.Clock)));
|
|
@@ -257,7 +257,7 @@ export const testClockWith = f => Effect.withFiber(fiber => f(fiber.getRef(Clock
|
|
|
257
257
|
* })
|
|
258
258
|
* ```
|
|
259
259
|
*
|
|
260
|
-
* @category
|
|
260
|
+
* @category testing
|
|
261
261
|
* @since 2.0.0
|
|
262
262
|
*/
|
|
263
263
|
export const adjust = duration => testClockWith(testClock => testClock.adjust(duration));
|
|
@@ -289,7 +289,7 @@ export const adjust = duration => testClockWith(testClock => testClock.adjust(du
|
|
|
289
289
|
* })
|
|
290
290
|
* ```
|
|
291
291
|
*
|
|
292
|
-
* @category
|
|
292
|
+
* @category testing
|
|
293
293
|
* @since 2.0.0
|
|
294
294
|
*/
|
|
295
295
|
export const setTime = timestamp => testClockWith(testClock => testClock.setTime(timestamp));
|
|
@@ -321,7 +321,7 @@ export const setTime = timestamp => testClockWith(testClock => testClock.setTime
|
|
|
321
321
|
* })
|
|
322
322
|
* ```
|
|
323
323
|
*
|
|
324
|
-
* @category
|
|
324
|
+
* @category testing
|
|
325
325
|
* @since 4.0.0
|
|
326
326
|
*/
|
|
327
327
|
export const withLive = effect => testClockWith(testClock => testClock.withLive(effect));
|
|
@@ -192,7 +192,7 @@ export declare const make: Effect.Effect<TestConsole, never, never>;
|
|
|
192
192
|
* @see {@link logLines} for reading captured `Console.log` calls directly
|
|
193
193
|
* @see {@link errorLines} for reading captured `Console.error` calls directly
|
|
194
194
|
*
|
|
195
|
-
* @category
|
|
195
|
+
* @category testing
|
|
196
196
|
* @since 4.0.0
|
|
197
197
|
*/
|
|
198
198
|
export declare const testConsoleWith: <A, E, R>(f: (console: TestConsole) => Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
@@ -264,7 +264,7 @@ export declare const layer: Layer.Layer<TestConsole>;
|
|
|
264
264
|
* @see {@link errorLines} for reading captured `Console.error` output
|
|
265
265
|
* @see {@link layer} for capturing console calls during a test
|
|
266
266
|
*
|
|
267
|
-
* @category
|
|
267
|
+
* @category testing
|
|
268
268
|
* @since 4.0.0
|
|
269
269
|
*/
|
|
270
270
|
export declare const logLines: Effect.Effect<ReadonlyArray<unknown>, never, never>;
|
|
@@ -300,7 +300,7 @@ export declare const logLines: Effect.Effect<ReadonlyArray<unknown>, never, neve
|
|
|
300
300
|
* @see {@link logLines} for reading captured `Console.log` output
|
|
301
301
|
* @see {@link layer} for capturing console calls during a test
|
|
302
302
|
*
|
|
303
|
-
* @category
|
|
303
|
+
* @category testing
|
|
304
304
|
* @since 4.0.0
|
|
305
305
|
*/
|
|
306
306
|
export declare const errorLines: Effect.Effect<ReadonlyArray<unknown>, never, never>;
|
|
@@ -142,7 +142,7 @@ export const make = /*#__PURE__*/Effect.gen(function* () {
|
|
|
142
142
|
* @see {@link logLines} for reading captured `Console.log` calls directly
|
|
143
143
|
* @see {@link errorLines} for reading captured `Console.error` calls directly
|
|
144
144
|
*
|
|
145
|
-
* @category
|
|
145
|
+
* @category testing
|
|
146
146
|
* @since 4.0.0
|
|
147
147
|
*/
|
|
148
148
|
export const testConsoleWith = f => Console.consoleWith(console => f(console));
|
|
@@ -214,7 +214,7 @@ export const layer = /*#__PURE__*/Layer.effect(Console.Console)(make);
|
|
|
214
214
|
* @see {@link errorLines} for reading captured `Console.error` output
|
|
215
215
|
* @see {@link layer} for capturing console calls during a test
|
|
216
216
|
*
|
|
217
|
-
* @category
|
|
217
|
+
* @category testing
|
|
218
218
|
* @since 4.0.0
|
|
219
219
|
*/
|
|
220
220
|
export const logLines = /*#__PURE__*/testConsoleWith(console => console.logLines);
|
|
@@ -250,7 +250,7 @@ export const logLines = /*#__PURE__*/testConsoleWith(console => console.logLines
|
|
|
250
250
|
* @see {@link logLines} for reading captured `Console.log` output
|
|
251
251
|
* @see {@link layer} for capturing console calls during a test
|
|
252
252
|
*
|
|
253
|
-
* @category
|
|
253
|
+
* @category testing
|
|
254
254
|
* @since 4.0.0
|
|
255
255
|
*/
|
|
256
256
|
export const errorLines = /*#__PURE__*/testConsoleWith(console => console.errorLines);
|