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/src/String.ts
CHANGED
|
@@ -206,7 +206,7 @@ export type Concat<A extends string, B extends string> = `${A}${B}`
|
|
|
206
206
|
* console.log(result2) // "helloworld"
|
|
207
207
|
* ```
|
|
208
208
|
*
|
|
209
|
-
* @category
|
|
209
|
+
* @category combining
|
|
210
210
|
* @since 2.0.0
|
|
211
211
|
*/
|
|
212
212
|
export const concat: {
|
|
@@ -225,7 +225,7 @@ export const concat: {
|
|
|
225
225
|
* console.log(result2) // "helloworld"
|
|
226
226
|
* ```
|
|
227
227
|
*
|
|
228
|
-
* @category
|
|
228
|
+
* @category combining
|
|
229
229
|
* @since 2.0.0
|
|
230
230
|
*/
|
|
231
231
|
<B extends string>(that: B): <A extends string>(self: A) => Concat<A, B>
|
|
@@ -244,7 +244,7 @@ export const concat: {
|
|
|
244
244
|
* console.log(result2) // "helloworld"
|
|
245
245
|
* ```
|
|
246
246
|
*
|
|
247
|
-
* @category
|
|
247
|
+
* @category combining
|
|
248
248
|
* @since 2.0.0
|
|
249
249
|
*/
|
|
250
250
|
<A extends string, B extends string>(self: A, that: B): Concat<A, B>
|
|
@@ -525,7 +525,7 @@ export const isNonEmpty = (self: string): boolean => self.length > 0
|
|
|
525
525
|
* assert.deepStrictEqual(String.length("abc"), 3)
|
|
526
526
|
* ```
|
|
527
527
|
*
|
|
528
|
-
* @category
|
|
528
|
+
* @category getters
|
|
529
529
|
* @since 2.0.0
|
|
530
530
|
*/
|
|
531
531
|
export const length = (self: string): number => self.length
|
|
@@ -1877,7 +1877,7 @@ export const snakeCase: (self: string) => string = noCase({
|
|
|
1877
1877
|
*
|
|
1878
1878
|
* @see {@link concat} for concatenating two strings directly
|
|
1879
1879
|
*
|
|
1880
|
-
* @category
|
|
1880
|
+
* @category combining
|
|
1881
1881
|
* @since 4.0.0
|
|
1882
1882
|
*/
|
|
1883
1883
|
export const ReducerConcat: Reducer.Reducer<string> = Reducer.make((a, b) => a + b, "")
|
package/src/Struct.ts
CHANGED
|
@@ -106,7 +106,7 @@ import * as Reducer from "./Reducer.ts"
|
|
|
106
106
|
*
|
|
107
107
|
* @see {@link Mutable} – also flattens but removes `readonly`
|
|
108
108
|
* @see {@link Assign} – merges two types with right-side precedence
|
|
109
|
-
* @category
|
|
109
|
+
* @category utility types
|
|
110
110
|
* @since 4.0.0
|
|
111
111
|
*/
|
|
112
112
|
export type Simplify<T> = { [K in keyof T]: T[K] } & {}
|
|
@@ -134,7 +134,7 @@ export type Simplify<T> = { [K in keyof T]: T[K] } & {}
|
|
|
134
134
|
* ```
|
|
135
135
|
*
|
|
136
136
|
* @see {@link Simplify} – flattens intersections without removing `readonly`
|
|
137
|
-
* @category
|
|
137
|
+
* @category utility types
|
|
138
138
|
* @since 4.0.0
|
|
139
139
|
*/
|
|
140
140
|
export type Mutable<T> = { -readonly [K in keyof T]: T[K] } & {}
|
|
@@ -165,7 +165,7 @@ export type Mutable<T> = { -readonly [K in keyof T]: T[K] } & {}
|
|
|
165
165
|
*
|
|
166
166
|
* @see {@link assign} – the runtime equivalent
|
|
167
167
|
* @see {@link Simplify} – flatten the resulting intersection
|
|
168
|
-
* @category
|
|
168
|
+
* @category utility types
|
|
169
169
|
* @since 4.0.0
|
|
170
170
|
*/
|
|
171
171
|
export type Assign<T, U> = Simplify<keyof T & keyof U extends never ? T & U : Omit<T, keyof T & keyof U> & U>
|
|
@@ -823,7 +823,7 @@ type EntryEvolved<S, E> = {
|
|
|
823
823
|
*
|
|
824
824
|
* @see {@link evolve} – transform values only
|
|
825
825
|
* @see {@link evolveKeys} – transform keys only
|
|
826
|
-
* @category
|
|
826
|
+
* @category transforming
|
|
827
827
|
* @since 4.0.0
|
|
828
828
|
*/
|
|
829
829
|
export const evolveEntries: {
|
|
@@ -857,7 +857,7 @@ export const evolveEntries: {
|
|
|
857
857
|
*
|
|
858
858
|
* @see {@link evolve} – transform values only
|
|
859
859
|
* @see {@link evolveKeys} – transform keys only
|
|
860
|
-
* @category
|
|
860
|
+
* @category transforming
|
|
861
861
|
* @since 4.0.0
|
|
862
862
|
*/
|
|
863
863
|
<S extends object, E extends EntryEvolver<S>>(e: E): (self: S) => EntryEvolved<S, E>
|
|
@@ -891,7 +891,7 @@ export const evolveEntries: {
|
|
|
891
891
|
*
|
|
892
892
|
* @see {@link evolve} – transform values only
|
|
893
893
|
* @see {@link evolveKeys} – transform keys only
|
|
894
|
-
* @category
|
|
894
|
+
* @category transforming
|
|
895
895
|
* @since 4.0.0
|
|
896
896
|
*/
|
|
897
897
|
<S extends object, E extends EntryEvolver<S>>(self: S, e: E): EntryEvolved<S, E>
|
|
@@ -1028,7 +1028,7 @@ export const renameKeys: {
|
|
|
1028
1028
|
* ```
|
|
1029
1029
|
*
|
|
1030
1030
|
* @see {@link makeOrder} – create an `Order` for structs
|
|
1031
|
-
* @category
|
|
1031
|
+
* @category instances
|
|
1032
1032
|
* @since 4.0.0
|
|
1033
1033
|
*/
|
|
1034
1034
|
export const makeEquivalence = Equivalence.Struct
|
|
@@ -1063,7 +1063,7 @@ export const makeEquivalence = Equivalence.Struct
|
|
|
1063
1063
|
* ```
|
|
1064
1064
|
*
|
|
1065
1065
|
* @see {@link makeEquivalence} – create an `Equivalence` for structs
|
|
1066
|
-
* @category
|
|
1066
|
+
* @category ordering
|
|
1067
1067
|
* @since 4.0.0
|
|
1068
1068
|
*/
|
|
1069
1069
|
export const makeOrder = order.Struct
|
package/src/SynchronizedRef.ts
CHANGED
|
@@ -146,7 +146,7 @@ export const get = <A>(self: SynchronizedRef<A>): Effect.Effect<A> => Effect.syn
|
|
|
146
146
|
* @see {@link setAndGet} for setting a value and returning the new value
|
|
147
147
|
* @see {@link getAndUpdate} for deriving the new value from the current value
|
|
148
148
|
*
|
|
149
|
-
* @category
|
|
149
|
+
* @category mutations
|
|
150
150
|
* @since 2.0.0
|
|
151
151
|
*/
|
|
152
152
|
export const getAndSet: {
|
|
@@ -163,7 +163,7 @@ export const getAndSet: {
|
|
|
163
163
|
* @see {@link setAndGet} for setting a value and returning the new value
|
|
164
164
|
* @see {@link getAndUpdate} for deriving the new value from the current value
|
|
165
165
|
*
|
|
166
|
-
* @category
|
|
166
|
+
* @category mutations
|
|
167
167
|
* @since 2.0.0
|
|
168
168
|
*/
|
|
169
169
|
<A>(value: A): (self: SynchronizedRef<A>) => Effect.Effect<A>
|
|
@@ -180,7 +180,7 @@ export const getAndSet: {
|
|
|
180
180
|
* @see {@link setAndGet} for setting a value and returning the new value
|
|
181
181
|
* @see {@link getAndUpdate} for deriving the new value from the current value
|
|
182
182
|
*
|
|
183
|
-
* @category
|
|
183
|
+
* @category mutations
|
|
184
184
|
* @since 2.0.0
|
|
185
185
|
*/
|
|
186
186
|
<A>(self: SynchronizedRef<A>, value: A): Effect.Effect<A>
|
|
@@ -202,7 +202,7 @@ export const getAndSet: {
|
|
|
202
202
|
* @see {@link updateAndGet} for updating and returning the new value
|
|
203
203
|
* @see {@link getAndUpdateEffect} for effectful updates that return the previous value
|
|
204
204
|
*
|
|
205
|
-
* @category
|
|
205
|
+
* @category mutations
|
|
206
206
|
* @since 2.0.0
|
|
207
207
|
*/
|
|
208
208
|
export const getAndUpdate: {
|
|
@@ -218,7 +218,7 @@ export const getAndUpdate: {
|
|
|
218
218
|
* @see {@link updateAndGet} for updating and returning the new value
|
|
219
219
|
* @see {@link getAndUpdateEffect} for effectful updates that return the previous value
|
|
220
220
|
*
|
|
221
|
-
* @category
|
|
221
|
+
* @category mutations
|
|
222
222
|
* @since 2.0.0
|
|
223
223
|
*/
|
|
224
224
|
<A>(f: (a: A) => A): (self: SynchronizedRef<A>) => Effect.Effect<A>
|
|
@@ -234,7 +234,7 @@ export const getAndUpdate: {
|
|
|
234
234
|
* @see {@link updateAndGet} for updating and returning the new value
|
|
235
235
|
* @see {@link getAndUpdateEffect} for effectful updates that return the previous value
|
|
236
236
|
*
|
|
237
|
-
* @category
|
|
237
|
+
* @category mutations
|
|
238
238
|
* @since 2.0.0
|
|
239
239
|
*/
|
|
240
240
|
<A>(self: SynchronizedRef<A>, f: (a: A) => A): Effect.Effect<A>
|
|
@@ -258,7 +258,7 @@ export const getAndUpdate: {
|
|
|
258
258
|
* @see {@link modifyEffect} for effectful updates with a custom return value
|
|
259
259
|
* @see {@link getAndUpdateSomeEffect} for conditional effectful updates that return the previous value
|
|
260
260
|
*
|
|
261
|
-
* @category
|
|
261
|
+
* @category mutations
|
|
262
262
|
* @since 2.0.0
|
|
263
263
|
*/
|
|
264
264
|
export const getAndUpdateEffect: {
|
|
@@ -276,7 +276,7 @@ export const getAndUpdateEffect: {
|
|
|
276
276
|
* @see {@link modifyEffect} for effectful updates with a custom return value
|
|
277
277
|
* @see {@link getAndUpdateSomeEffect} for conditional effectful updates that return the previous value
|
|
278
278
|
*
|
|
279
|
-
* @category
|
|
279
|
+
* @category mutations
|
|
280
280
|
* @since 2.0.0
|
|
281
281
|
*/
|
|
282
282
|
<A, R, E>(f: (a: A) => Effect.Effect<A, E, R>): (self: SynchronizedRef<A>) => Effect.Effect<A, E, R>
|
|
@@ -294,7 +294,7 @@ export const getAndUpdateEffect: {
|
|
|
294
294
|
* @see {@link modifyEffect} for effectful updates with a custom return value
|
|
295
295
|
* @see {@link getAndUpdateSomeEffect} for conditional effectful updates that return the previous value
|
|
296
296
|
*
|
|
297
|
-
* @category
|
|
297
|
+
* @category mutations
|
|
298
298
|
* @since 2.0.0
|
|
299
299
|
*/
|
|
300
300
|
<A, R, E>(self: SynchronizedRef<A>, f: (a: A) => Effect.Effect<A, E, R>): Effect.Effect<A, E, R>
|
|
@@ -322,7 +322,7 @@ export const getAndUpdateEffect: {
|
|
|
322
322
|
* @see {@link getAndUpdate} for always applying a pure update
|
|
323
323
|
* @see {@link updateSome} for applying a pure conditional update without returning the previous value
|
|
324
324
|
*
|
|
325
|
-
* @category
|
|
325
|
+
* @category mutations
|
|
326
326
|
* @since 2.0.0
|
|
327
327
|
*/
|
|
328
328
|
export const getAndUpdateSome: {
|
|
@@ -338,7 +338,7 @@ export const getAndUpdateSome: {
|
|
|
338
338
|
* @see {@link getAndUpdate} for always applying a pure update
|
|
339
339
|
* @see {@link updateSome} for applying a pure conditional update without returning the previous value
|
|
340
340
|
*
|
|
341
|
-
* @category
|
|
341
|
+
* @category mutations
|
|
342
342
|
* @since 2.0.0
|
|
343
343
|
*/
|
|
344
344
|
<A>(pf: (a: A) => Option.Option<A>): (self: SynchronizedRef<A>) => Effect.Effect<A>
|
|
@@ -354,7 +354,7 @@ export const getAndUpdateSome: {
|
|
|
354
354
|
* @see {@link getAndUpdate} for always applying a pure update
|
|
355
355
|
* @see {@link updateSome} for applying a pure conditional update without returning the previous value
|
|
356
356
|
*
|
|
357
|
-
* @category
|
|
357
|
+
* @category mutations
|
|
358
358
|
* @since 2.0.0
|
|
359
359
|
*/
|
|
360
360
|
<A>(self: SynchronizedRef<A>, pf: (a: A) => Option.Option<A>): Effect.Effect<A>
|
|
@@ -377,7 +377,7 @@ export const getAndUpdateSome: {
|
|
|
377
377
|
* @see {@link getAndUpdateSome} for the pure conditional variant
|
|
378
378
|
* @see {@link updateSomeEffect} for effectful conditional updates without returning the previous value
|
|
379
379
|
*
|
|
380
|
-
* @category
|
|
380
|
+
* @category mutations
|
|
381
381
|
* @since 2.0.0
|
|
382
382
|
*/
|
|
383
383
|
export const getAndUpdateSomeEffect: {
|
|
@@ -394,7 +394,7 @@ export const getAndUpdateSomeEffect: {
|
|
|
394
394
|
* @see {@link getAndUpdateSome} for the pure conditional variant
|
|
395
395
|
* @see {@link updateSomeEffect} for effectful conditional updates without returning the previous value
|
|
396
396
|
*
|
|
397
|
-
* @category
|
|
397
|
+
* @category mutations
|
|
398
398
|
* @since 2.0.0
|
|
399
399
|
*/
|
|
400
400
|
<A, R, E>(pf: (a: A) => Effect.Effect<Option.Option<A>, E, R>): (self: SynchronizedRef<A>) => Effect.Effect<A, E, R>
|
|
@@ -411,7 +411,7 @@ export const getAndUpdateSomeEffect: {
|
|
|
411
411
|
* @see {@link getAndUpdateSome} for the pure conditional variant
|
|
412
412
|
* @see {@link updateSomeEffect} for effectful conditional updates without returning the previous value
|
|
413
413
|
*
|
|
414
|
-
* @category
|
|
414
|
+
* @category mutations
|
|
415
415
|
* @since 2.0.0
|
|
416
416
|
*/
|
|
417
417
|
<A, R, E>(
|
|
@@ -446,7 +446,7 @@ export const getAndUpdateSomeEffect: {
|
|
|
446
446
|
* @see {@link modifySome} for deriving a result and optionally updating the stored value
|
|
447
447
|
* @see {@link updateAndGet} for returning the new stored value instead of a separate result
|
|
448
448
|
*
|
|
449
|
-
* @category
|
|
449
|
+
* @category mutations
|
|
450
450
|
* @since 2.0.0
|
|
451
451
|
*/
|
|
452
452
|
export const modify: {
|
|
@@ -463,7 +463,7 @@ export const modify: {
|
|
|
463
463
|
* @see {@link modifySome} for deriving a result and optionally updating the stored value
|
|
464
464
|
* @see {@link updateAndGet} for returning the new stored value instead of a separate result
|
|
465
465
|
*
|
|
466
|
-
* @category
|
|
466
|
+
* @category mutations
|
|
467
467
|
* @since 2.0.0
|
|
468
468
|
*/
|
|
469
469
|
<A, B>(f: (a: A) => readonly [B, A]): (self: SynchronizedRef<A>) => Effect.Effect<B>
|
|
@@ -480,7 +480,7 @@ export const modify: {
|
|
|
480
480
|
* @see {@link modifySome} for deriving a result and optionally updating the stored value
|
|
481
481
|
* @see {@link updateAndGet} for returning the new stored value instead of a separate result
|
|
482
482
|
*
|
|
483
|
-
* @category
|
|
483
|
+
* @category mutations
|
|
484
484
|
* @since 2.0.0
|
|
485
485
|
*/
|
|
486
486
|
<A, B>(self: SynchronizedRef<A>, f: (a: A) => readonly [B, A]): Effect.Effect<B>
|
|
@@ -502,7 +502,7 @@ export const modify: {
|
|
|
502
502
|
* @see {@link modify} for the pure variant
|
|
503
503
|
* @see {@link updateEffect} for effectfully storing a new value without a separate result
|
|
504
504
|
*
|
|
505
|
-
* @category
|
|
505
|
+
* @category mutations
|
|
506
506
|
* @since 2.0.0
|
|
507
507
|
*/
|
|
508
508
|
export const modifyEffect: {
|
|
@@ -518,7 +518,7 @@ export const modifyEffect: {
|
|
|
518
518
|
* @see {@link modify} for the pure variant
|
|
519
519
|
* @see {@link updateEffect} for effectfully storing a new value without a separate result
|
|
520
520
|
*
|
|
521
|
-
* @category
|
|
521
|
+
* @category mutations
|
|
522
522
|
* @since 2.0.0
|
|
523
523
|
*/
|
|
524
524
|
<A, B, E, R>(f: (a: A) => Effect.Effect<readonly [B, A], E, R>): (self: SynchronizedRef<A>) => Effect.Effect<B, E, R>
|
|
@@ -534,7 +534,7 @@ export const modifyEffect: {
|
|
|
534
534
|
* @see {@link modify} for the pure variant
|
|
535
535
|
* @see {@link updateEffect} for effectfully storing a new value without a separate result
|
|
536
536
|
*
|
|
537
|
-
* @category
|
|
537
|
+
* @category mutations
|
|
538
538
|
* @since 2.0.0
|
|
539
539
|
*/
|
|
540
540
|
<A, B, E, R>(
|
|
@@ -564,7 +564,7 @@ export const modifyEffect: {
|
|
|
564
564
|
* @see {@link modify} for always storing a new value
|
|
565
565
|
* @see {@link updateSome} for optional updates without a separate return value
|
|
566
566
|
*
|
|
567
|
-
* @category
|
|
567
|
+
* @category mutations
|
|
568
568
|
* @since 2.0.0
|
|
569
569
|
*/
|
|
570
570
|
export const modifySome: {
|
|
@@ -579,7 +579,7 @@ export const modifySome: {
|
|
|
579
579
|
* @see {@link modify} for always storing a new value
|
|
580
580
|
* @see {@link updateSome} for optional updates without a separate return value
|
|
581
581
|
*
|
|
582
|
-
* @category
|
|
582
|
+
* @category mutations
|
|
583
583
|
* @since 2.0.0
|
|
584
584
|
*/
|
|
585
585
|
<B, A>(pf: (a: A) => readonly [B, Option.Option<A>]): (self: SynchronizedRef<A>) => Effect.Effect<B>
|
|
@@ -594,7 +594,7 @@ export const modifySome: {
|
|
|
594
594
|
* @see {@link modify} for always storing a new value
|
|
595
595
|
* @see {@link updateSome} for optional updates without a separate return value
|
|
596
596
|
*
|
|
597
|
-
* @category
|
|
597
|
+
* @category mutations
|
|
598
598
|
* @since 2.0.0
|
|
599
599
|
*/
|
|
600
600
|
<A, B>(self: SynchronizedRef<A>, pf: (a: A) => readonly [B, Option.Option<A>]): Effect.Effect<B>
|
|
@@ -619,7 +619,7 @@ export const modifySome: {
|
|
|
619
619
|
* @see {@link modifySome} for the pure variant
|
|
620
620
|
* @see {@link updateSomeEffect} for effectful optional updates without a separate return value
|
|
621
621
|
*
|
|
622
|
-
* @category
|
|
622
|
+
* @category mutations
|
|
623
623
|
* @since 2.0.0
|
|
624
624
|
*/
|
|
625
625
|
export const modifySomeEffect: {
|
|
@@ -636,7 +636,7 @@ export const modifySomeEffect: {
|
|
|
636
636
|
* @see {@link modifySome} for the pure variant
|
|
637
637
|
* @see {@link updateSomeEffect} for effectful optional updates without a separate return value
|
|
638
638
|
*
|
|
639
|
-
* @category
|
|
639
|
+
* @category mutations
|
|
640
640
|
* @since 2.0.0
|
|
641
641
|
*/
|
|
642
642
|
<A, B, R, E>(
|
|
@@ -656,7 +656,7 @@ export const modifySomeEffect: {
|
|
|
656
656
|
* @see {@link modifySome} for the pure variant
|
|
657
657
|
* @see {@link updateSomeEffect} for effectful optional updates without a separate return value
|
|
658
658
|
*
|
|
659
|
-
* @category
|
|
659
|
+
* @category mutations
|
|
660
660
|
* @since 2.0.0
|
|
661
661
|
*/
|
|
662
662
|
<A, B, R, E>(
|
|
@@ -693,7 +693,7 @@ export const modifySomeEffect: {
|
|
|
693
693
|
* @see {@link setAndGet} for replacing the value when the new value should be returned
|
|
694
694
|
* @see {@link update} for deriving the next value from the current value
|
|
695
695
|
*
|
|
696
|
-
* @category
|
|
696
|
+
* @category mutations
|
|
697
697
|
* @since 2.0.0
|
|
698
698
|
*/
|
|
699
699
|
export const set: {
|
|
@@ -709,7 +709,7 @@ export const set: {
|
|
|
709
709
|
* @see {@link setAndGet} for replacing the value when the new value should be returned
|
|
710
710
|
* @see {@link update} for deriving the next value from the current value
|
|
711
711
|
*
|
|
712
|
-
* @category
|
|
712
|
+
* @category mutations
|
|
713
713
|
* @since 2.0.0
|
|
714
714
|
*/
|
|
715
715
|
<A>(value: A): (self: SynchronizedRef<A>) => Effect.Effect<void>
|
|
@@ -725,7 +725,7 @@ export const set: {
|
|
|
725
725
|
* @see {@link setAndGet} for replacing the value when the new value should be returned
|
|
726
726
|
* @see {@link update} for deriving the next value from the current value
|
|
727
727
|
*
|
|
728
|
-
* @category
|
|
728
|
+
* @category mutations
|
|
729
729
|
* @since 2.0.0
|
|
730
730
|
*/
|
|
731
731
|
<A>(self: SynchronizedRef<A>, value: A): Effect.Effect<void>
|
|
@@ -746,7 +746,7 @@ export const set: {
|
|
|
746
746
|
* @see {@link set} for setting without returning a value
|
|
747
747
|
* @see {@link getAndSet} for setting while returning the previous value
|
|
748
748
|
*
|
|
749
|
-
* @category
|
|
749
|
+
* @category mutations
|
|
750
750
|
* @since 2.0.0
|
|
751
751
|
*/
|
|
752
752
|
export const setAndGet: {
|
|
@@ -761,7 +761,7 @@ export const setAndGet: {
|
|
|
761
761
|
* @see {@link set} for setting without returning a value
|
|
762
762
|
* @see {@link getAndSet} for setting while returning the previous value
|
|
763
763
|
*
|
|
764
|
-
* @category
|
|
764
|
+
* @category mutations
|
|
765
765
|
* @since 2.0.0
|
|
766
766
|
*/
|
|
767
767
|
<A>(value: A): (self: SynchronizedRef<A>) => Effect.Effect<A>
|
|
@@ -776,7 +776,7 @@ export const setAndGet: {
|
|
|
776
776
|
* @see {@link set} for setting without returning a value
|
|
777
777
|
* @see {@link getAndSet} for setting while returning the previous value
|
|
778
778
|
*
|
|
779
|
-
* @category
|
|
779
|
+
* @category mutations
|
|
780
780
|
* @since 2.0.0
|
|
781
781
|
*/
|
|
782
782
|
<A>(self: SynchronizedRef<A>, value: A): Effect.Effect<A>
|
|
@@ -799,7 +799,7 @@ export const setAndGet: {
|
|
|
799
799
|
* @see {@link updateAndGet} for returning the new stored value
|
|
800
800
|
* @see {@link getAndUpdate} for returning the previous stored value
|
|
801
801
|
*
|
|
802
|
-
* @category
|
|
802
|
+
* @category mutations
|
|
803
803
|
* @since 2.0.0
|
|
804
804
|
*/
|
|
805
805
|
export const update: {
|
|
@@ -816,7 +816,7 @@ export const update: {
|
|
|
816
816
|
* @see {@link updateAndGet} for returning the new stored value
|
|
817
817
|
* @see {@link getAndUpdate} for returning the previous stored value
|
|
818
818
|
*
|
|
819
|
-
* @category
|
|
819
|
+
* @category mutations
|
|
820
820
|
* @since 2.0.0
|
|
821
821
|
*/
|
|
822
822
|
<A>(f: (a: A) => A): (self: SynchronizedRef<A>) => Effect.Effect<void>
|
|
@@ -833,7 +833,7 @@ export const update: {
|
|
|
833
833
|
* @see {@link updateAndGet} for returning the new stored value
|
|
834
834
|
* @see {@link getAndUpdate} for returning the previous stored value
|
|
835
835
|
*
|
|
836
|
-
* @category
|
|
836
|
+
* @category mutations
|
|
837
837
|
* @since 2.0.0
|
|
838
838
|
*/
|
|
839
839
|
<A>(self: SynchronizedRef<A>, f: (a: A) => A): Effect.Effect<void>
|
|
@@ -858,7 +858,7 @@ export const update: {
|
|
|
858
858
|
* @see {@link modifyEffect} for returning a separate result while storing a new value
|
|
859
859
|
* @see {@link updateSomeEffect} for effectfully applying only some state transitions
|
|
860
860
|
*
|
|
861
|
-
* @category
|
|
861
|
+
* @category mutations
|
|
862
862
|
* @since 2.0.0
|
|
863
863
|
*/
|
|
864
864
|
export const updateEffect: {
|
|
@@ -877,7 +877,7 @@ export const updateEffect: {
|
|
|
877
877
|
* @see {@link modifyEffect} for returning a separate result while storing a new value
|
|
878
878
|
* @see {@link updateSomeEffect} for effectfully applying only some state transitions
|
|
879
879
|
*
|
|
880
|
-
* @category
|
|
880
|
+
* @category mutations
|
|
881
881
|
* @since 2.0.0
|
|
882
882
|
*/
|
|
883
883
|
<A, R, E>(f: (a: A) => Effect.Effect<A, E, R>): (self: SynchronizedRef<A>) => Effect.Effect<void, E, R>
|
|
@@ -896,7 +896,7 @@ export const updateEffect: {
|
|
|
896
896
|
* @see {@link modifyEffect} for returning a separate result while storing a new value
|
|
897
897
|
* @see {@link updateSomeEffect} for effectfully applying only some state transitions
|
|
898
898
|
*
|
|
899
|
-
* @category
|
|
899
|
+
* @category mutations
|
|
900
900
|
* @since 2.0.0
|
|
901
901
|
*/
|
|
902
902
|
<A, R, E>(self: SynchronizedRef<A>, f: (a: A) => Effect.Effect<A, E, R>): Effect.Effect<void, E, R>
|
|
@@ -922,7 +922,7 @@ export const updateEffect: {
|
|
|
922
922
|
* @see {@link update} for updating without returning the new value
|
|
923
923
|
* @see {@link getAndUpdate} for updating while returning the previous value
|
|
924
924
|
*
|
|
925
|
-
* @category
|
|
925
|
+
* @category mutations
|
|
926
926
|
* @since 2.0.0
|
|
927
927
|
*/
|
|
928
928
|
export const updateAndGet: {
|
|
@@ -937,7 +937,7 @@ export const updateAndGet: {
|
|
|
937
937
|
* @see {@link update} for updating without returning the new value
|
|
938
938
|
* @see {@link getAndUpdate} for updating while returning the previous value
|
|
939
939
|
*
|
|
940
|
-
* @category
|
|
940
|
+
* @category mutations
|
|
941
941
|
* @since 2.0.0
|
|
942
942
|
*/
|
|
943
943
|
<A>(f: (a: A) => A): (self: SynchronizedRef<A>) => Effect.Effect<A>
|
|
@@ -952,7 +952,7 @@ export const updateAndGet: {
|
|
|
952
952
|
* @see {@link update} for updating without returning the new value
|
|
953
953
|
* @see {@link getAndUpdate} for updating while returning the previous value
|
|
954
954
|
*
|
|
955
|
-
* @category
|
|
955
|
+
* @category mutations
|
|
956
956
|
* @since 2.0.0
|
|
957
957
|
*/
|
|
958
958
|
<A>(self: SynchronizedRef<A>, f: (a: A) => A): Effect.Effect<A>
|
|
@@ -973,7 +973,7 @@ export const updateAndGet: {
|
|
|
973
973
|
* @see {@link updateEffect} for effectful updates without returning the new value
|
|
974
974
|
* @see {@link updateAndGet} for the pure variant
|
|
975
975
|
*
|
|
976
|
-
* @category
|
|
976
|
+
* @category mutations
|
|
977
977
|
* @since 2.0.0
|
|
978
978
|
*/
|
|
979
979
|
export const updateAndGetEffect: {
|
|
@@ -988,7 +988,7 @@ export const updateAndGetEffect: {
|
|
|
988
988
|
* @see {@link updateEffect} for effectful updates without returning the new value
|
|
989
989
|
* @see {@link updateAndGet} for the pure variant
|
|
990
990
|
*
|
|
991
|
-
* @category
|
|
991
|
+
* @category mutations
|
|
992
992
|
* @since 2.0.0
|
|
993
993
|
*/
|
|
994
994
|
<A, R, E>(f: (a: A) => Effect.Effect<A, E, R>): (self: SynchronizedRef<A>) => Effect.Effect<A, E, R>
|
|
@@ -1003,7 +1003,7 @@ export const updateAndGetEffect: {
|
|
|
1003
1003
|
* @see {@link updateEffect} for effectful updates without returning the new value
|
|
1004
1004
|
* @see {@link updateAndGet} for the pure variant
|
|
1005
1005
|
*
|
|
1006
|
-
* @category
|
|
1006
|
+
* @category mutations
|
|
1007
1007
|
* @since 2.0.0
|
|
1008
1008
|
*/
|
|
1009
1009
|
<A, R, E>(self: SynchronizedRef<A>, f: (a: A) => Effect.Effect<A, E, R>): Effect.Effect<A, E, R>
|
|
@@ -1030,7 +1030,7 @@ export const updateAndGetEffect: {
|
|
|
1030
1030
|
* @see {@link update} for always applying a pure update
|
|
1031
1031
|
* @see {@link updateSomeAndGet} for returning the resulting current value
|
|
1032
1032
|
*
|
|
1033
|
-
* @category
|
|
1033
|
+
* @category mutations
|
|
1034
1034
|
* @since 2.0.0
|
|
1035
1035
|
*/
|
|
1036
1036
|
export const updateSome: {
|
|
@@ -1045,7 +1045,7 @@ export const updateSome: {
|
|
|
1045
1045
|
* @see {@link update} for always applying a pure update
|
|
1046
1046
|
* @see {@link updateSomeAndGet} for returning the resulting current value
|
|
1047
1047
|
*
|
|
1048
|
-
* @category
|
|
1048
|
+
* @category mutations
|
|
1049
1049
|
* @since 2.0.0
|
|
1050
1050
|
*/
|
|
1051
1051
|
<A>(f: (a: A) => Option.Option<A>): (self: SynchronizedRef<A>) => Effect.Effect<void>
|
|
@@ -1060,7 +1060,7 @@ export const updateSome: {
|
|
|
1060
1060
|
* @see {@link update} for always applying a pure update
|
|
1061
1061
|
* @see {@link updateSomeAndGet} for returning the resulting current value
|
|
1062
1062
|
*
|
|
1063
|
-
* @category
|
|
1063
|
+
* @category mutations
|
|
1064
1064
|
* @since 2.0.0
|
|
1065
1065
|
*/
|
|
1066
1066
|
<A>(self: SynchronizedRef<A>, f: (a: A) => Option.Option<A>): Effect.Effect<void>
|
|
@@ -1081,7 +1081,7 @@ export const updateSome: {
|
|
|
1081
1081
|
* @see {@link updateSome} for the pure conditional variant
|
|
1082
1082
|
* @see {@link updateEffect} for effectful updates that always store a new value
|
|
1083
1083
|
*
|
|
1084
|
-
* @category
|
|
1084
|
+
* @category mutations
|
|
1085
1085
|
* @since 2.0.0
|
|
1086
1086
|
*/
|
|
1087
1087
|
export const updateSomeEffect: {
|
|
@@ -1096,7 +1096,7 @@ export const updateSomeEffect: {
|
|
|
1096
1096
|
* @see {@link updateSome} for the pure conditional variant
|
|
1097
1097
|
* @see {@link updateEffect} for effectful updates that always store a new value
|
|
1098
1098
|
*
|
|
1099
|
-
* @category
|
|
1099
|
+
* @category mutations
|
|
1100
1100
|
* @since 2.0.0
|
|
1101
1101
|
*/
|
|
1102
1102
|
<A, R, E>(pf: (a: A) => Effect.Effect<Option.Option<A>, E, R>): (self: SynchronizedRef<A>) => Effect.Effect<void, E, R>
|
|
@@ -1111,7 +1111,7 @@ export const updateSomeEffect: {
|
|
|
1111
1111
|
* @see {@link updateSome} for the pure conditional variant
|
|
1112
1112
|
* @see {@link updateEffect} for effectful updates that always store a new value
|
|
1113
1113
|
*
|
|
1114
|
-
* @category
|
|
1114
|
+
* @category mutations
|
|
1115
1115
|
* @since 2.0.0
|
|
1116
1116
|
*/
|
|
1117
1117
|
<A, R, E>(
|
|
@@ -1145,7 +1145,7 @@ export const updateSomeEffect: {
|
|
|
1145
1145
|
* @see {@link updateSome} for conditional updates without returning a value
|
|
1146
1146
|
* @see {@link updateAndGet} for always applying a pure update and returning the new value
|
|
1147
1147
|
*
|
|
1148
|
-
* @category
|
|
1148
|
+
* @category mutations
|
|
1149
1149
|
* @since 2.0.0
|
|
1150
1150
|
*/
|
|
1151
1151
|
export const updateSomeAndGet: {
|
|
@@ -1162,7 +1162,7 @@ export const updateSomeAndGet: {
|
|
|
1162
1162
|
* @see {@link updateSome} for conditional updates without returning a value
|
|
1163
1163
|
* @see {@link updateAndGet} for always applying a pure update and returning the new value
|
|
1164
1164
|
*
|
|
1165
|
-
* @category
|
|
1165
|
+
* @category mutations
|
|
1166
1166
|
* @since 2.0.0
|
|
1167
1167
|
*/
|
|
1168
1168
|
<A>(pf: (a: A) => Option.Option<A>): (self: SynchronizedRef<A>) => Effect.Effect<A>
|
|
@@ -1179,7 +1179,7 @@ export const updateSomeAndGet: {
|
|
|
1179
1179
|
* @see {@link updateSome} for conditional updates without returning a value
|
|
1180
1180
|
* @see {@link updateAndGet} for always applying a pure update and returning the new value
|
|
1181
1181
|
*
|
|
1182
|
-
* @category
|
|
1182
|
+
* @category mutations
|
|
1183
1183
|
* @since 2.0.0
|
|
1184
1184
|
*/
|
|
1185
1185
|
<A>(self: SynchronizedRef<A>, pf: (a: A) => Option.Option<A>): Effect.Effect<A>
|
|
@@ -1202,7 +1202,7 @@ export const updateSomeAndGet: {
|
|
|
1202
1202
|
* @see {@link updateSomeEffect} for effectful conditional updates without returning a value
|
|
1203
1203
|
* @see {@link updateAndGetEffect} for effectful updates that always store and return a new value
|
|
1204
1204
|
*
|
|
1205
|
-
* @category
|
|
1205
|
+
* @category mutations
|
|
1206
1206
|
* @since 2.0.0
|
|
1207
1207
|
*/
|
|
1208
1208
|
export const updateSomeAndGetEffect: {
|
|
@@ -1219,7 +1219,7 @@ export const updateSomeAndGetEffect: {
|
|
|
1219
1219
|
* @see {@link updateSomeEffect} for effectful conditional updates without returning a value
|
|
1220
1220
|
* @see {@link updateAndGetEffect} for effectful updates that always store and return a new value
|
|
1221
1221
|
*
|
|
1222
|
-
* @category
|
|
1222
|
+
* @category mutations
|
|
1223
1223
|
* @since 2.0.0
|
|
1224
1224
|
*/
|
|
1225
1225
|
<A, R, E>(pf: (a: A) => Effect.Effect<Option.Option<A>, E, R>): (self: SynchronizedRef<A>) => Effect.Effect<A, E, R>
|
|
@@ -1236,7 +1236,7 @@ export const updateSomeAndGetEffect: {
|
|
|
1236
1236
|
* @see {@link updateSomeEffect} for effectful conditional updates without returning a value
|
|
1237
1237
|
* @see {@link updateAndGetEffect} for effectful updates that always store and return a new value
|
|
1238
1238
|
*
|
|
1239
|
-
* @category
|
|
1239
|
+
* @category mutations
|
|
1240
1240
|
* @since 2.0.0
|
|
1241
1241
|
*/
|
|
1242
1242
|
<A, R, E>(
|
package/src/Terminal.ts
CHANGED
|
@@ -181,7 +181,7 @@ export const isQuitError = (u: unknown): u is QuitError => Predicate.hasProperty
|
|
|
181
181
|
* Use to access or provide platform terminal capabilities such as reading
|
|
182
182
|
* input, writing output, and inspecting terminal dimensions.
|
|
183
183
|
*
|
|
184
|
-
* @category
|
|
184
|
+
* @category services
|
|
185
185
|
* @since 4.0.0
|
|
186
186
|
*/
|
|
187
187
|
export const Terminal: Context.Service<Terminal, Terminal> = Context.Service("effect/platform/Terminal")
|
package/src/Tracer.ts
CHANGED
|
@@ -171,7 +171,7 @@ export type AnySpan = Span | ExternalSpan
|
|
|
171
171
|
* console.log(Tracer.ParentSpanKey) // "effect/Tracer/ParentSpan"
|
|
172
172
|
* ```
|
|
173
173
|
*
|
|
174
|
-
* @category
|
|
174
|
+
* @category constants
|
|
175
175
|
* @since 4.0.0
|
|
176
176
|
*/
|
|
177
177
|
export const ParentSpanKey = "effect/Tracer/ParentSpan"
|
|
@@ -192,7 +192,7 @@ export const ParentSpanKey = "effect/Tracer/ParentSpan"
|
|
|
192
192
|
* })
|
|
193
193
|
* ```
|
|
194
194
|
*
|
|
195
|
-
* @category
|
|
195
|
+
* @category services
|
|
196
196
|
* @since 2.0.0
|
|
197
197
|
*/
|
|
198
198
|
export class ParentSpan extends Context.Service<ParentSpan, AnySpan>()(ParentSpanKey) {}
|
|
@@ -255,7 +255,7 @@ export interface ExternalSpan {
|
|
|
255
255
|
* )
|
|
256
256
|
* ```
|
|
257
257
|
*
|
|
258
|
-
* @category
|
|
258
|
+
* @category options
|
|
259
259
|
* @since 3.1.0
|
|
260
260
|
*/
|
|
261
261
|
export interface SpanOptions extends SpanOptionsNoTrace, TraceOptions {}
|
|
@@ -265,7 +265,7 @@ export interface SpanOptions extends SpanOptionsNoTrace, TraceOptions {}
|
|
|
265
265
|
* attributes, links, parent or root selection, annotations, span kind,
|
|
266
266
|
* sampling, and the trace level used for filtering.
|
|
267
267
|
*
|
|
268
|
-
* @category
|
|
268
|
+
* @category options
|
|
269
269
|
* @since 4.0.0
|
|
270
270
|
*/
|
|
271
271
|
export interface SpanOptionsNoTrace {
|
|
@@ -283,7 +283,7 @@ export interface SpanOptionsNoTrace {
|
|
|
283
283
|
* Options that control stack trace capture for tracing wrappers.
|
|
284
284
|
* `captureStackTrace` can disable capture or provide a lazy stack string.
|
|
285
285
|
*
|
|
286
|
-
* @category
|
|
286
|
+
* @category options
|
|
287
287
|
* @since 4.0.0
|
|
288
288
|
*/
|
|
289
289
|
export interface TraceOptions {
|