effect 4.0.0-beta.72 → 4.0.0-beta.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Array.d.ts +16 -16
- package/dist/Array.js +4 -4
- package/dist/Boolean.d.ts +2 -2
- package/dist/Boolean.js +2 -2
- package/dist/Channel.d.ts +63 -63
- package/dist/Channel.js +25 -25
- package/dist/Chunk.d.ts +17 -17
- package/dist/Chunk.js +5 -5
- package/dist/Context.d.ts +3 -3
- package/dist/Context.js +1 -1
- package/dist/Cron.d.ts +4 -4
- package/dist/Cron.js +4 -4
- package/dist/Deferred.d.ts +37 -37
- package/dist/Deferred.js +13 -13
- package/dist/Duration.d.ts +6 -6
- package/dist/Duration.js +2 -2
- package/dist/Effect.d.ts +58 -58
- package/dist/Effect.js +39 -39
- package/dist/Equal.d.ts +2 -2
- package/dist/Equal.js +2 -2
- package/dist/Equivalence.d.ts +1 -1
- package/dist/Equivalence.js +1 -1
- package/dist/ExecutionPlan.d.ts +2 -2
- package/dist/ExecutionPlan.js +1 -1
- package/dist/FileSystem.d.ts +6 -6
- package/dist/FileSystem.js +2 -2
- package/dist/Function.d.ts +5 -5
- package/dist/Function.js +5 -5
- package/dist/Graph.d.ts +11 -11
- package/dist/Graph.js +5 -5
- package/dist/HKT.d.ts +1 -1
- package/dist/HashMap.d.ts +3 -3
- package/dist/HashSet.d.ts +1 -1
- package/dist/Iterable.d.ts +15 -15
- package/dist/Iterable.js +5 -5
- package/dist/Layer.d.ts +16 -16
- package/dist/Layer.js +5 -5
- package/dist/Logger.d.ts +5 -5
- package/dist/Logger.js +4 -4
- package/dist/ManagedRuntime.d.ts +2 -2
- package/dist/Match.d.ts +20 -20
- package/dist/Match.js +16 -16
- package/dist/Metric.d.ts +16 -16
- package/dist/Metric.js +3 -3
- package/dist/Option.d.ts +36 -36
- package/dist/Option.js +17 -17
- package/dist/Order.d.ts +1 -1
- package/dist/Order.js +1 -1
- package/dist/Path.d.ts +1 -1
- package/dist/Path.js +1 -1
- package/dist/Pipeable.d.ts +1 -1
- package/dist/Pipeable.js +1 -1
- package/dist/Predicate.d.ts +5 -5
- package/dist/PubSub.d.ts +9 -9
- package/dist/PubSub.js +5 -5
- package/dist/Queue.d.ts +24 -24
- package/dist/Queue.js +20 -20
- package/dist/Record.d.ts +15 -15
- package/dist/Record.js +5 -5
- package/dist/Redacted.d.ts +2 -2
- package/dist/Redacted.js +1 -1
- package/dist/Ref.d.ts +6 -6
- package/dist/Ref.js +6 -6
- package/dist/RegExp.d.ts +1 -1
- package/dist/RegExp.js +1 -1
- package/dist/Request.d.ts +4 -4
- package/dist/RequestResolver.d.ts +6 -6
- package/dist/RequestResolver.js +2 -2
- package/dist/Resource.d.ts +1 -1
- package/dist/Resource.js +1 -1
- package/dist/Result.d.ts +18 -18
- package/dist/Result.js +11 -11
- package/dist/Schedule.d.ts +44 -44
- package/dist/Schedule.js +18 -18
- package/dist/Schema.d.ts +177 -459
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +25 -25
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +1 -1
- package/dist/SchemaGetter.d.ts +13 -13
- package/dist/SchemaGetter.js +12 -12
- package/dist/SchemaParser.d.ts +3 -3
- package/dist/SchemaParser.js +3 -3
- package/dist/Scope.d.ts +1 -1
- package/dist/Scope.js +1 -1
- package/dist/Sink.d.ts +5 -5
- package/dist/Sink.js +3 -3
- package/dist/Stream.d.ts +55 -55
- package/dist/Stream.js +21 -21
- package/dist/String.d.ts +5 -5
- package/dist/String.js +3 -3
- package/dist/Struct.d.ts +8 -8
- package/dist/Struct.js +3 -3
- package/dist/SynchronizedRef.d.ts +57 -57
- package/dist/SynchronizedRef.js +19 -19
- package/dist/Terminal.d.ts +1 -1
- package/dist/Terminal.js +1 -1
- package/dist/Tracer.d.ts +5 -5
- package/dist/Tracer.js +2 -2
- package/dist/Tuple.d.ts +14 -14
- package/dist/Tuple.js +6 -6
- package/dist/TxHashMap.d.ts +3 -3
- package/dist/TxHashSet.d.ts +1 -1
- package/dist/Unify.d.ts +7 -7
- package/dist/Unify.js +1 -1
- package/dist/testing/TestClock.d.ts +5 -5
- package/dist/testing/TestClock.js +4 -4
- package/dist/testing/TestConsole.d.ts +3 -3
- package/dist/testing/TestConsole.js +3 -3
- package/dist/unstable/ai/Chat.d.ts +2 -2
- package/dist/unstable/ai/Chat.js +2 -2
- package/dist/unstable/ai/EmbeddingModel.d.ts +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +2 -2
- package/dist/unstable/ai/IdGenerator.js +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +4 -4
- package/dist/unstable/ai/LanguageModel.js +1 -1
- package/dist/unstable/ai/Prompt.d.ts +15 -15
- package/dist/unstable/ai/Prompt.js +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +5 -5
- package/dist/unstable/ai/Telemetry.js +2 -2
- package/dist/unstable/ai/Tokenizer.d.ts +1 -1
- package/dist/unstable/ai/Tokenizer.js +1 -1
- package/dist/unstable/ai/Tool.d.ts +6 -6
- package/dist/unstable/ai/Tool.js +6 -6
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +1 -1
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +1 -1
- package/dist/unstable/cli/Primitive.d.ts +3 -3
- package/dist/unstable/cli/Primitive.js +1 -1
- package/dist/unstable/cli/Prompt.d.ts +11 -11
- package/dist/unstable/cli/internal/parser.js +145 -10
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +1 -1
- package/dist/unstable/cluster/Entity.js +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +1 -0
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +5 -3
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +2 -2
- package/dist/unstable/cluster/HttpRunner.js +2 -2
- package/dist/unstable/cluster/K8sHttpClient.d.ts +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +1 -1
- package/dist/unstable/cluster/Runners.d.ts +1 -1
- package/dist/unstable/cluster/Runners.js +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +1 -1
- package/dist/unstable/cluster/Sharding.js +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +5 -5
- package/dist/unstable/cluster/Snowflake.js +5 -5
- package/dist/unstable/devtools/DevToolsClient.d.ts +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +1 -1
- package/dist/unstable/eventlog/EventLog.js +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +3 -3
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +3 -3
- package/dist/unstable/http/Cookies.d.ts +1 -1
- package/dist/unstable/http/Etag.d.ts +1 -1
- package/dist/unstable/http/Etag.js +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +2 -2
- package/dist/unstable/http/FetchHttpClient.js +2 -2
- package/dist/unstable/http/HttpClient.d.ts +1 -1
- package/dist/unstable/http/HttpClient.js +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +2 -2
- package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
- package/dist/unstable/http/HttpMiddleware.js +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +1 -1
- package/dist/unstable/http/HttpPlatform.js +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +4 -4
- package/dist/unstable/http/HttpRouter.js +4 -4
- package/dist/unstable/http/HttpServerResponse.d.ts +3 -3
- package/dist/unstable/http/Url.d.ts +33 -33
- package/dist/unstable/http/Url.js +11 -11
- package/dist/unstable/httpapi/HttpApi.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApi.js +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +2 -3
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
- package/dist/unstable/httpapi/HttpApiError.js +13 -13
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +27 -5
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +26 -3
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +2 -2
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -4
- package/dist/unstable/observability/PrometheusMetrics.js +2 -2
- package/dist/unstable/persistence/KeyValueStore.d.ts +3 -3
- package/dist/unstable/persistence/KeyValueStore.js +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +2 -2
- package/dist/unstable/persistence/Persistable.js +2 -2
- package/dist/unstable/persistence/PersistedQueue.d.ts +8 -8
- package/dist/unstable/persistence/PersistedQueue.js +8 -8
- package/dist/unstable/persistence/RateLimiter.d.ts +1 -1
- package/dist/unstable/persistence/RateLimiter.js +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +5 -5
- package/dist/unstable/process/ChildProcess.js +2 -2
- package/dist/unstable/reactivity/AsyncResult.d.ts +4 -4
- package/dist/unstable/reactivity/AsyncResult.js +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +1 -1
- package/dist/unstable/reactivity/Atom.js +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +1 -1
- package/dist/unstable/reactivity/Reactivity.js +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +5 -5
- package/dist/unstable/rpc/Rpc.js +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +3 -3
- package/dist/unstable/rpc/RpcSchema.js +2 -2
- package/dist/unstable/schema/Model.d.ts +2 -2
- package/dist/unstable/schema/Model.js +1 -1
- package/dist/unstable/socket/Socket.d.ts +3 -3
- package/dist/unstable/socket/Socket.js +3 -3
- package/dist/unstable/socket/SocketServer.d.ts +1 -1
- package/dist/unstable/socket/SocketServer.js +1 -1
- package/dist/unstable/sql/Migrator.d.ts +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +3 -3
- package/dist/unstable/sql/SqlClient.js +2 -2
- package/dist/unstable/sql/SqlConnection.d.ts +1 -1
- package/dist/unstable/sql/SqlConnection.js +1 -1
- package/dist/unstable/sql/Statement.d.ts +2 -2
- package/dist/unstable/sql/Statement.js +2 -2
- package/dist/unstable/workers/Transferable.d.ts +1 -1
- package/dist/unstable/workers/Transferable.js +1 -1
- package/dist/unstable/workers/Worker.d.ts +1 -1
- package/dist/unstable/workers/Worker.js +1 -1
- package/dist/unstable/workflow/Activity.d.ts +1 -1
- package/dist/unstable/workflow/Activity.js +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +1 -1
- package/package.json +1 -1
- package/src/Array.ts +16 -16
- package/src/Boolean.ts +2 -2
- package/src/Channel.ts +67 -67
- package/src/Chunk.ts +18 -18
- package/src/Context.ts +4 -4
- package/src/Cron.ts +4 -4
- package/src/Deferred.ts +37 -37
- package/src/Duration.ts +6 -6
- package/src/Effect.ts +58 -58
- package/src/Equal.ts +2 -2
- package/src/Equivalence.ts +1 -1
- package/src/ExecutionPlan.ts +2 -2
- package/src/FileSystem.ts +6 -6
- package/src/Function.ts +5 -5
- package/src/Graph.ts +11 -11
- package/src/HKT.ts +1 -1
- package/src/HashMap.ts +3 -3
- package/src/HashSet.ts +1 -1
- package/src/Iterable.ts +15 -15
- package/src/Layer.ts +16 -16
- package/src/Logger.ts +7 -7
- package/src/ManagedRuntime.ts +2 -2
- package/src/Match.ts +20 -20
- package/src/Metric.ts +20 -20
- package/src/Option.ts +36 -36
- package/src/Order.ts +1 -1
- package/src/Path.ts +1 -1
- package/src/Pipeable.ts +1 -1
- package/src/Predicate.ts +5 -5
- package/src/PubSub.ts +9 -9
- package/src/Queue.ts +24 -24
- package/src/Record.ts +15 -15
- package/src/Redacted.ts +2 -2
- package/src/Ref.ts +18 -18
- package/src/RegExp.ts +1 -1
- package/src/Request.ts +4 -4
- package/src/RequestResolver.ts +8 -8
- package/src/Resource.ts +1 -1
- package/src/Result.ts +18 -18
- package/src/Schedule.ts +45 -45
- package/src/Schema.ts +177 -459
- package/src/SchemaAST.ts +1 -1
- package/src/SchemaGetter.ts +13 -13
- package/src/SchemaParser.ts +3 -3
- package/src/Scope.ts +1 -1
- package/src/Sink.ts +5 -5
- package/src/Stream.ts +57 -57
- package/src/String.ts +5 -5
- package/src/Struct.ts +8 -8
- package/src/SynchronizedRef.ts +57 -57
- package/src/Terminal.ts +1 -1
- package/src/Tracer.ts +5 -5
- package/src/Tuple.ts +14 -14
- package/src/TxHashMap.ts +3 -3
- package/src/TxHashSet.ts +1 -1
- package/src/Unify.ts +7 -7
- package/src/testing/TestClock.ts +5 -5
- package/src/testing/TestConsole.ts +3 -3
- package/src/unstable/ai/Chat.ts +2 -2
- package/src/unstable/ai/EmbeddingModel.ts +1 -1
- package/src/unstable/ai/IdGenerator.ts +2 -2
- package/src/unstable/ai/LanguageModel.ts +4 -4
- package/src/unstable/ai/Prompt.ts +15 -15
- package/src/unstable/ai/Telemetry.ts +5 -5
- package/src/unstable/ai/Tokenizer.ts +1 -1
- package/src/unstable/ai/Tool.ts +6 -6
- package/src/unstable/cli/Command.ts +5 -1
- package/src/unstable/cli/Param.ts +1 -1
- package/src/unstable/cli/Primitive.ts +3 -3
- package/src/unstable/cli/Prompt.ts +11 -11
- package/src/unstable/cli/internal/parser.ts +204 -10
- package/src/unstable/cluster/Entity.ts +1 -1
- package/src/unstable/cluster/EntityResource.ts +8 -4
- package/src/unstable/cluster/HttpRunner.ts +2 -2
- package/src/unstable/cluster/K8sHttpClient.ts +1 -1
- package/src/unstable/cluster/Runners.ts +1 -1
- package/src/unstable/cluster/Sharding.ts +1 -1
- package/src/unstable/cluster/SingletonAddress.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +5 -5
- package/src/unstable/devtools/DevToolsClient.ts +1 -1
- package/src/unstable/eventlog/EventLog.ts +1 -1
- package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
- package/src/unstable/eventlog/EventLogRemote.ts +1 -1
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +3 -3
- package/src/unstable/http/Cookies.ts +1 -1
- package/src/unstable/http/Etag.ts +1 -1
- package/src/unstable/http/FetchHttpClient.ts +2 -2
- package/src/unstable/http/HttpClient.ts +1 -1
- package/src/unstable/http/HttpClientRequest.ts +2 -2
- package/src/unstable/http/HttpMiddleware.ts +1 -1
- package/src/unstable/http/HttpPlatform.ts +1 -1
- package/src/unstable/http/HttpRouter.ts +4 -4
- package/src/unstable/http/HttpServerResponse.ts +3 -3
- package/src/unstable/http/Url.ts +33 -33
- package/src/unstable/httpapi/HttpApi.ts +1 -1
- package/src/unstable/httpapi/HttpApiBuilder.ts +2 -3
- package/src/unstable/httpapi/HttpApiError.ts +13 -13
- package/src/unstable/httpapi/HttpApiSecurity.ts +36 -8
- package/src/unstable/httpapi/OpenApi.ts +2 -2
- package/src/unstable/observability/PrometheusMetrics.ts +4 -4
- package/src/unstable/persistence/KeyValueStore.ts +3 -3
- package/src/unstable/persistence/Persistable.ts +2 -2
- package/src/unstable/persistence/PersistedQueue.ts +8 -8
- package/src/unstable/persistence/RateLimiter.ts +1 -1
- package/src/unstable/process/ChildProcess.ts +5 -5
- package/src/unstable/reactivity/AsyncResult.ts +4 -4
- package/src/unstable/reactivity/Atom.ts +1 -1
- package/src/unstable/reactivity/AtomRegistry.ts +1 -1
- package/src/unstable/reactivity/Reactivity.ts +1 -1
- package/src/unstable/rpc/Rpc.ts +5 -5
- package/src/unstable/rpc/RpcMiddleware.ts +1 -1
- package/src/unstable/rpc/RpcSchema.ts +3 -3
- package/src/unstable/schema/Model.ts +2 -2
- package/src/unstable/socket/Socket.ts +3 -3
- package/src/unstable/socket/SocketServer.ts +1 -1
- package/src/unstable/sql/Migrator.ts +1 -1
- package/src/unstable/sql/SqlClient.ts +3 -3
- package/src/unstable/sql/SqlConnection.ts +1 -1
- package/src/unstable/sql/Statement.ts +2 -2
- package/src/unstable/workers/Transferable.ts +1 -1
- package/src/unstable/workers/Worker.ts +1 -1
- package/src/unstable/workflow/Activity.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +1 -1
package/dist/String.d.ts
CHANGED
|
@@ -194,7 +194,7 @@ export type Concat<A extends string, B extends string> = `${A}${B}`;
|
|
|
194
194
|
* console.log(result2) // "helloworld"
|
|
195
195
|
* ```
|
|
196
196
|
*
|
|
197
|
-
* @category
|
|
197
|
+
* @category combining
|
|
198
198
|
* @since 2.0.0
|
|
199
199
|
*/
|
|
200
200
|
export declare const concat: {
|
|
@@ -213,7 +213,7 @@ export declare const concat: {
|
|
|
213
213
|
* console.log(result2) // "helloworld"
|
|
214
214
|
* ```
|
|
215
215
|
*
|
|
216
|
-
* @category
|
|
216
|
+
* @category combining
|
|
217
217
|
* @since 2.0.0
|
|
218
218
|
*/
|
|
219
219
|
<B extends string>(that: B): <A extends string>(self: A) => Concat<A, B>;
|
|
@@ -232,7 +232,7 @@ export declare const concat: {
|
|
|
232
232
|
* console.log(result2) // "helloworld"
|
|
233
233
|
* ```
|
|
234
234
|
*
|
|
235
|
-
* @category
|
|
235
|
+
* @category combining
|
|
236
236
|
* @since 2.0.0
|
|
237
237
|
*/
|
|
238
238
|
<A extends string, B extends string>(self: A, that: B): Concat<A, B>;
|
|
@@ -489,7 +489,7 @@ export declare const isNonEmpty: (self: string) => boolean;
|
|
|
489
489
|
* assert.deepStrictEqual(String.length("abc"), 3)
|
|
490
490
|
* ```
|
|
491
491
|
*
|
|
492
|
-
* @category
|
|
492
|
+
* @category getters
|
|
493
493
|
* @since 2.0.0
|
|
494
494
|
*/
|
|
495
495
|
export declare const length: (self: string) => number;
|
|
@@ -1620,7 +1620,7 @@ export declare const snakeCase: (self: string) => string;
|
|
|
1620
1620
|
*
|
|
1621
1621
|
* @see {@link concat} for concatenating two strings directly
|
|
1622
1622
|
*
|
|
1623
|
-
* @category
|
|
1623
|
+
* @category combining
|
|
1624
1624
|
* @since 4.0.0
|
|
1625
1625
|
*/
|
|
1626
1626
|
export declare const ReducerConcat: Reducer.Reducer<string>;
|
package/dist/String.js
CHANGED
|
@@ -179,7 +179,7 @@ export const empty = "";
|
|
|
179
179
|
* console.log(result2) // "helloworld"
|
|
180
180
|
* ```
|
|
181
181
|
*
|
|
182
|
-
* @category
|
|
182
|
+
* @category combining
|
|
183
183
|
* @since 2.0.0
|
|
184
184
|
*/
|
|
185
185
|
export const concat = /*#__PURE__*/dual(2, (self, that) => self + that);
|
|
@@ -396,7 +396,7 @@ export const isNonEmpty = self => self.length > 0;
|
|
|
396
396
|
* assert.deepStrictEqual(String.length("abc"), 3)
|
|
397
397
|
* ```
|
|
398
398
|
*
|
|
399
|
-
* @category
|
|
399
|
+
* @category getters
|
|
400
400
|
* @since 2.0.0
|
|
401
401
|
*/
|
|
402
402
|
export const length = self => self.length;
|
|
@@ -1249,7 +1249,7 @@ export const snakeCase = /*#__PURE__*/noCase({
|
|
|
1249
1249
|
*
|
|
1250
1250
|
* @see {@link concat} for concatenating two strings directly
|
|
1251
1251
|
*
|
|
1252
|
-
* @category
|
|
1252
|
+
* @category combining
|
|
1253
1253
|
* @since 4.0.0
|
|
1254
1254
|
*/
|
|
1255
1255
|
export const ReducerConcat = /*#__PURE__*/Reducer.make((a, b) => a + b, "");
|
package/dist/Struct.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ import * as Reducer from "./Reducer.ts";
|
|
|
103
103
|
*
|
|
104
104
|
* @see {@link Mutable} – also flattens but removes `readonly`
|
|
105
105
|
* @see {@link Assign} – merges two types with right-side precedence
|
|
106
|
-
* @category
|
|
106
|
+
* @category utility types
|
|
107
107
|
* @since 4.0.0
|
|
108
108
|
*/
|
|
109
109
|
export type Simplify<T> = {
|
|
@@ -132,7 +132,7 @@ export type Simplify<T> = {
|
|
|
132
132
|
* ```
|
|
133
133
|
*
|
|
134
134
|
* @see {@link Simplify} – flattens intersections without removing `readonly`
|
|
135
|
-
* @category
|
|
135
|
+
* @category utility types
|
|
136
136
|
* @since 4.0.0
|
|
137
137
|
*/
|
|
138
138
|
export type Mutable<T> = {
|
|
@@ -164,7 +164,7 @@ export type Mutable<T> = {
|
|
|
164
164
|
*
|
|
165
165
|
* @see {@link assign} – the runtime equivalent
|
|
166
166
|
* @see {@link Simplify} – flatten the resulting intersection
|
|
167
|
-
* @category
|
|
167
|
+
* @category utility types
|
|
168
168
|
* @since 4.0.0
|
|
169
169
|
*/
|
|
170
170
|
export type Assign<T, U> = Simplify<keyof T & keyof U extends never ? T & U : Omit<T, keyof T & keyof U> & U>;
|
|
@@ -782,7 +782,7 @@ type EntryEvolved<S, E> = {
|
|
|
782
782
|
*
|
|
783
783
|
* @see {@link evolve} – transform values only
|
|
784
784
|
* @see {@link evolveKeys} – transform keys only
|
|
785
|
-
* @category
|
|
785
|
+
* @category transforming
|
|
786
786
|
* @since 4.0.0
|
|
787
787
|
*/
|
|
788
788
|
export declare const evolveEntries: {
|
|
@@ -816,7 +816,7 @@ export declare const evolveEntries: {
|
|
|
816
816
|
*
|
|
817
817
|
* @see {@link evolve} – transform values only
|
|
818
818
|
* @see {@link evolveKeys} – transform keys only
|
|
819
|
-
* @category
|
|
819
|
+
* @category transforming
|
|
820
820
|
* @since 4.0.0
|
|
821
821
|
*/
|
|
822
822
|
<S extends object, E extends EntryEvolver<S>>(e: E): (self: S) => EntryEvolved<S, E>;
|
|
@@ -850,7 +850,7 @@ export declare const evolveEntries: {
|
|
|
850
850
|
*
|
|
851
851
|
* @see {@link evolve} – transform values only
|
|
852
852
|
* @see {@link evolveKeys} – transform keys only
|
|
853
|
-
* @category
|
|
853
|
+
* @category transforming
|
|
854
854
|
* @since 4.0.0
|
|
855
855
|
*/
|
|
856
856
|
<S extends object, E extends EntryEvolver<S>>(self: S, e: E): EntryEvolved<S, E>;
|
|
@@ -986,7 +986,7 @@ export declare const renameKeys: {
|
|
|
986
986
|
* ```
|
|
987
987
|
*
|
|
988
988
|
* @see {@link makeOrder} – create an `Order` for structs
|
|
989
|
-
* @category
|
|
989
|
+
* @category instances
|
|
990
990
|
* @since 4.0.0
|
|
991
991
|
*/
|
|
992
992
|
export declare const makeEquivalence: typeof Equivalence.Struct;
|
|
@@ -1020,7 +1020,7 @@ export declare const makeEquivalence: typeof Equivalence.Struct;
|
|
|
1020
1020
|
* ```
|
|
1021
1021
|
*
|
|
1022
1022
|
* @see {@link makeEquivalence} – create an `Equivalence` for structs
|
|
1023
|
-
* @category
|
|
1023
|
+
* @category ordering
|
|
1024
1024
|
* @since 4.0.0
|
|
1025
1025
|
*/
|
|
1026
1026
|
export declare const makeOrder: typeof order.Struct;
|
package/dist/Struct.js
CHANGED
|
@@ -327,7 +327,7 @@ export const evolveKeys = /*#__PURE__*/dual(2, (self, e) => {
|
|
|
327
327
|
*
|
|
328
328
|
* @see {@link evolve} – transform values only
|
|
329
329
|
* @see {@link evolveKeys} – transform keys only
|
|
330
|
-
* @category
|
|
330
|
+
* @category transforming
|
|
331
331
|
* @since 4.0.0
|
|
332
332
|
*/
|
|
333
333
|
export const evolveEntries = /*#__PURE__*/dual(2, (self, e) => {
|
|
@@ -397,7 +397,7 @@ export const renameKeys = /*#__PURE__*/dual(2, (self, mapping) => {
|
|
|
397
397
|
* ```
|
|
398
398
|
*
|
|
399
399
|
* @see {@link makeOrder} – create an `Order` for structs
|
|
400
|
-
* @category
|
|
400
|
+
* @category instances
|
|
401
401
|
* @since 4.0.0
|
|
402
402
|
*/
|
|
403
403
|
export const makeEquivalence = Equivalence.Struct;
|
|
@@ -431,7 +431,7 @@ export const makeEquivalence = Equivalence.Struct;
|
|
|
431
431
|
* ```
|
|
432
432
|
*
|
|
433
433
|
* @see {@link makeEquivalence} – create an `Equivalence` for structs
|
|
434
|
-
* @category
|
|
434
|
+
* @category ordering
|
|
435
435
|
* @since 4.0.0
|
|
436
436
|
*/
|
|
437
437
|
export const makeOrder = order.Struct;
|
|
@@ -121,7 +121,7 @@ export declare const get: <A>(self: SynchronizedRef<A>) => Effect.Effect<A>;
|
|
|
121
121
|
* @see {@link setAndGet} for setting a value and returning the new value
|
|
122
122
|
* @see {@link getAndUpdate} for deriving the new value from the current value
|
|
123
123
|
*
|
|
124
|
-
* @category
|
|
124
|
+
* @category mutations
|
|
125
125
|
* @since 2.0.0
|
|
126
126
|
*/
|
|
127
127
|
export declare const getAndSet: {
|
|
@@ -138,7 +138,7 @@ export declare const getAndSet: {
|
|
|
138
138
|
* @see {@link setAndGet} for setting a value and returning the new value
|
|
139
139
|
* @see {@link getAndUpdate} for deriving the new value from the current value
|
|
140
140
|
*
|
|
141
|
-
* @category
|
|
141
|
+
* @category mutations
|
|
142
142
|
* @since 2.0.0
|
|
143
143
|
*/
|
|
144
144
|
<A>(value: A): (self: SynchronizedRef<A>) => Effect.Effect<A>;
|
|
@@ -155,7 +155,7 @@ export declare const getAndSet: {
|
|
|
155
155
|
* @see {@link setAndGet} for setting a value and returning the new value
|
|
156
156
|
* @see {@link getAndUpdate} for deriving the new value from the current value
|
|
157
157
|
*
|
|
158
|
-
* @category
|
|
158
|
+
* @category mutations
|
|
159
159
|
* @since 2.0.0
|
|
160
160
|
*/
|
|
161
161
|
<A>(self: SynchronizedRef<A>, value: A): Effect.Effect<A>;
|
|
@@ -172,7 +172,7 @@ export declare const getAndSet: {
|
|
|
172
172
|
* @see {@link updateAndGet} for updating and returning the new value
|
|
173
173
|
* @see {@link getAndUpdateEffect} for effectful updates that return the previous value
|
|
174
174
|
*
|
|
175
|
-
* @category
|
|
175
|
+
* @category mutations
|
|
176
176
|
* @since 2.0.0
|
|
177
177
|
*/
|
|
178
178
|
export declare const getAndUpdate: {
|
|
@@ -188,7 +188,7 @@ export declare const getAndUpdate: {
|
|
|
188
188
|
* @see {@link updateAndGet} for updating and returning the new value
|
|
189
189
|
* @see {@link getAndUpdateEffect} for effectful updates that return the previous value
|
|
190
190
|
*
|
|
191
|
-
* @category
|
|
191
|
+
* @category mutations
|
|
192
192
|
* @since 2.0.0
|
|
193
193
|
*/
|
|
194
194
|
<A>(f: (a: A) => A): (self: SynchronizedRef<A>) => Effect.Effect<A>;
|
|
@@ -204,7 +204,7 @@ export declare const getAndUpdate: {
|
|
|
204
204
|
* @see {@link updateAndGet} for updating and returning the new value
|
|
205
205
|
* @see {@link getAndUpdateEffect} for effectful updates that return the previous value
|
|
206
206
|
*
|
|
207
|
-
* @category
|
|
207
|
+
* @category mutations
|
|
208
208
|
* @since 2.0.0
|
|
209
209
|
*/
|
|
210
210
|
<A>(self: SynchronizedRef<A>, f: (a: A) => A): Effect.Effect<A>;
|
|
@@ -223,7 +223,7 @@ export declare const getAndUpdate: {
|
|
|
223
223
|
* @see {@link modifyEffect} for effectful updates with a custom return value
|
|
224
224
|
* @see {@link getAndUpdateSomeEffect} for conditional effectful updates that return the previous value
|
|
225
225
|
*
|
|
226
|
-
* @category
|
|
226
|
+
* @category mutations
|
|
227
227
|
* @since 2.0.0
|
|
228
228
|
*/
|
|
229
229
|
export declare const getAndUpdateEffect: {
|
|
@@ -241,7 +241,7 @@ export declare const getAndUpdateEffect: {
|
|
|
241
241
|
* @see {@link modifyEffect} for effectful updates with a custom return value
|
|
242
242
|
* @see {@link getAndUpdateSomeEffect} for conditional effectful updates that return the previous value
|
|
243
243
|
*
|
|
244
|
-
* @category
|
|
244
|
+
* @category mutations
|
|
245
245
|
* @since 2.0.0
|
|
246
246
|
*/
|
|
247
247
|
<A, R, E>(f: (a: A) => Effect.Effect<A, E, R>): (self: SynchronizedRef<A>) => Effect.Effect<A, E, R>;
|
|
@@ -259,7 +259,7 @@ export declare const getAndUpdateEffect: {
|
|
|
259
259
|
* @see {@link modifyEffect} for effectful updates with a custom return value
|
|
260
260
|
* @see {@link getAndUpdateSomeEffect} for conditional effectful updates that return the previous value
|
|
261
261
|
*
|
|
262
|
-
* @category
|
|
262
|
+
* @category mutations
|
|
263
263
|
* @since 2.0.0
|
|
264
264
|
*/
|
|
265
265
|
<A, R, E>(self: SynchronizedRef<A>, f: (a: A) => Effect.Effect<A, E, R>): Effect.Effect<A, E, R>;
|
|
@@ -276,7 +276,7 @@ export declare const getAndUpdateEffect: {
|
|
|
276
276
|
* @see {@link getAndUpdate} for always applying a pure update
|
|
277
277
|
* @see {@link updateSome} for applying a pure conditional update without returning the previous value
|
|
278
278
|
*
|
|
279
|
-
* @category
|
|
279
|
+
* @category mutations
|
|
280
280
|
* @since 2.0.0
|
|
281
281
|
*/
|
|
282
282
|
export declare const getAndUpdateSome: {
|
|
@@ -292,7 +292,7 @@ export declare const getAndUpdateSome: {
|
|
|
292
292
|
* @see {@link getAndUpdate} for always applying a pure update
|
|
293
293
|
* @see {@link updateSome} for applying a pure conditional update without returning the previous value
|
|
294
294
|
*
|
|
295
|
-
* @category
|
|
295
|
+
* @category mutations
|
|
296
296
|
* @since 2.0.0
|
|
297
297
|
*/
|
|
298
298
|
<A>(pf: (a: A) => Option.Option<A>): (self: SynchronizedRef<A>) => Effect.Effect<A>;
|
|
@@ -308,7 +308,7 @@ export declare const getAndUpdateSome: {
|
|
|
308
308
|
* @see {@link getAndUpdate} for always applying a pure update
|
|
309
309
|
* @see {@link updateSome} for applying a pure conditional update without returning the previous value
|
|
310
310
|
*
|
|
311
|
-
* @category
|
|
311
|
+
* @category mutations
|
|
312
312
|
* @since 2.0.0
|
|
313
313
|
*/
|
|
314
314
|
<A>(self: SynchronizedRef<A>, pf: (a: A) => Option.Option<A>): Effect.Effect<A>;
|
|
@@ -326,7 +326,7 @@ export declare const getAndUpdateSome: {
|
|
|
326
326
|
* @see {@link getAndUpdateSome} for the pure conditional variant
|
|
327
327
|
* @see {@link updateSomeEffect} for effectful conditional updates without returning the previous value
|
|
328
328
|
*
|
|
329
|
-
* @category
|
|
329
|
+
* @category mutations
|
|
330
330
|
* @since 2.0.0
|
|
331
331
|
*/
|
|
332
332
|
export declare const getAndUpdateSomeEffect: {
|
|
@@ -343,7 +343,7 @@ export declare const getAndUpdateSomeEffect: {
|
|
|
343
343
|
* @see {@link getAndUpdateSome} for the pure conditional variant
|
|
344
344
|
* @see {@link updateSomeEffect} for effectful conditional updates without returning the previous value
|
|
345
345
|
*
|
|
346
|
-
* @category
|
|
346
|
+
* @category mutations
|
|
347
347
|
* @since 2.0.0
|
|
348
348
|
*/
|
|
349
349
|
<A, R, E>(pf: (a: A) => Effect.Effect<Option.Option<A>, E, R>): (self: SynchronizedRef<A>) => Effect.Effect<A, E, R>;
|
|
@@ -360,7 +360,7 @@ export declare const getAndUpdateSomeEffect: {
|
|
|
360
360
|
* @see {@link getAndUpdateSome} for the pure conditional variant
|
|
361
361
|
* @see {@link updateSomeEffect} for effectful conditional updates without returning the previous value
|
|
362
362
|
*
|
|
363
|
-
* @category
|
|
363
|
+
* @category mutations
|
|
364
364
|
* @since 2.0.0
|
|
365
365
|
*/
|
|
366
366
|
<A, R, E>(self: SynchronizedRef<A>, pf: (a: A) => Effect.Effect<Option.Option<A>, E, R>): Effect.Effect<A, E, R>;
|
|
@@ -378,7 +378,7 @@ export declare const getAndUpdateSomeEffect: {
|
|
|
378
378
|
* @see {@link modifySome} for deriving a result and optionally updating the stored value
|
|
379
379
|
* @see {@link updateAndGet} for returning the new stored value instead of a separate result
|
|
380
380
|
*
|
|
381
|
-
* @category
|
|
381
|
+
* @category mutations
|
|
382
382
|
* @since 2.0.0
|
|
383
383
|
*/
|
|
384
384
|
export declare const modify: {
|
|
@@ -395,7 +395,7 @@ export declare const modify: {
|
|
|
395
395
|
* @see {@link modifySome} for deriving a result and optionally updating the stored value
|
|
396
396
|
* @see {@link updateAndGet} for returning the new stored value instead of a separate result
|
|
397
397
|
*
|
|
398
|
-
* @category
|
|
398
|
+
* @category mutations
|
|
399
399
|
* @since 2.0.0
|
|
400
400
|
*/
|
|
401
401
|
<A, B>(f: (a: A) => readonly [B, A]): (self: SynchronizedRef<A>) => Effect.Effect<B>;
|
|
@@ -412,7 +412,7 @@ export declare const modify: {
|
|
|
412
412
|
* @see {@link modifySome} for deriving a result and optionally updating the stored value
|
|
413
413
|
* @see {@link updateAndGet} for returning the new stored value instead of a separate result
|
|
414
414
|
*
|
|
415
|
-
* @category
|
|
415
|
+
* @category mutations
|
|
416
416
|
* @since 2.0.0
|
|
417
417
|
*/
|
|
418
418
|
<A, B>(self: SynchronizedRef<A>, f: (a: A) => readonly [B, A]): Effect.Effect<B>;
|
|
@@ -429,7 +429,7 @@ export declare const modify: {
|
|
|
429
429
|
* @see {@link modify} for the pure variant
|
|
430
430
|
* @see {@link updateEffect} for effectfully storing a new value without a separate result
|
|
431
431
|
*
|
|
432
|
-
* @category
|
|
432
|
+
* @category mutations
|
|
433
433
|
* @since 2.0.0
|
|
434
434
|
*/
|
|
435
435
|
export declare const modifyEffect: {
|
|
@@ -445,7 +445,7 @@ export declare const modifyEffect: {
|
|
|
445
445
|
* @see {@link modify} for the pure variant
|
|
446
446
|
* @see {@link updateEffect} for effectfully storing a new value without a separate result
|
|
447
447
|
*
|
|
448
|
-
* @category
|
|
448
|
+
* @category mutations
|
|
449
449
|
* @since 2.0.0
|
|
450
450
|
*/
|
|
451
451
|
<A, B, E, R>(f: (a: A) => Effect.Effect<readonly [B, A], E, R>): (self: SynchronizedRef<A>) => Effect.Effect<B, E, R>;
|
|
@@ -461,7 +461,7 @@ export declare const modifyEffect: {
|
|
|
461
461
|
* @see {@link modify} for the pure variant
|
|
462
462
|
* @see {@link updateEffect} for effectfully storing a new value without a separate result
|
|
463
463
|
*
|
|
464
|
-
* @category
|
|
464
|
+
* @category mutations
|
|
465
465
|
* @since 2.0.0
|
|
466
466
|
*/
|
|
467
467
|
<A, B, E, R>(self: SynchronizedRef<A>, f: (a: A) => Effect.Effect<readonly [B, A], E, R>): Effect.Effect<B, E, R>;
|
|
@@ -477,7 +477,7 @@ export declare const modifyEffect: {
|
|
|
477
477
|
* @see {@link modify} for always storing a new value
|
|
478
478
|
* @see {@link updateSome} for optional updates without a separate return value
|
|
479
479
|
*
|
|
480
|
-
* @category
|
|
480
|
+
* @category mutations
|
|
481
481
|
* @since 2.0.0
|
|
482
482
|
*/
|
|
483
483
|
export declare const modifySome: {
|
|
@@ -492,7 +492,7 @@ export declare const modifySome: {
|
|
|
492
492
|
* @see {@link modify} for always storing a new value
|
|
493
493
|
* @see {@link updateSome} for optional updates without a separate return value
|
|
494
494
|
*
|
|
495
|
-
* @category
|
|
495
|
+
* @category mutations
|
|
496
496
|
* @since 2.0.0
|
|
497
497
|
*/
|
|
498
498
|
<B, A>(pf: (a: A) => readonly [B, Option.Option<A>]): (self: SynchronizedRef<A>) => Effect.Effect<B>;
|
|
@@ -507,7 +507,7 @@ export declare const modifySome: {
|
|
|
507
507
|
* @see {@link modify} for always storing a new value
|
|
508
508
|
* @see {@link updateSome} for optional updates without a separate return value
|
|
509
509
|
*
|
|
510
|
-
* @category
|
|
510
|
+
* @category mutations
|
|
511
511
|
* @since 2.0.0
|
|
512
512
|
*/
|
|
513
513
|
<A, B>(self: SynchronizedRef<A>, pf: (a: A) => readonly [B, Option.Option<A>]): Effect.Effect<B>;
|
|
@@ -525,7 +525,7 @@ export declare const modifySome: {
|
|
|
525
525
|
* @see {@link modifySome} for the pure variant
|
|
526
526
|
* @see {@link updateSomeEffect} for effectful optional updates without a separate return value
|
|
527
527
|
*
|
|
528
|
-
* @category
|
|
528
|
+
* @category mutations
|
|
529
529
|
* @since 2.0.0
|
|
530
530
|
*/
|
|
531
531
|
export declare const modifySomeEffect: {
|
|
@@ -542,7 +542,7 @@ export declare const modifySomeEffect: {
|
|
|
542
542
|
* @see {@link modifySome} for the pure variant
|
|
543
543
|
* @see {@link updateSomeEffect} for effectful optional updates without a separate return value
|
|
544
544
|
*
|
|
545
|
-
* @category
|
|
545
|
+
* @category mutations
|
|
546
546
|
* @since 2.0.0
|
|
547
547
|
*/
|
|
548
548
|
<A, B, R, E>(fallback: B, pf: (a: A) => Effect.Effect<readonly [B, Option.Option<A>], E, R>): (self: SynchronizedRef<A>) => Effect.Effect<B, E, R>;
|
|
@@ -559,7 +559,7 @@ export declare const modifySomeEffect: {
|
|
|
559
559
|
* @see {@link modifySome} for the pure variant
|
|
560
560
|
* @see {@link updateSomeEffect} for effectful optional updates without a separate return value
|
|
561
561
|
*
|
|
562
|
-
* @category
|
|
562
|
+
* @category mutations
|
|
563
563
|
* @since 2.0.0
|
|
564
564
|
*/
|
|
565
565
|
<A, B, R, E>(self: SynchronizedRef<A>, pf: (a: A) => Effect.Effect<readonly [B, Option.Option<A>], E, R>): Effect.Effect<B, E, R>;
|
|
@@ -576,7 +576,7 @@ export declare const modifySomeEffect: {
|
|
|
576
576
|
* @see {@link setAndGet} for replacing the value when the new value should be returned
|
|
577
577
|
* @see {@link update} for deriving the next value from the current value
|
|
578
578
|
*
|
|
579
|
-
* @category
|
|
579
|
+
* @category mutations
|
|
580
580
|
* @since 2.0.0
|
|
581
581
|
*/
|
|
582
582
|
export declare const set: {
|
|
@@ -592,7 +592,7 @@ export declare const set: {
|
|
|
592
592
|
* @see {@link setAndGet} for replacing the value when the new value should be returned
|
|
593
593
|
* @see {@link update} for deriving the next value from the current value
|
|
594
594
|
*
|
|
595
|
-
* @category
|
|
595
|
+
* @category mutations
|
|
596
596
|
* @since 2.0.0
|
|
597
597
|
*/
|
|
598
598
|
<A>(value: A): (self: SynchronizedRef<A>) => Effect.Effect<void>;
|
|
@@ -608,7 +608,7 @@ export declare const set: {
|
|
|
608
608
|
* @see {@link setAndGet} for replacing the value when the new value should be returned
|
|
609
609
|
* @see {@link update} for deriving the next value from the current value
|
|
610
610
|
*
|
|
611
|
-
* @category
|
|
611
|
+
* @category mutations
|
|
612
612
|
* @since 2.0.0
|
|
613
613
|
*/
|
|
614
614
|
<A>(self: SynchronizedRef<A>, value: A): Effect.Effect<void>;
|
|
@@ -624,7 +624,7 @@ export declare const set: {
|
|
|
624
624
|
* @see {@link set} for setting without returning a value
|
|
625
625
|
* @see {@link getAndSet} for setting while returning the previous value
|
|
626
626
|
*
|
|
627
|
-
* @category
|
|
627
|
+
* @category mutations
|
|
628
628
|
* @since 2.0.0
|
|
629
629
|
*/
|
|
630
630
|
export declare const setAndGet: {
|
|
@@ -639,7 +639,7 @@ export declare const setAndGet: {
|
|
|
639
639
|
* @see {@link set} for setting without returning a value
|
|
640
640
|
* @see {@link getAndSet} for setting while returning the previous value
|
|
641
641
|
*
|
|
642
|
-
* @category
|
|
642
|
+
* @category mutations
|
|
643
643
|
* @since 2.0.0
|
|
644
644
|
*/
|
|
645
645
|
<A>(value: A): (self: SynchronizedRef<A>) => Effect.Effect<A>;
|
|
@@ -654,7 +654,7 @@ export declare const setAndGet: {
|
|
|
654
654
|
* @see {@link set} for setting without returning a value
|
|
655
655
|
* @see {@link getAndSet} for setting while returning the previous value
|
|
656
656
|
*
|
|
657
|
-
* @category
|
|
657
|
+
* @category mutations
|
|
658
658
|
* @since 2.0.0
|
|
659
659
|
*/
|
|
660
660
|
<A>(self: SynchronizedRef<A>, value: A): Effect.Effect<A>;
|
|
@@ -672,7 +672,7 @@ export declare const setAndGet: {
|
|
|
672
672
|
* @see {@link updateAndGet} for returning the new stored value
|
|
673
673
|
* @see {@link getAndUpdate} for returning the previous stored value
|
|
674
674
|
*
|
|
675
|
-
* @category
|
|
675
|
+
* @category mutations
|
|
676
676
|
* @since 2.0.0
|
|
677
677
|
*/
|
|
678
678
|
export declare const update: {
|
|
@@ -689,7 +689,7 @@ export declare const update: {
|
|
|
689
689
|
* @see {@link updateAndGet} for returning the new stored value
|
|
690
690
|
* @see {@link getAndUpdate} for returning the previous stored value
|
|
691
691
|
*
|
|
692
|
-
* @category
|
|
692
|
+
* @category mutations
|
|
693
693
|
* @since 2.0.0
|
|
694
694
|
*/
|
|
695
695
|
<A>(f: (a: A) => A): (self: SynchronizedRef<A>) => Effect.Effect<void>;
|
|
@@ -706,7 +706,7 @@ export declare const update: {
|
|
|
706
706
|
* @see {@link updateAndGet} for returning the new stored value
|
|
707
707
|
* @see {@link getAndUpdate} for returning the previous stored value
|
|
708
708
|
*
|
|
709
|
-
* @category
|
|
709
|
+
* @category mutations
|
|
710
710
|
* @since 2.0.0
|
|
711
711
|
*/
|
|
712
712
|
<A>(self: SynchronizedRef<A>, f: (a: A) => A): Effect.Effect<void>;
|
|
@@ -726,7 +726,7 @@ export declare const update: {
|
|
|
726
726
|
* @see {@link modifyEffect} for returning a separate result while storing a new value
|
|
727
727
|
* @see {@link updateSomeEffect} for effectfully applying only some state transitions
|
|
728
728
|
*
|
|
729
|
-
* @category
|
|
729
|
+
* @category mutations
|
|
730
730
|
* @since 2.0.0
|
|
731
731
|
*/
|
|
732
732
|
export declare const updateEffect: {
|
|
@@ -745,7 +745,7 @@ export declare const updateEffect: {
|
|
|
745
745
|
* @see {@link modifyEffect} for returning a separate result while storing a new value
|
|
746
746
|
* @see {@link updateSomeEffect} for effectfully applying only some state transitions
|
|
747
747
|
*
|
|
748
|
-
* @category
|
|
748
|
+
* @category mutations
|
|
749
749
|
* @since 2.0.0
|
|
750
750
|
*/
|
|
751
751
|
<A, R, E>(f: (a: A) => Effect.Effect<A, E, R>): (self: SynchronizedRef<A>) => Effect.Effect<void, E, R>;
|
|
@@ -764,7 +764,7 @@ export declare const updateEffect: {
|
|
|
764
764
|
* @see {@link modifyEffect} for returning a separate result while storing a new value
|
|
765
765
|
* @see {@link updateSomeEffect} for effectfully applying only some state transitions
|
|
766
766
|
*
|
|
767
|
-
* @category
|
|
767
|
+
* @category mutations
|
|
768
768
|
* @since 2.0.0
|
|
769
769
|
*/
|
|
770
770
|
<A, R, E>(self: SynchronizedRef<A>, f: (a: A) => Effect.Effect<A, E, R>): Effect.Effect<void, E, R>;
|
|
@@ -780,7 +780,7 @@ export declare const updateEffect: {
|
|
|
780
780
|
* @see {@link update} for updating without returning the new value
|
|
781
781
|
* @see {@link getAndUpdate} for updating while returning the previous value
|
|
782
782
|
*
|
|
783
|
-
* @category
|
|
783
|
+
* @category mutations
|
|
784
784
|
* @since 2.0.0
|
|
785
785
|
*/
|
|
786
786
|
export declare const updateAndGet: {
|
|
@@ -795,7 +795,7 @@ export declare const updateAndGet: {
|
|
|
795
795
|
* @see {@link update} for updating without returning the new value
|
|
796
796
|
* @see {@link getAndUpdate} for updating while returning the previous value
|
|
797
797
|
*
|
|
798
|
-
* @category
|
|
798
|
+
* @category mutations
|
|
799
799
|
* @since 2.0.0
|
|
800
800
|
*/
|
|
801
801
|
<A>(f: (a: A) => A): (self: SynchronizedRef<A>) => Effect.Effect<A>;
|
|
@@ -810,7 +810,7 @@ export declare const updateAndGet: {
|
|
|
810
810
|
* @see {@link update} for updating without returning the new value
|
|
811
811
|
* @see {@link getAndUpdate} for updating while returning the previous value
|
|
812
812
|
*
|
|
813
|
-
* @category
|
|
813
|
+
* @category mutations
|
|
814
814
|
* @since 2.0.0
|
|
815
815
|
*/
|
|
816
816
|
<A>(self: SynchronizedRef<A>, f: (a: A) => A): Effect.Effect<A>;
|
|
@@ -826,7 +826,7 @@ export declare const updateAndGet: {
|
|
|
826
826
|
* @see {@link updateEffect} for effectful updates without returning the new value
|
|
827
827
|
* @see {@link updateAndGet} for the pure variant
|
|
828
828
|
*
|
|
829
|
-
* @category
|
|
829
|
+
* @category mutations
|
|
830
830
|
* @since 2.0.0
|
|
831
831
|
*/
|
|
832
832
|
export declare const updateAndGetEffect: {
|
|
@@ -841,7 +841,7 @@ export declare const updateAndGetEffect: {
|
|
|
841
841
|
* @see {@link updateEffect} for effectful updates without returning the new value
|
|
842
842
|
* @see {@link updateAndGet} for the pure variant
|
|
843
843
|
*
|
|
844
|
-
* @category
|
|
844
|
+
* @category mutations
|
|
845
845
|
* @since 2.0.0
|
|
846
846
|
*/
|
|
847
847
|
<A, R, E>(f: (a: A) => Effect.Effect<A, E, R>): (self: SynchronizedRef<A>) => Effect.Effect<A, E, R>;
|
|
@@ -856,7 +856,7 @@ export declare const updateAndGetEffect: {
|
|
|
856
856
|
* @see {@link updateEffect} for effectful updates without returning the new value
|
|
857
857
|
* @see {@link updateAndGet} for the pure variant
|
|
858
858
|
*
|
|
859
|
-
* @category
|
|
859
|
+
* @category mutations
|
|
860
860
|
* @since 2.0.0
|
|
861
861
|
*/
|
|
862
862
|
<A, R, E>(self: SynchronizedRef<A>, f: (a: A) => Effect.Effect<A, E, R>): Effect.Effect<A, E, R>;
|
|
@@ -872,7 +872,7 @@ export declare const updateAndGetEffect: {
|
|
|
872
872
|
* @see {@link update} for always applying a pure update
|
|
873
873
|
* @see {@link updateSomeAndGet} for returning the resulting current value
|
|
874
874
|
*
|
|
875
|
-
* @category
|
|
875
|
+
* @category mutations
|
|
876
876
|
* @since 2.0.0
|
|
877
877
|
*/
|
|
878
878
|
export declare const updateSome: {
|
|
@@ -887,7 +887,7 @@ export declare const updateSome: {
|
|
|
887
887
|
* @see {@link update} for always applying a pure update
|
|
888
888
|
* @see {@link updateSomeAndGet} for returning the resulting current value
|
|
889
889
|
*
|
|
890
|
-
* @category
|
|
890
|
+
* @category mutations
|
|
891
891
|
* @since 2.0.0
|
|
892
892
|
*/
|
|
893
893
|
<A>(f: (a: A) => Option.Option<A>): (self: SynchronizedRef<A>) => Effect.Effect<void>;
|
|
@@ -902,7 +902,7 @@ export declare const updateSome: {
|
|
|
902
902
|
* @see {@link update} for always applying a pure update
|
|
903
903
|
* @see {@link updateSomeAndGet} for returning the resulting current value
|
|
904
904
|
*
|
|
905
|
-
* @category
|
|
905
|
+
* @category mutations
|
|
906
906
|
* @since 2.0.0
|
|
907
907
|
*/
|
|
908
908
|
<A>(self: SynchronizedRef<A>, f: (a: A) => Option.Option<A>): Effect.Effect<void>;
|
|
@@ -918,7 +918,7 @@ export declare const updateSome: {
|
|
|
918
918
|
* @see {@link updateSome} for the pure conditional variant
|
|
919
919
|
* @see {@link updateEffect} for effectful updates that always store a new value
|
|
920
920
|
*
|
|
921
|
-
* @category
|
|
921
|
+
* @category mutations
|
|
922
922
|
* @since 2.0.0
|
|
923
923
|
*/
|
|
924
924
|
export declare const updateSomeEffect: {
|
|
@@ -933,7 +933,7 @@ export declare const updateSomeEffect: {
|
|
|
933
933
|
* @see {@link updateSome} for the pure conditional variant
|
|
934
934
|
* @see {@link updateEffect} for effectful updates that always store a new value
|
|
935
935
|
*
|
|
936
|
-
* @category
|
|
936
|
+
* @category mutations
|
|
937
937
|
* @since 2.0.0
|
|
938
938
|
*/
|
|
939
939
|
<A, R, E>(pf: (a: A) => Effect.Effect<Option.Option<A>, E, R>): (self: SynchronizedRef<A>) => Effect.Effect<void, E, R>;
|
|
@@ -948,7 +948,7 @@ export declare const updateSomeEffect: {
|
|
|
948
948
|
* @see {@link updateSome} for the pure conditional variant
|
|
949
949
|
* @see {@link updateEffect} for effectful updates that always store a new value
|
|
950
950
|
*
|
|
951
|
-
* @category
|
|
951
|
+
* @category mutations
|
|
952
952
|
* @since 2.0.0
|
|
953
953
|
*/
|
|
954
954
|
<A, R, E>(self: SynchronizedRef<A>, pf: (a: A) => Effect.Effect<Option.Option<A>, E, R>): Effect.Effect<void, E, R>;
|
|
@@ -966,7 +966,7 @@ export declare const updateSomeEffect: {
|
|
|
966
966
|
* @see {@link updateSome} for conditional updates without returning a value
|
|
967
967
|
* @see {@link updateAndGet} for always applying a pure update and returning the new value
|
|
968
968
|
*
|
|
969
|
-
* @category
|
|
969
|
+
* @category mutations
|
|
970
970
|
* @since 2.0.0
|
|
971
971
|
*/
|
|
972
972
|
export declare const updateSomeAndGet: {
|
|
@@ -983,7 +983,7 @@ export declare const updateSomeAndGet: {
|
|
|
983
983
|
* @see {@link updateSome} for conditional updates without returning a value
|
|
984
984
|
* @see {@link updateAndGet} for always applying a pure update and returning the new value
|
|
985
985
|
*
|
|
986
|
-
* @category
|
|
986
|
+
* @category mutations
|
|
987
987
|
* @since 2.0.0
|
|
988
988
|
*/
|
|
989
989
|
<A>(pf: (a: A) => Option.Option<A>): (self: SynchronizedRef<A>) => Effect.Effect<A>;
|
|
@@ -1000,7 +1000,7 @@ export declare const updateSomeAndGet: {
|
|
|
1000
1000
|
* @see {@link updateSome} for conditional updates without returning a value
|
|
1001
1001
|
* @see {@link updateAndGet} for always applying a pure update and returning the new value
|
|
1002
1002
|
*
|
|
1003
|
-
* @category
|
|
1003
|
+
* @category mutations
|
|
1004
1004
|
* @since 2.0.0
|
|
1005
1005
|
*/
|
|
1006
1006
|
<A>(self: SynchronizedRef<A>, pf: (a: A) => Option.Option<A>): Effect.Effect<A>;
|
|
@@ -1018,7 +1018,7 @@ export declare const updateSomeAndGet: {
|
|
|
1018
1018
|
* @see {@link updateSomeEffect} for effectful conditional updates without returning a value
|
|
1019
1019
|
* @see {@link updateAndGetEffect} for effectful updates that always store and return a new value
|
|
1020
1020
|
*
|
|
1021
|
-
* @category
|
|
1021
|
+
* @category mutations
|
|
1022
1022
|
* @since 2.0.0
|
|
1023
1023
|
*/
|
|
1024
1024
|
export declare const updateSomeAndGetEffect: {
|
|
@@ -1035,7 +1035,7 @@ export declare const updateSomeAndGetEffect: {
|
|
|
1035
1035
|
* @see {@link updateSomeEffect} for effectful conditional updates without returning a value
|
|
1036
1036
|
* @see {@link updateAndGetEffect} for effectful updates that always store and return a new value
|
|
1037
1037
|
*
|
|
1038
|
-
* @category
|
|
1038
|
+
* @category mutations
|
|
1039
1039
|
* @since 2.0.0
|
|
1040
1040
|
*/
|
|
1041
1041
|
<A, R, E>(pf: (a: A) => Effect.Effect<Option.Option<A>, E, R>): (self: SynchronizedRef<A>) => Effect.Effect<A, E, R>;
|
|
@@ -1052,7 +1052,7 @@ export declare const updateSomeAndGetEffect: {
|
|
|
1052
1052
|
* @see {@link updateSomeEffect} for effectful conditional updates without returning a value
|
|
1053
1053
|
* @see {@link updateAndGetEffect} for effectful updates that always store and return a new value
|
|
1054
1054
|
*
|
|
1055
|
-
* @category
|
|
1055
|
+
* @category mutations
|
|
1056
1056
|
* @since 2.0.0
|
|
1057
1057
|
*/
|
|
1058
1058
|
<A, R, E>(self: SynchronizedRef<A>, pf: (a: A) => Effect.Effect<Option.Option<A>, E, R>): Effect.Effect<A, E, R>;
|