effect 4.0.0-beta.64 → 4.0.0-beta.66
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/Cause.d.ts +4 -4
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Config.d.ts +1 -2
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +7 -6
- package/dist/Config.js.map +1 -1
- package/dist/Context.d.ts +3 -4
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +10 -8
- package/dist/Context.js.map +1 -1
- package/dist/DateTime.d.ts +1 -1
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +2 -2
- package/dist/DateTime.js.map +1 -1
- package/dist/Effect.d.ts +337 -412
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +5 -32
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +1 -1
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +1 -1
- package/dist/Effectable.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +2 -3
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +1 -1
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/FiberHandle.d.ts +2 -2
- package/dist/FiberHandle.js +2 -2
- package/dist/FiberMap.d.ts +2 -2
- package/dist/FiberMap.js +2 -2
- package/dist/FiberSet.d.ts +1 -1
- package/dist/FiberSet.js +1 -1
- package/dist/Layer.js +1 -1
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +3 -3
- package/dist/LayerMap.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +1 -1
- package/dist/ManagedRuntime.js +1 -1
- package/dist/Option.d.ts +11 -7
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +74 -0
- package/dist/Option.js.map +1 -1
- package/dist/Result.d.ts +11 -3
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js.map +1 -1
- package/dist/Schedule.js +1 -1
- package/dist/Schedule.js.map +1 -1
- package/dist/Schema.d.ts +12 -12
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +6 -4
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaGetter.js +2 -2
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +2 -2
- package/dist/Stream.d.ts +3 -3
- package/dist/Stream.js +1 -1
- package/dist/TxRef.js +1 -1
- package/dist/TxRef.js.map +1 -1
- package/dist/internal/concurrency.js +2 -2
- package/dist/internal/concurrency.js.map +1 -1
- package/dist/internal/core.js +8 -20
- package/dist/internal/core.js.map +1 -1
- package/dist/internal/effect.js +20 -19
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/executionPlan.js +2 -2
- package/dist/internal/executionPlan.js.map +1 -1
- package/dist/internal/option.js +5 -8
- package/dist/internal/option.js.map +1 -1
- package/dist/internal/result.js +5 -8
- package/dist/internal/result.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +5 -5
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +1 -1
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpServer.js +2 -2
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +5 -1
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +4 -4
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +1 -3
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +28 -31
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +25 -5
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +1 -1
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +1 -2
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +8 -10
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/internal/command.d.ts +2 -6
- package/dist/unstable/cli/internal/command.d.ts.map +1 -1
- package/dist/unstable/cli/internal/command.js +7 -9
- package/dist/unstable/cli/internal/command.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/Entity.js +3 -3
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +1 -1
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.js +1 -1
- package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +4 -4
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +2 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/http/HttpBody.js +2 -2
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.js +1 -1
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +2 -2
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/unstable/http/HttpMiddleware.js +18 -21
- package/dist/unstable/http/HttpMiddleware.js.map +1 -1
- package/dist/unstable/http/HttpPlatform.js +1 -1
- package/dist/unstable/http/HttpPlatform.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +4 -4
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.js +1 -1
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +11 -11
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +5 -5
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/Multipart.js +1 -1
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +3 -3
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +2 -0
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +2 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts +3 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +2 -2
- package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +1 -1
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +2 -45
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js +51 -7
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +4 -4
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.js +1 -1
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +1 -1
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/rpc/RpcWorker.js +1 -1
- package/dist/unstable/rpc/RpcWorker.js.map +1 -1
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +1 -1
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/sql/Migrator.d.ts.map +1 -1
- package/dist/unstable/sql/Migrator.js +3 -2
- package/dist/unstable/sql/Migrator.js.map +1 -1
- package/dist/unstable/sql/SqlError.d.ts +23 -3
- package/dist/unstable/sql/SqlError.d.ts.map +1 -1
- package/dist/unstable/sql/SqlError.js +62 -2
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/workflow/Activity.js +1 -1
- package/dist/unstable/workflow/Activity.js.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts +122 -0
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -0
- package/dist/unstable/workflow/DurableQueue.js +182 -0
- package/dist/unstable/workflow/DurableQueue.js.map +1 -0
- package/dist/unstable/workflow/Workflow.js +1 -1
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/index.d.ts +4 -0
- package/dist/unstable/workflow/index.d.ts.map +1 -1
- package/dist/unstable/workflow/index.js +4 -0
- package/dist/unstable/workflow/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Cause.ts +4 -4
- package/src/Config.ts +8 -8
- package/src/Context.ts +13 -14
- package/src/DateTime.ts +2 -2
- package/src/Effect.ts +340 -431
- package/src/Effectable.ts +2 -2
- package/src/ExecutionPlan.ts +3 -4
- package/src/FiberHandle.ts +2 -2
- package/src/FiberMap.ts +2 -2
- package/src/FiberSet.ts +1 -1
- package/src/Layer.ts +1 -1
- package/src/LayerMap.ts +3 -4
- package/src/ManagedRuntime.ts +1 -1
- package/src/Option.ts +14 -7
- package/src/Result.ts +14 -3
- package/src/Schedule.ts +1 -1
- package/src/Schema.ts +26 -24
- package/src/SchemaGetter.ts +3 -3
- package/src/Stream.ts +4 -4
- package/src/TxRef.ts +1 -1
- package/src/internal/concurrency.ts +2 -2
- package/src/internal/core.ts +12 -23
- package/src/internal/effect.ts +25 -29
- package/src/internal/executionPlan.ts +2 -2
- package/src/internal/option.ts +5 -8
- package/src/internal/result.ts +5 -8
- package/src/unstable/ai/LanguageModel.ts +12 -19
- package/src/unstable/ai/McpServer.ts +2 -2
- package/src/unstable/ai/Model.ts +15 -12
- package/src/unstable/ai/Toolkit.ts +30 -38
- package/src/unstable/cli/Command.ts +32 -13
- package/src/unstable/cli/GlobalFlag.ts +1 -1
- package/src/unstable/cli/Param.ts +1 -1
- package/src/unstable/cli/Prompt.ts +9 -13
- package/src/unstable/cli/internal/command.ts +12 -14
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +1 -1
- package/src/unstable/cluster/Entity.ts +3 -3
- package/src/unstable/cluster/MessageStorage.ts +1 -1
- package/src/unstable/cluster/ShardingConfig.ts +1 -1
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +4 -1
- package/src/unstable/http/HttpBody.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 +4 -5
- package/src/unstable/http/HttpPlatform.ts +1 -1
- package/src/unstable/http/HttpRouter.ts +4 -5
- package/src/unstable/http/HttpServer.ts +1 -1
- package/src/unstable/http/HttpServerRequest.ts +11 -11
- package/src/unstable/http/HttpServerResponse.ts +5 -5
- package/src/unstable/http/Multipart.ts +1 -1
- package/src/unstable/httpapi/HttpApiBuilder.ts +4 -4
- package/src/unstable/httpapi/HttpApiClient.ts +1 -1
- package/src/unstable/httpapi/HttpApiMiddleware.ts +2 -1
- package/src/unstable/httpapi/HttpApiTest.ts +5 -2
- package/src/unstable/persistence/RateLimiter.ts +1 -1
- package/src/unstable/process/ChildProcess.ts +11 -14
- package/src/unstable/reactivity/Atom.ts +4 -4
- package/src/unstable/rpc/RpcClient.ts +1 -1
- package/src/unstable/rpc/RpcServer.ts +1 -2
- package/src/unstable/rpc/RpcWorker.ts +2 -2
- package/src/unstable/socket/Socket.ts +1 -1
- package/src/unstable/sql/Migrator.ts +5 -2
- package/src/unstable/sql/SqlError.ts +72 -1
- package/src/unstable/workflow/Activity.ts +1 -1
- package/src/unstable/workflow/DurableQueue.ts +343 -0
- package/src/unstable/workflow/Workflow.ts +1 -1
- package/src/unstable/workflow/index.ts +5 -0
package/package.json
CHANGED
package/src/Cause.ts
CHANGED
|
@@ -1161,7 +1161,7 @@ export const pretty: <E>(cause: Cause<E>) => string = effect.causePretty
|
|
|
1161
1161
|
/**
|
|
1162
1162
|
* Base interface for error classes that can be yielded directly inside
|
|
1163
1163
|
* `Effect.gen` (via `Symbol.iterator`) or converted to a failing Effect
|
|
1164
|
-
* via
|
|
1164
|
+
* via ``.
|
|
1165
1165
|
*
|
|
1166
1166
|
* All built-in error classes in this module ({@link NoSuchElementError},
|
|
1167
1167
|
* {@link TimeoutError}, {@link IllegalArgumentError},
|
|
@@ -1183,9 +1183,9 @@ export const pretty: <E>(cause: Cause<E>) => string = effect.causePretty
|
|
|
1183
1183
|
* @since 2.0.0
|
|
1184
1184
|
* @category errors
|
|
1185
1185
|
*/
|
|
1186
|
-
export interface YieldableError extends Error, Pipeable {
|
|
1187
|
-
[
|
|
1188
|
-
|
|
1186
|
+
export interface YieldableError extends Error, Pipeable, Inspectable {
|
|
1187
|
+
readonly [Effect.TypeId]: Effect.Variance<never, this, never>
|
|
1188
|
+
[Symbol.iterator](): Effect.EffectIterator<Effect.Effect<never, this, never>>
|
|
1189
1189
|
}
|
|
1190
1190
|
|
|
1191
1191
|
/**
|
package/src/Config.ts
CHANGED
|
@@ -74,11 +74,10 @@
|
|
|
74
74
|
import type { Path, SourceError } from "./ConfigProvider.ts"
|
|
75
75
|
import * as ConfigProvider from "./ConfigProvider.ts"
|
|
76
76
|
import * as Effect from "./Effect.ts"
|
|
77
|
+
import * as Effectable from "./Effectable.ts"
|
|
77
78
|
import { dual } from "./Function.ts"
|
|
78
|
-
import { PipeInspectableProto, YieldableProto } from "./internal/core.ts"
|
|
79
79
|
import * as LogLevel_ from "./LogLevel.ts"
|
|
80
80
|
import * as Option from "./Option.ts"
|
|
81
|
-
import type { Pipeable } from "./Pipeable.ts"
|
|
82
81
|
import * as Predicate from "./Predicate.ts"
|
|
83
82
|
import * as Rec from "./Record.ts"
|
|
84
83
|
import * as Schema from "./Schema.ts"
|
|
@@ -159,18 +158,19 @@ export class ConfigError {
|
|
|
159
158
|
*
|
|
160
159
|
* @since 4.0.0
|
|
161
160
|
*/
|
|
162
|
-
export interface Config<out T> extends
|
|
161
|
+
export interface Config<out T> extends Effect.Effect<T, ConfigError> {
|
|
163
162
|
readonly [TypeId]: typeof TypeId
|
|
164
163
|
readonly parse: (provider: ConfigProvider.ConfigProvider) => Effect.Effect<T, ConfigError>
|
|
165
164
|
}
|
|
166
165
|
|
|
167
166
|
const Proto = {
|
|
168
|
-
...
|
|
169
|
-
|
|
167
|
+
...Effectable.Prototype<Config<any>>({
|
|
168
|
+
label: "Config",
|
|
169
|
+
evaluate(fiber) {
|
|
170
|
+
return this.parse(fiber.getRef(ConfigProvider.ConfigProvider))
|
|
171
|
+
}
|
|
172
|
+
}),
|
|
170
173
|
[TypeId]: TypeId,
|
|
171
|
-
asEffect(this: Config<unknown>) {
|
|
172
|
-
return Effect.flatMap(ConfigProvider.ConfigProvider.asEffect(), (provider) => this.parse(provider))
|
|
173
|
-
},
|
|
174
174
|
toJSON(this: Config<unknown>) {
|
|
175
175
|
return {
|
|
176
176
|
_id: "Config"
|
package/src/Context.ts
CHANGED
|
@@ -10,12 +10,13 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @since 4.0.0
|
|
12
12
|
*/
|
|
13
|
-
import type { Effect, EffectIterator
|
|
13
|
+
import type { Effect, EffectIterator } from "./Effect.ts"
|
|
14
|
+
import * as Effectable from "./Effectable.ts"
|
|
14
15
|
import * as Equal from "./Equal.ts"
|
|
15
|
-
import {
|
|
16
|
+
import { dual, type LazyArg } from "./Function.ts"
|
|
16
17
|
import * as Hash from "./Hash.ts"
|
|
17
18
|
import type { Inspectable } from "./Inspectable.ts"
|
|
18
|
-
import { exitSucceed, PipeInspectableProto, withFiber
|
|
19
|
+
import { exitSucceed, PipeInspectableProto, withFiber } from "./internal/core.ts"
|
|
19
20
|
import type { ErrorWithStackTraceLimit } from "./internal/tracer.ts"
|
|
20
21
|
import * as Option from "./Option.ts"
|
|
21
22
|
import type { Pipeable } from "./Pipeable.ts"
|
|
@@ -40,13 +41,12 @@ export const ServiceTypeId: ServiceTypeId = "~effect/Context/Service"
|
|
|
40
41
|
* @since 4.0.0
|
|
41
42
|
* @category Models
|
|
42
43
|
*/
|
|
43
|
-
export interface Key<out Identifier, out Shape> extends
|
|
44
|
+
export interface Key<out Identifier, out Shape> extends Effect<Shape, never, Identifier> {
|
|
44
45
|
readonly [ServiceTypeId]: ServiceTypeId
|
|
45
46
|
readonly Service: Shape
|
|
46
47
|
readonly Identifier: Identifier
|
|
47
48
|
readonly key: string
|
|
48
49
|
readonly stack?: string | undefined
|
|
49
|
-
asEffect(): Effect<Shape, never, Identifier>
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
@@ -66,9 +66,7 @@ export interface Key<out Identifier, out Shape> extends Pipeable, Inspectable {
|
|
|
66
66
|
* @since 4.0.0
|
|
67
67
|
* @category Models
|
|
68
68
|
*/
|
|
69
|
-
export interface Service<in out Identifier, in out Shape>
|
|
70
|
-
extends Key<Identifier, Shape>, Yieldable<Service<Identifier, Shape>, Shape, never, Identifier>
|
|
71
|
-
{
|
|
69
|
+
export interface Service<in out Identifier, in out Shape> extends Key<Identifier, Shape> {
|
|
72
70
|
of(this: void, self: Shape): Shape
|
|
73
71
|
context(self: Shape): Context<Identifier>
|
|
74
72
|
use<A, E, R>(f: (service: Shape) => Effect<A, E, R>): Effect<A, E, R | Identifier>
|
|
@@ -244,6 +242,7 @@ export const Service: {
|
|
|
244
242
|
function KeyClass() {}
|
|
245
243
|
const self = KeyClass as any as Types.Mutable<Reference<any>>
|
|
246
244
|
Object.setPrototypeOf(self, ServiceProto)
|
|
245
|
+
// @effect-diagnostics-next-line floatingEffect:off
|
|
247
246
|
Object.defineProperty(self, "stack", {
|
|
248
247
|
get() {
|
|
249
248
|
return err.stack
|
|
@@ -270,8 +269,12 @@ export const Service: {
|
|
|
270
269
|
|
|
271
270
|
const ServiceProto: any = {
|
|
272
271
|
[ServiceTypeId]: ServiceTypeId,
|
|
273
|
-
...
|
|
274
|
-
|
|
272
|
+
...Effectable.Prototype<Service<never, any>>({
|
|
273
|
+
label: "Service",
|
|
274
|
+
evaluate(fiber) {
|
|
275
|
+
return exitSucceed(get(fiber.context, this))
|
|
276
|
+
}
|
|
277
|
+
}),
|
|
275
278
|
toJSON<I, A>(this: Service<I, A>) {
|
|
276
279
|
return {
|
|
277
280
|
_id: "Service",
|
|
@@ -279,10 +282,6 @@ const ServiceProto: any = {
|
|
|
279
282
|
stack: this.stack
|
|
280
283
|
}
|
|
281
284
|
},
|
|
282
|
-
asEffect(this: any) {
|
|
283
|
-
const fn = this.asEffect = constant(withFiber((fiber) => exitSucceed(get(fiber.context, this))))
|
|
284
|
-
return fn()
|
|
285
|
-
},
|
|
286
285
|
of<Service>(this: void, self: Service): Service {
|
|
287
286
|
return self
|
|
288
287
|
},
|
package/src/DateTime.ts
CHANGED
|
@@ -2164,7 +2164,7 @@ export const setPartsUtc: {
|
|
|
2164
2164
|
*
|
|
2165
2165
|
* const program = Effect.gen(function*() {
|
|
2166
2166
|
* // Access the current time zone service
|
|
2167
|
-
* const zone = yield* DateTime.CurrentTimeZone
|
|
2167
|
+
* const zone = yield* DateTime.CurrentTimeZone
|
|
2168
2168
|
* console.log(DateTime.zoneToString(zone))
|
|
2169
2169
|
* })
|
|
2170
2170
|
*
|
|
@@ -2199,7 +2199,7 @@ export class CurrentTimeZone extends Context.Service<CurrentTimeZone, TimeZone>(
|
|
|
2199
2199
|
* ```
|
|
2200
2200
|
*/
|
|
2201
2201
|
export const setZoneCurrent = (self: DateTime): Effect.Effect<Zoned, never, CurrentTimeZone> =>
|
|
2202
|
-
Effect.map(CurrentTimeZone
|
|
2202
|
+
Effect.map(CurrentTimeZone, (zone) => setZone(self, zone))
|
|
2203
2203
|
|
|
2204
2204
|
/**
|
|
2205
2205
|
* Provide the `CurrentTimeZone` to an effect.
|