effect 4.0.0-beta.70 → 4.0.0-beta.72
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 +1483 -239
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +617 -164
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +646 -52
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +331 -28
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +474 -18
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +292 -14
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +239 -19
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +163 -13
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +53 -8
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +82 -11
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +73 -12
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +53 -15
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +488 -200
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +349 -129
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +539 -158
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +222 -89
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +81 -6
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js +45 -4
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +179 -54
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +65 -22
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +60 -3
- package/dist/Clock.d.ts.map +1 -1
- package/dist/Clock.js +31 -1
- package/dist/Clock.js.map +1 -1
- package/dist/Combiner.d.ts +21 -21
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +14 -18
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +135 -50
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +109 -37
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +52 -29
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +21 -21
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +32 -7
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +32 -7
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +503 -48
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +191 -17
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +116 -6
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +92 -6
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +30 -1
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +30 -1
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +92 -47
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +16 -12
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +313 -128
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +167 -68
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +345 -79
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +131 -12
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +5 -0
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Duration.d.ts +203 -50
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +112 -32
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +2006 -810
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +785 -350
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +16 -2
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +16 -2
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +100 -8
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +141 -8
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +10 -11
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +7 -8
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +46 -43
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +43 -35
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +135 -16
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +93 -12
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +96 -26
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +28 -2
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +149 -101
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +117 -80
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +321 -72
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +152 -3
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +6 -6
- package/dist/FiberHandle.js +4 -4
- package/dist/FiberMap.d.ts +18 -18
- package/dist/FiberMap.js +8 -8
- package/dist/FiberSet.d.ts +21 -13
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +17 -9
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +79 -16
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +93 -33
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +221 -2
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +155 -2
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts +4 -6
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +3 -5
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +164 -18
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +116 -15
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +297 -25
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +75 -12
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +59 -26
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +95 -19
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +119 -17
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +35 -37
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +13 -15
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +210 -9
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +95 -5
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +16 -16
- package/dist/HashSet.js +6 -6
- package/dist/Inspectable.d.ts +47 -4
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +74 -17
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +261 -81
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +123 -43
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +34 -19
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +52 -44
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +5 -5
- package/dist/JsonPointer.js +5 -5
- package/dist/JsonSchema.d.ts +77 -33
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +45 -31
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +158 -13
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +79 -4
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +297 -101
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +94 -36
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +9 -2
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +1 -2
- package/dist/LayerMap.js.map +1 -1
- package/dist/LogLevel.d.ts +96 -21
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +68 -9
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +21 -7
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +26 -13
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +82 -10
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +33 -2
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +215 -42
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +242 -59
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +68 -41
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +60 -33
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +285 -40
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +128 -7
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +111 -4
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +98 -39
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +24 -6
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +23 -5
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +141 -4
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +73 -2
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +20 -11
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +6 -6
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +22 -6
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +6 -1
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +434 -17
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +268 -13
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +26 -33
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +18 -25
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +186 -150
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +75 -72
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +93 -120
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +149 -142
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +37 -5
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +22 -3
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +238 -15
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +106 -8
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +34 -6
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +19 -5
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +29 -4
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +16 -4
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +53 -4
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +45 -4
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +140 -14
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +63 -8
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +98 -168
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +109 -120
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +75 -9
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +70 -9
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +241 -66
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +187 -52
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +148 -3
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +69 -2
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +167 -59
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +163 -55
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +71 -16
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +35 -0
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +171 -9
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +49 -3
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +73 -18
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js +23 -3
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +174 -53
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +128 -23
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +27 -23
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +22 -18
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +82 -4
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +64 -4
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +17 -7
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +2 -4
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +168 -32
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +135 -30
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +226 -30
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +162 -23
- package/dist/References.js.map +1 -1
- package/dist/RegExp.d.ts +15 -2
- package/dist/RegExp.d.ts.map +1 -1
- package/dist/RegExp.js +49 -3
- package/dist/RegExp.js.map +1 -1
- package/dist/Request.d.ts +218 -35
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +57 -10
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +213 -29
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +99 -11
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +62 -3
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +52 -3
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +380 -57
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +176 -32
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +124 -14
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +150 -25
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +436 -115
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +344 -107
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +53 -4
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +42 -3
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +934 -239
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +655 -217
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +239 -28
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +239 -28
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +127 -129
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +115 -117
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +45 -56
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +39 -50
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +254 -15
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +295 -33
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +106 -77
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +101 -71
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +92 -56
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +86 -50
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts +9 -0
- package/dist/SchemaUtils.d.ts.map +1 -1
- package/dist/SchemaUtils.js +38 -11
- package/dist/SchemaUtils.js.map +1 -1
- package/dist/Scope.d.ts +127 -25
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +91 -21
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +364 -19
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +155 -7
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +69 -7
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +49 -5
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +348 -29
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +103 -8
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +343 -45
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +194 -26
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +72 -17
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +62 -16
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +774 -224
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +333 -91
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +219 -47
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +179 -29
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +54 -110
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +26 -42
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +341 -105
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +162 -44
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +25 -7
- package/dist/Symbol.d.ts.map +1 -1
- package/dist/Symbol.js +25 -7
- package/dist/Symbol.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +529 -29
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +193 -11
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Take.d.ts +36 -13
- package/dist/Take.d.ts.map +1 -1
- package/dist/Take.js +5 -0
- package/dist/Take.js.map +1 -1
- package/dist/Terminal.d.ts +76 -20
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js +41 -5
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +74 -7
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +74 -7
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +67 -30
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +7 -7
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +96 -108
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +42 -52
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +42 -9
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +42 -9
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +85 -2
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js +56 -2
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +20 -20
- package/dist/TxHashMap.js +8 -8
- package/dist/TxHashSet.d.ts +14 -14
- package/dist/TxHashSet.js +6 -6
- package/dist/TxPriorityQueue.d.ts +43 -8
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +41 -6
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +98 -8
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +70 -8
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +58 -17
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +10 -10
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +88 -16
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +78 -14
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +113 -8
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +82 -8
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +173 -14
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +130 -14
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +206 -3
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +111 -3
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +68 -13
- package/dist/Types.d.ts.map +1 -1
- package/dist/UndefinedOr.d.ts +171 -30
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +115 -30
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +130 -22
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +36 -12
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +21 -16
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +14 -6
- package/dist/Utils.js.map +1 -1
- package/dist/index.d.ts +0 -5205
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -5205
- package/dist/index.js.map +1 -1
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/request.js +3 -1
- package/dist/internal/request.js.map +1 -1
- package/dist/internal/schema/arbitrary.js +11 -1
- package/dist/internal/schema/arbitrary.js.map +1 -1
- package/dist/internal/schema/representation.js +21 -12
- package/dist/internal/schema/representation.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +69 -0
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js +73 -9
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +79 -30
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +69 -31
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/testing/index.d.ts +0 -107
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +0 -107
- package/dist/testing/index.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +33 -5
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +33 -5
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +9 -0
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js +43 -11
- package/dist/unstable/ai/AnthropicStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts +45 -6
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +73 -33
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.d.ts +104 -8
- package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.js +103 -7
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +8 -3
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +8 -3
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +51 -7
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +50 -6
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +299 -169
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +278 -147
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +108 -14
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +80 -10
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +35 -13
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +34 -12
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +48 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +24 -3
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +23 -2
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +71 -13
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +35 -1
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.d.ts +34 -12
- package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +33 -11
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +40 -27
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +34 -26
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +41 -25
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +41 -25
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +85 -24
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +84 -23
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +1 -1
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +1 -1
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/ai/index.d.ts +0 -560
- package/dist/unstable/ai/index.d.ts.map +1 -1
- package/dist/unstable/ai/index.js +0 -560
- package/dist/unstable/ai/index.js.map +1 -1
- package/dist/unstable/cli/Argument.js +1 -1
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/CliError.d.ts +3 -3
- package/dist/unstable/cli/CliError.js +3 -3
- package/dist/unstable/cli/CliOutput.d.ts +1 -1
- package/dist/unstable/cli/Command.d.ts +136 -8
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +50 -4
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Completions.d.ts +13 -0
- package/dist/unstable/cli/Completions.d.ts.map +1 -1
- package/dist/unstable/cli/Completions.js +41 -1
- package/dist/unstable/cli/Completions.js.map +1 -1
- package/dist/unstable/cli/Flag.d.ts +24 -12
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +18 -6
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts +39 -8
- package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/unstable/cli/GlobalFlag.js +39 -8
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +128 -2
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +59 -7
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +3 -3
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +59 -10
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +37 -7
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +51 -9
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/index.d.ts +0 -220
- package/dist/unstable/cli/index.d.ts.map +1 -1
- package/dist/unstable/cli/index.js +0 -220
- package/dist/unstable/cli/index.js.map +1 -1
- package/dist/unstable/cli/internal/parser.js +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +1 -1
- package/dist/unstable/cluster/ClusterError.d.ts +61 -22
- package/dist/unstable/cluster/ClusterError.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterError.js +61 -22
- package/dist/unstable/cluster/ClusterError.js.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.d.ts +58 -5
- package/dist/unstable/cluster/ClusterMetrics.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.js +58 -5
- package/dist/unstable/cluster/ClusterMetrics.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +87 -26
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +87 -26
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +49 -10
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts +6 -1
- package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js +6 -1
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +33 -6
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +32 -5
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityAddress.d.ts +19 -0
- package/dist/unstable/cluster/EntityAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityAddress.js +19 -0
- package/dist/unstable/cluster/EntityAddress.js.map +1 -1
- package/dist/unstable/cluster/EntityId.d.ts +44 -7
- package/dist/unstable/cluster/EntityId.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityId.js +44 -7
- package/dist/unstable/cluster/EntityId.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +5 -6
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +4 -5
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/EntityType.d.ts +19 -0
- package/dist/unstable/cluster/EntityType.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityType.js +19 -0
- package/dist/unstable/cluster/EntityType.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +11 -11
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +11 -11
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +42 -22
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +42 -22
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.d.ts +33 -14
- package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
- package/dist/unstable/cluster/MachineId.d.ts +35 -9
- package/dist/unstable/cluster/MachineId.d.ts.map +1 -1
- package/dist/unstable/cluster/MachineId.js +35 -9
- package/dist/unstable/cluster/MachineId.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +11 -11
- package/dist/unstable/cluster/Message.js +11 -11
- package/dist/unstable/cluster/MessageStorage.d.ts +38 -24
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +37 -23
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +18 -8
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +18 -8
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +47 -14
- package/dist/unstable/cluster/Runner.d.ts.map +1 -1
- package/dist/unstable/cluster/Runner.js +47 -14
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts +52 -10
- package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.js +52 -10
- package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +33 -16
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +33 -16
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +19 -4
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +19 -4
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/Runners.d.ts +25 -1
- package/dist/unstable/cluster/Runners.d.ts.map +1 -1
- package/dist/unstable/cluster/Runners.js +24 -0
- package/dist/unstable/cluster/Runners.js.map +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +24 -2
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +24 -2
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +27 -3
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +63 -20
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.d.ts +60 -16
- package/dist/unstable/cluster/ShardingConfig.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.js +61 -17
- package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts +27 -14
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.js +28 -15
- package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
- package/dist/unstable/cluster/SingleRunner.d.ts +26 -1
- package/dist/unstable/cluster/SingleRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SingleRunner.js +26 -1
- package/dist/unstable/cluster/SingleRunner.js.map +1 -1
- package/dist/unstable/cluster/Singleton.d.ts +51 -9
- package/dist/unstable/cluster/Singleton.d.ts.map +1 -1
- package/dist/unstable/cluster/Singleton.js +51 -9
- package/dist/unstable/cluster/Singleton.js.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +27 -13
- package/dist/unstable/cluster/SingletonAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +27 -13
- package/dist/unstable/cluster/SingletonAddress.js.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +19 -5
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +19 -5
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.d.ts +27 -1
- package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SocketRunner.js +27 -1
- package/dist/unstable/cluster/SocketRunner.js.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.d.ts +38 -0
- package/dist/unstable/cluster/SqlMessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.js +73 -13
- package/dist/unstable/cluster/SqlMessageStorage.js.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts +20 -0
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.js +20 -0
- package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +25 -14
- package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/TestRunner.js +25 -14
- package/dist/unstable/cluster/TestRunner.js.map +1 -1
- package/dist/unstable/cluster/index.d.ts +0 -790
- package/dist/unstable/cluster/index.d.ts.map +1 -1
- package/dist/unstable/cluster/index.js +0 -790
- package/dist/unstable/cluster/index.js.map +1 -1
- package/dist/unstable/devtools/DevTools.d.ts +41 -11
- package/dist/unstable/devtools/DevTools.d.ts.map +1 -1
- package/dist/unstable/devtools/DevTools.js +41 -11
- package/dist/unstable/devtools/DevTools.js.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.d.ts +38 -0
- package/dist/unstable/devtools/DevToolsClient.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +68 -11
- package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js +24 -16
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.d.ts +20 -13
- package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.js +20 -13
- package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
- package/dist/unstable/devtools/index.d.ts +0 -58
- package/dist/unstable/devtools/index.d.ts.map +1 -1
- package/dist/unstable/devtools/index.js +0 -58
- package/dist/unstable/devtools/index.js.map +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts +2 -1
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +30 -14
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts +28 -14
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js +28 -14
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +38 -17
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js +3 -3
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/encoding/index.d.ts +0 -49
- package/dist/unstable/encoding/index.d.ts.map +1 -1
- package/dist/unstable/encoding/index.js +0 -49
- package/dist/unstable/encoding/index.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.js +28 -13
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +23 -15
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.js +22 -14
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +7 -7
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +36 -19
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +63 -25
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +61 -23
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +8 -3
- package/dist/unstable/eventlog/EventLogEncryption.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +8 -3
- package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +49 -40
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +28 -28
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +14 -4
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +14 -4
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts +7 -2
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js +7 -2
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +24 -2
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +24 -2
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +82 -7
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +119 -22
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +33 -7
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +68 -24
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts +21 -0
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +50 -14
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +39 -15
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +39 -15
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +30 -11
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/index.d.ts +0 -240
- package/dist/unstable/eventlog/index.d.ts.map +1 -1
- package/dist/unstable/eventlog/index.js +0 -240
- package/dist/unstable/eventlog/index.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +99 -52
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +77 -30
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +43 -13
- package/dist/unstable/http/Etag.d.ts.map +1 -1
- package/dist/unstable/http/Etag.js +43 -13
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +59 -17
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +59 -17
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +60 -22
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +58 -20
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +6 -2
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +59 -15
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +66 -30
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +17 -7
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientError.d.ts +15 -14
- package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientError.js +39 -22
- package/dist/unstable/http/HttpClientError.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +37 -16
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +37 -16
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +35 -16
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js +33 -14
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +3 -3
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js +3 -3
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpMethod.d.ts +46 -20
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +46 -20
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +19 -14
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +54 -26
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +34 -21
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +34 -21
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +41 -28
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +39 -26
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +53 -21
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +20 -5
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +28 -14
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +64 -42
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +48 -26
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpStaticServer.d.ts +30 -13
- package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpStaticServer.js +29 -12
- package/dist/unstable/http/HttpStaticServer.js.map +1 -1
- package/dist/unstable/http/HttpTraceContext.d.ts +32 -19
- package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js +32 -19
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +39 -19
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +39 -19
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Template.d.ts +27 -14
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js +25 -12
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/Url.d.ts +41 -28
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/Url.js +32 -17
- package/dist/unstable/http/Url.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +43 -28
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +40 -25
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/http/index.d.ts +0 -452
- package/dist/unstable/http/index.d.ts.map +1 -1
- package/dist/unstable/http/index.js +0 -452
- package/dist/unstable/http/index.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts +50 -26
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js +3 -3
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +3 -3
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +39 -25
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js +28 -16
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +51 -23
- package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +2 -2
- package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.js +37 -17
- package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts +34 -23
- package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +49 -25
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +49 -25
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +4 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js +28 -16
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +43 -43
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +42 -42
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +54 -24
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +54 -24
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +28 -16
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts +7 -1
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +45 -27
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/httpapi/index.d.ts +0 -311
- package/dist/unstable/httpapi/index.d.ts.map +1 -1
- package/dist/unstable/httpapi/index.js +0 -311
- package/dist/unstable/httpapi/index.js.map +1 -1
- package/dist/unstable/observability/Otlp.d.ts +31 -16
- package/dist/unstable/observability/Otlp.d.ts.map +1 -1
- package/dist/unstable/observability/Otlp.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +31 -15
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +33 -15
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.d.ts +27 -16
- package/dist/unstable/observability/OtlpSerialization.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.js +27 -16
- package/dist/unstable/observability/OtlpSerialization.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +3 -3
- package/dist/unstable/observability/PrometheusMetrics.js +3 -3
- package/dist/unstable/observability/index.d.ts +0 -183
- package/dist/unstable/observability/index.d.ts.map +1 -1
- package/dist/unstable/observability/index.js +0 -183
- package/dist/unstable/observability/index.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +12 -4
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +10 -2
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +8 -3
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js +8 -3
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +29 -16
- package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +27 -14
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +10 -5
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +9 -4
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +20 -10
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +19 -9
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts.map +1 -1
- package/dist/unstable/persistence/Redis.js +33 -15
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/persistence/index.d.ts +0 -147
- package/dist/unstable/persistence/index.d.ts.map +1 -1
- package/dist/unstable/persistence/index.js +0 -147
- package/dist/unstable/persistence/index.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +14 -14
- package/dist/unstable/process/ChildProcess.js +7 -7
- package/dist/unstable/process/ChildProcessSpawner.d.ts +17 -5
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js +17 -5
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/process/index.d.ts +0 -45
- package/dist/unstable/process/index.d.ts.map +1 -1
- package/dist/unstable/process/index.js +0 -45
- package/dist/unstable/process/index.js.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.d.ts +74 -22
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +52 -20
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +81 -35
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +70 -32
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts +32 -16
- package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRef.js +52 -25
- package/dist/unstable/reactivity/AtomRef.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +81 -20
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +81 -20
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +6 -1
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +37 -17
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +44 -21
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +44 -21
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/reactivity/index.d.ts +0 -166
- package/dist/unstable/reactivity/index.d.ts.map +1 -1
- package/dist/unstable/reactivity/index.js +0 -166
- package/dist/unstable/reactivity/index.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +47 -32
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js +15 -11
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts +27 -12
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js +27 -12
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.d.ts +31 -17
- package/dist/unstable/rpc/RpcClientError.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClientError.js +31 -17
- package/dist/unstable/rpc/RpcClientError.js.map +1 -1
- package/dist/unstable/rpc/RpcGroup.d.ts +29 -18
- package/dist/unstable/rpc/RpcGroup.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcGroup.js.map +1 -1
- package/dist/unstable/rpc/RpcMessage.d.ts +37 -19
- package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMessage.js +4 -4
- package/dist/unstable/rpc/RpcMessage.js.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +31 -21
- package/dist/unstable/rpc/RpcMiddleware.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +31 -21
- package/dist/unstable/rpc/RpcMiddleware.js.map +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +30 -20
- package/dist/unstable/rpc/RpcSchema.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSchema.js +30 -20
- package/dist/unstable/rpc/RpcSchema.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +50 -33
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +48 -31
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +22 -17
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +22 -17
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/rpc/RpcTest.d.ts +31 -15
- package/dist/unstable/rpc/RpcTest.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcTest.js +31 -15
- package/dist/unstable/rpc/RpcTest.js.map +1 -1
- package/dist/unstable/rpc/RpcWorker.d.ts +29 -14
- package/dist/unstable/rpc/RpcWorker.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcWorker.js.map +1 -1
- package/dist/unstable/rpc/index.d.ts +0 -272
- package/dist/unstable/rpc/index.d.ts.map +1 -1
- package/dist/unstable/rpc/index.js +0 -272
- package/dist/unstable/rpc/index.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +32 -33
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +25 -26
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +1 -1
- package/dist/unstable/schema/VariantSchema.js +1 -1
- package/dist/unstable/schema/index.d.ts +0 -37
- package/dist/unstable/schema/index.d.ts.map +1 -1
- package/dist/unstable/schema/index.js +0 -37
- package/dist/unstable/schema/index.js.map +1 -1
- package/dist/unstable/socket/Socket.d.ts +8 -2
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +8 -2
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/socket/SocketServer.d.ts +2 -2
- package/dist/unstable/socket/SocketServer.js +1 -1
- package/dist/unstable/socket/index.d.ts +0 -44
- package/dist/unstable/socket/index.d.ts.map +1 -1
- package/dist/unstable/socket/index.js +0 -44
- package/dist/unstable/socket/index.js.map +1 -1
- package/dist/unstable/sql/Migrator.d.ts.map +1 -1
- package/dist/unstable/sql/Migrator.js +39 -18
- package/dist/unstable/sql/Migrator.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +7 -2
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +7 -2
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.d.ts +1 -1
- package/dist/unstable/sql/SqlConnection.js +1 -1
- package/dist/unstable/sql/SqlError.d.ts +2 -2
- package/dist/unstable/sql/SqlError.d.ts.map +1 -1
- package/dist/unstable/sql/SqlError.js +33 -17
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/sql/SqlResolver.d.ts +3 -3
- package/dist/unstable/sql/SqlResolver.js +1 -1
- package/dist/unstable/sql/SqlSchema.d.ts +51 -21
- package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
- package/dist/unstable/sql/SqlSchema.js +51 -21
- package/dist/unstable/sql/SqlSchema.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +1 -1
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js +34 -14
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/sql/index.d.ts +0 -178
- package/dist/unstable/sql/index.d.ts.map +1 -1
- package/dist/unstable/sql/index.js +0 -178
- package/dist/unstable/sql/index.js.map +1 -1
- package/dist/unstable/workers/Transferable.d.ts +32 -21
- package/dist/unstable/workers/Transferable.d.ts.map +1 -1
- package/dist/unstable/workers/Transferable.js +32 -21
- package/dist/unstable/workers/Transferable.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts +37 -24
- package/dist/unstable/workers/Worker.d.ts.map +1 -1
- package/dist/unstable/workers/Worker.js +35 -22
- package/dist/unstable/workers/Worker.js.map +1 -1
- package/dist/unstable/workers/WorkerError.d.ts +1 -1
- package/dist/unstable/workers/WorkerError.d.ts.map +1 -1
- package/dist/unstable/workers/WorkerError.js +32 -16
- package/dist/unstable/workers/WorkerError.js.map +1 -1
- package/dist/unstable/workers/WorkerRunner.d.ts +31 -20
- package/dist/unstable/workers/WorkerRunner.d.ts.map +1 -1
- package/dist/unstable/workers/WorkerRunner.js +31 -20
- package/dist/unstable/workers/WorkerRunner.js.map +1 -1
- package/dist/unstable/workers/index.d.ts +0 -80
- package/dist/unstable/workers/index.d.ts.map +1 -1
- package/dist/unstable/workers/index.js +0 -80
- package/dist/unstable/workers/index.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts +2 -2
- package/dist/unstable/workflow/DurableClock.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableClock.js +25 -13
- package/dist/unstable/workflow/DurableClock.js.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +12 -12
- package/dist/unstable/workflow/DurableDeferred.js +7 -7
- package/dist/unstable/workflow/DurableQueue.d.ts +36 -18
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +36 -18
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +22 -23
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +17 -18
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +26 -8
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js +25 -7
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/dist/unstable/workflow/index.d.ts +0 -160
- package/dist/unstable/workflow/index.d.ts.map +1 -1
- package/dist/unstable/workflow/index.js +0 -160
- package/dist/unstable/workflow/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +1557 -312
- package/src/BigDecimal.ts +646 -52
- package/src/BigInt.ts +474 -18
- package/src/Boolean.ts +239 -19
- package/src/Brand.ts +102 -11
- package/src/Cache.ts +96 -24
- package/src/Cause.ts +488 -200
- package/src/Channel.ts +647 -191
- package/src/ChannelSchema.ts +99 -6
- package/src/Chunk.ts +187 -54
- package/src/Clock.ts +60 -3
- package/src/Combiner.ts +21 -21
- package/src/Config.ts +135 -50
- package/src/ConfigProvider.ts +52 -29
- package/src/Console.ts +32 -7
- package/src/Context.ts +516 -50
- package/src/Cron.ts +116 -6
- package/src/Crypto.ts +30 -1
- package/src/Data.ts +92 -47
- package/src/DateTime.ts +313 -128
- package/src/Deferred.ts +345 -79
- package/src/Differ.ts +5 -0
- package/src/Duration.ts +203 -50
- package/src/Effect.ts +2044 -816
- package/src/Effectable.ts +16 -2
- package/src/Encoding.ts +146 -9
- package/src/Equal.ts +10 -11
- package/src/Equivalence.ts +49 -46
- package/src/ErrorReporter.ts +135 -16
- package/src/ExecutionPlan.ts +96 -26
- package/src/Exit.ts +149 -101
- package/src/Fiber.ts +321 -72
- package/src/FiberHandle.ts +6 -6
- package/src/FiberMap.ts +20 -20
- package/src/FiberSet.ts +21 -13
- package/src/FileSystem.ts +119 -39
- package/src/Filter.ts +221 -2
- package/src/Formatter.ts +4 -6
- package/src/Function.ts +164 -18
- package/src/Graph.ts +297 -25
- package/src/HKT.ts +59 -26
- package/src/Hash.ts +143 -23
- package/src/HashMap.ts +35 -37
- package/src/HashRing.ts +210 -9
- package/src/HashSet.ts +16 -16
- package/src/Inspectable.ts +86 -17
- package/src/Iterable.ts +261 -81
- package/src/JsonPatch.ts +79 -56
- package/src/JsonPointer.ts +5 -5
- package/src/JsonSchema.ts +77 -33
- package/src/Latch.ts +164 -13
- package/src/Layer.ts +297 -101
- package/src/LayerMap.ts +9 -2
- package/src/LogLevel.ts +96 -21
- package/src/Logger.ts +31 -15
- package/src/ManagedRuntime.ts +82 -10
- package/src/Match.ts +250 -59
- package/src/Metric.ts +68 -41
- package/src/MutableHashMap.ts +381 -52
- package/src/MutableHashSet.ts +145 -41
- package/src/MutableList.ts +24 -6
- package/src/MutableRef.ts +141 -4
- package/src/Newtype.ts +20 -11
- package/src/NonEmptyIterable.ts +22 -6
- package/src/Number.ts +434 -17
- package/src/Optic.ts +26 -33
- package/src/Option.ts +186 -150
- package/src/Order.ts +163 -161
- package/src/Ordering.ts +37 -5
- package/src/PartitionedSemaphore.ts +238 -15
- package/src/Path.ts +34 -6
- package/src/Pipeable.ts +29 -4
- package/src/PlatformError.ts +53 -4
- package/src/Pool.ts +174 -32
- package/src/Predicate.ts +151 -196
- package/src/PrimaryKey.ts +75 -9
- package/src/PubSub.ts +241 -66
- package/src/Pull.ts +148 -3
- package/src/Queue.ts +167 -59
- package/src/Random.ts +71 -16
- package/src/RcMap.ts +171 -9
- package/src/RcRef.ts +73 -18
- package/src/Record.ts +174 -53
- package/src/Redactable.ts +27 -23
- package/src/Redacted.ts +82 -4
- package/src/Reducer.ts +17 -7
- package/src/Ref.ts +332 -54
- package/src/References.ts +226 -30
- package/src/RegExp.ts +49 -3
- package/src/Request.ts +218 -35
- package/src/RequestResolver.ts +268 -36
- package/src/Resource.ts +62 -3
- package/src/Result.ts +380 -57
- package/src/Runtime.ts +172 -32
- package/src/Schedule.ts +510 -145
- package/src/Scheduler.ts +53 -4
- package/src/Schema.ts +975 -264
- package/src/SchemaAST.ts +239 -28
- package/src/SchemaGetter.ts +127 -129
- package/src/SchemaIssue.ts +45 -56
- package/src/SchemaParser.ts +295 -33
- package/src/SchemaRepresentation.ts +106 -77
- package/src/SchemaTransformation.ts +92 -56
- package/src/SchemaUtils.ts +38 -11
- package/src/Scope.ts +127 -25
- package/src/ScopedCache.ts +418 -21
- package/src/ScopedRef.ts +69 -7
- package/src/Semaphore.ts +348 -29
- package/src/Sink.ts +343 -45
- package/src/Stdio.ts +72 -17
- package/src/Stream.ts +880 -242
- package/src/String.ts +221 -49
- package/src/Struct.ts +54 -110
- package/src/SubscriptionRef.ts +341 -105
- package/src/Symbol.ts +25 -7
- package/src/SynchronizedRef.ts +529 -29
- package/src/Take.ts +36 -13
- package/src/Terminal.ts +76 -20
- package/src/Tracer.ts +74 -7
- package/src/Trie.ts +67 -30
- package/src/Tuple.ts +96 -108
- package/src/TxChunk.ts +42 -9
- package/src/TxDeferred.ts +85 -2
- package/src/TxHashMap.ts +22 -22
- package/src/TxHashSet.ts +22 -22
- package/src/TxPriorityQueue.ts +43 -8
- package/src/TxPubSub.ts +98 -8
- package/src/TxQueue.ts +58 -17
- package/src/TxReentrantLock.ts +88 -16
- package/src/TxRef.ts +113 -8
- package/src/TxSemaphore.ts +173 -14
- package/src/TxSubscriptionRef.ts +206 -3
- package/src/Types.ts +68 -13
- package/src/UndefinedOr.ts +171 -30
- package/src/Unify.ts +130 -22
- package/src/Utils.ts +21 -16
- package/src/index.ts +0 -5205
- package/src/internal/effect.ts +59 -29
- package/src/internal/request.ts +3 -1
- package/src/internal/schema/arbitrary.ts +14 -1
- package/src/internal/schema/representation.ts +37 -14
- package/src/testing/TestConsole.ts +105 -9
- package/src/testing/TestSchema.ts +81 -31
- package/src/testing/index.ts +0 -107
- package/src/unstable/ai/AiError.ts +33 -5
- package/src/unstable/ai/AnthropicStructuredOutput.ts +43 -11
- package/src/unstable/ai/Chat.ts +82 -33
- package/src/unstable/ai/EmbeddingModel.ts +104 -8
- package/src/unstable/ai/IdGenerator.ts +8 -3
- package/src/unstable/ai/LanguageModel.ts +51 -7
- package/src/unstable/ai/McpSchema.ts +299 -169
- package/src/unstable/ai/McpServer.ts +108 -14
- package/src/unstable/ai/Model.ts +35 -13
- package/src/unstable/ai/OpenAiStructuredOutput.ts +48 -1
- package/src/unstable/ai/Prompt.ts +24 -3
- package/src/unstable/ai/Response.ts +71 -13
- package/src/unstable/ai/ResponseIdTracker.ts +34 -12
- package/src/unstable/ai/Telemetry.ts +40 -27
- package/src/unstable/ai/Tokenizer.ts +41 -25
- package/src/unstable/ai/Tool.ts +85 -24
- package/src/unstable/ai/Toolkit.ts +32 -4
- package/src/unstable/ai/index.ts +0 -560
- package/src/unstable/cli/Argument.ts +1 -1
- package/src/unstable/cli/CliError.ts +3 -3
- package/src/unstable/cli/CliOutput.ts +1 -1
- package/src/unstable/cli/Command.ts +136 -8
- package/src/unstable/cli/Completions.ts +41 -1
- package/src/unstable/cli/Flag.ts +24 -12
- package/src/unstable/cli/GlobalFlag.ts +39 -8
- package/src/unstable/cli/Param.ts +137 -11
- package/src/unstable/cli/Primitive.ts +59 -10
- package/src/unstable/cli/Prompt.ts +63 -14
- package/src/unstable/cli/index.ts +0 -220
- package/src/unstable/cli/internal/parser.ts +1 -1
- package/src/unstable/cluster/ClusterCron.ts +1 -1
- package/src/unstable/cluster/ClusterError.ts +61 -22
- package/src/unstable/cluster/ClusterMetrics.ts +58 -5
- package/src/unstable/cluster/ClusterSchema.ts +87 -26
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +63 -11
- package/src/unstable/cluster/DeliverAt.ts +6 -1
- package/src/unstable/cluster/Entity.ts +33 -6
- package/src/unstable/cluster/EntityAddress.ts +19 -0
- package/src/unstable/cluster/EntityId.ts +44 -7
- package/src/unstable/cluster/EntityResource.ts +5 -6
- package/src/unstable/cluster/EntityType.ts +19 -0
- package/src/unstable/cluster/Envelope.ts +11 -11
- package/src/unstable/cluster/HttpRunner.ts +42 -22
- package/src/unstable/cluster/K8sHttpClient.ts +32 -13
- package/src/unstable/cluster/MachineId.ts +35 -9
- package/src/unstable/cluster/Message.ts +11 -11
- package/src/unstable/cluster/MessageStorage.ts +38 -24
- package/src/unstable/cluster/Reply.ts +18 -8
- package/src/unstable/cluster/Runner.ts +47 -14
- package/src/unstable/cluster/RunnerAddress.ts +52 -10
- package/src/unstable/cluster/RunnerHealth.ts +33 -16
- package/src/unstable/cluster/RunnerServer.ts +19 -4
- package/src/unstable/cluster/Runners.ts +25 -1
- package/src/unstable/cluster/ShardId.ts +24 -2
- package/src/unstable/cluster/Sharding.ts +63 -20
- package/src/unstable/cluster/ShardingConfig.ts +60 -16
- package/src/unstable/cluster/ShardingRegistrationEvent.ts +27 -14
- package/src/unstable/cluster/SingleRunner.ts +26 -1
- package/src/unstable/cluster/Singleton.ts +51 -9
- package/src/unstable/cluster/SingletonAddress.ts +27 -13
- package/src/unstable/cluster/Snowflake.ts +19 -5
- package/src/unstable/cluster/SocketRunner.ts +27 -1
- package/src/unstable/cluster/SqlMessageStorage.ts +73 -13
- package/src/unstable/cluster/SqlRunnerStorage.ts +20 -0
- package/src/unstable/cluster/TestRunner.ts +25 -14
- package/src/unstable/cluster/index.ts +0 -790
- package/src/unstable/devtools/DevTools.ts +41 -11
- package/src/unstable/devtools/DevToolsClient.ts +68 -11
- package/src/unstable/devtools/DevToolsSchema.ts +24 -16
- package/src/unstable/devtools/DevToolsServer.ts +18 -11
- package/src/unstable/devtools/index.ts +0 -58
- package/src/unstable/encoding/Msgpack.ts +30 -14
- package/src/unstable/encoding/Ndjson.ts +28 -14
- package/src/unstable/encoding/Sse.ts +38 -17
- package/src/unstable/encoding/index.ts +0 -49
- package/src/unstable/eventlog/Event.ts +30 -15
- package/src/unstable/eventlog/EventGroup.ts +23 -15
- package/src/unstable/eventlog/EventJournal.ts +38 -21
- package/src/unstable/eventlog/EventLog.ts +63 -25
- package/src/unstable/eventlog/EventLogEncryption.ts +8 -3
- package/src/unstable/eventlog/EventLogMessage.ts +49 -40
- package/src/unstable/eventlog/EventLogRemote.ts +14 -4
- package/src/unstable/eventlog/EventLogServer.ts +36 -17
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +24 -2
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +119 -22
- package/src/unstable/eventlog/EventLogSessionAuth.ts +68 -24
- package/src/unstable/eventlog/SqlEventJournal.ts +50 -14
- package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +39 -15
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +30 -11
- package/src/unstable/eventlog/index.ts +0 -240
- package/src/unstable/http/Cookies.ts +97 -50
- package/src/unstable/http/Etag.ts +43 -13
- package/src/unstable/http/FetchHttpClient.ts +59 -17
- package/src/unstable/http/Headers.ts +62 -24
- package/src/unstable/http/HttpBody.ts +59 -15
- package/src/unstable/http/HttpClient.ts +119 -33
- package/src/unstable/http/HttpClientError.ts +41 -24
- package/src/unstable/http/HttpClientRequest.ts +37 -16
- package/src/unstable/http/HttpClientResponse.ts +33 -14
- package/src/unstable/http/HttpEffect.ts +35 -18
- package/src/unstable/http/HttpMethod.ts +46 -20
- package/src/unstable/http/HttpRouter.ts +58 -30
- package/src/unstable/http/HttpServer.ts +34 -21
- package/src/unstable/http/HttpServerError.ts +41 -28
- package/src/unstable/http/HttpServerRequest.ts +51 -19
- package/src/unstable/http/HttpServerRespondable.ts +28 -14
- package/src/unstable/http/HttpServerResponse.ts +66 -44
- package/src/unstable/http/HttpStaticServer.ts +29 -12
- package/src/unstable/http/HttpTraceContext.ts +32 -19
- package/src/unstable/http/Multipart.ts +39 -19
- package/src/unstable/http/Template.ts +25 -12
- package/src/unstable/http/Url.ts +41 -28
- package/src/unstable/http/UrlParams.ts +43 -28
- package/src/unstable/http/index.ts +0 -452
- package/src/unstable/httpapi/HttpApi.ts +48 -24
- package/src/unstable/httpapi/HttpApiBuilder.ts +40 -26
- package/src/unstable/httpapi/HttpApiClient.ts +28 -16
- package/src/unstable/httpapi/HttpApiEndpoint.ts +51 -23
- package/src/unstable/httpapi/HttpApiError.ts +38 -18
- package/src/unstable/httpapi/HttpApiGroup.ts +34 -23
- package/src/unstable/httpapi/HttpApiMiddleware.ts +49 -25
- package/src/unstable/httpapi/HttpApiScalar.ts +32 -17
- package/src/unstable/httpapi/HttpApiSchema.ts +43 -43
- package/src/unstable/httpapi/HttpApiSecurity.ts +54 -24
- package/src/unstable/httpapi/HttpApiSwagger.ts +28 -16
- package/src/unstable/httpapi/HttpApiTest.ts +1 -1
- package/src/unstable/httpapi/OpenApi.ts +43 -25
- package/src/unstable/httpapi/index.ts +0 -311
- package/src/unstable/observability/Otlp.ts +31 -16
- package/src/unstable/observability/OtlpLogger.ts +31 -15
- package/src/unstable/observability/OtlpResource.ts +33 -15
- package/src/unstable/observability/OtlpSerialization.ts +25 -14
- package/src/unstable/observability/PrometheusMetrics.ts +3 -3
- package/src/unstable/observability/index.ts +0 -183
- package/src/unstable/persistence/KeyValueStore.ts +12 -4
- package/src/unstable/persistence/Persistable.ts +8 -3
- package/src/unstable/persistence/PersistedCache.ts +27 -14
- package/src/unstable/persistence/PersistedQueue.ts +10 -5
- package/src/unstable/persistence/RateLimiter.ts +20 -10
- package/src/unstable/persistence/Redis.ts +33 -15
- package/src/unstable/persistence/index.ts +0 -147
- package/src/unstable/process/ChildProcess.ts +14 -14
- package/src/unstable/process/ChildProcessSpawner.ts +17 -5
- package/src/unstable/process/index.ts +0 -45
- package/src/unstable/reactivity/AsyncResult.ts +96 -24
- package/src/unstable/reactivity/Atom.ts +89 -35
- package/src/unstable/reactivity/AtomRef.ts +58 -25
- package/src/unstable/reactivity/AtomRegistry.ts +79 -18
- package/src/unstable/reactivity/Hydration.ts +37 -17
- package/src/unstable/reactivity/Reactivity.ts +42 -19
- package/src/unstable/reactivity/index.ts +0 -166
- package/src/unstable/rpc/Rpc.ts +47 -32
- package/src/unstable/rpc/RpcClient.ts +58 -34
- package/src/unstable/rpc/RpcClientError.ts +29 -15
- package/src/unstable/rpc/RpcGroup.ts +28 -17
- package/src/unstable/rpc/RpcMessage.ts +37 -19
- package/src/unstable/rpc/RpcMiddleware.ts +31 -21
- package/src/unstable/rpc/RpcSchema.ts +30 -20
- package/src/unstable/rpc/RpcSerialization.ts +48 -31
- package/src/unstable/rpc/RpcServer.ts +53 -40
- package/src/unstable/rpc/RpcTest.ts +29 -13
- package/src/unstable/rpc/RpcWorker.ts +29 -14
- package/src/unstable/rpc/index.ts +0 -272
- package/src/unstable/schema/Model.ts +32 -33
- package/src/unstable/schema/VariantSchema.ts +1 -1
- package/src/unstable/schema/index.ts +0 -37
- package/src/unstable/socket/Socket.ts +8 -2
- package/src/unstable/socket/SocketServer.ts +2 -2
- package/src/unstable/socket/index.ts +0 -44
- package/src/unstable/sql/Migrator.ts +39 -18
- package/src/unstable/sql/SqlClient.ts +7 -2
- package/src/unstable/sql/SqlConnection.ts +1 -1
- package/src/unstable/sql/SqlError.ts +33 -17
- package/src/unstable/sql/SqlResolver.ts +3 -3
- package/src/unstable/sql/SqlSchema.ts +51 -21
- package/src/unstable/sql/Statement.ts +35 -15
- package/src/unstable/sql/index.ts +0 -178
- package/src/unstable/workers/Transferable.ts +32 -21
- package/src/unstable/workers/Worker.ts +35 -22
- package/src/unstable/workers/WorkerError.ts +35 -19
- package/src/unstable/workers/WorkerRunner.ts +29 -18
- package/src/unstable/workers/index.ts +0 -80
- package/src/unstable/workflow/DurableClock.ts +25 -13
- package/src/unstable/workflow/DurableDeferred.ts +12 -12
- package/src/unstable/workflow/DurableQueue.ts +34 -16
- package/src/unstable/workflow/Workflow.ts +22 -23
- package/src/unstable/workflow/WorkflowEngine.ts +26 -8
- package/src/unstable/workflow/index.ts +0 -160
package/dist/DateTime.d.ts
CHANGED
|
@@ -399,47 +399,94 @@ export type Disambiguation = "compatible" | "earlier" | "later" | "reject";
|
|
|
399
399
|
/**
|
|
400
400
|
* Checks whether a value is a `DateTime`.
|
|
401
401
|
*
|
|
402
|
+
* **When to use**
|
|
403
|
+
*
|
|
404
|
+
* Use to narrow an unknown value before treating it as a `DateTime`.
|
|
405
|
+
*
|
|
406
|
+
* @see {@link isUtc} for narrowing a known `DateTime` to UTC
|
|
407
|
+
* @see {@link isZoned} for narrowing a known `DateTime` to zoned
|
|
408
|
+
*
|
|
402
409
|
* @category guards
|
|
403
410
|
* @since 3.6.0
|
|
404
411
|
*/
|
|
405
412
|
export declare const isDateTime: (u: unknown) => u is DateTime;
|
|
406
413
|
/**
|
|
407
|
-
* Checks
|
|
414
|
+
* Checks whether a value is a `TimeZone`.
|
|
415
|
+
*
|
|
416
|
+
* **When to use**
|
|
417
|
+
*
|
|
418
|
+
* Use to narrow unknown input to any `TimeZone` before passing it to APIs that
|
|
419
|
+
* accept either fixed-offset or named time zones.
|
|
420
|
+
*
|
|
421
|
+
* @see {@link isTimeZoneOffset} for narrowing to fixed-offset time zones
|
|
422
|
+
* @see {@link isTimeZoneNamed} for narrowing to named time zones
|
|
408
423
|
*
|
|
409
424
|
* @category guards
|
|
410
425
|
* @since 3.6.0
|
|
411
426
|
*/
|
|
412
427
|
export declare const isTimeZone: (u: unknown) => u is TimeZone;
|
|
413
428
|
/**
|
|
414
|
-
* Checks
|
|
429
|
+
* Checks whether a value is an offset-based `TimeZone`.
|
|
430
|
+
*
|
|
431
|
+
* **When to use**
|
|
432
|
+
*
|
|
433
|
+
* Use when narrowing an unknown or union `TimeZone` value to the fixed-offset
|
|
434
|
+
* variant before reading its offset in milliseconds.
|
|
435
|
+
*
|
|
436
|
+
* @see {@link isTimeZone} for checking either time zone variant
|
|
437
|
+
* @see {@link isTimeZoneNamed} for narrowing to named time zones
|
|
415
438
|
*
|
|
416
439
|
* @category guards
|
|
417
440
|
* @since 3.6.0
|
|
418
441
|
*/
|
|
419
442
|
export declare const isTimeZoneOffset: (u: unknown) => u is TimeZone.Offset;
|
|
420
443
|
/**
|
|
421
|
-
* Checks
|
|
444
|
+
* Checks whether a value is a named `TimeZone` (IANA time zone).
|
|
445
|
+
*
|
|
446
|
+
* **When to use**
|
|
447
|
+
*
|
|
448
|
+
* Use to narrow an unknown value to the `TimeZone.Named` variant before
|
|
449
|
+
* reading named-zone fields such as `id`.
|
|
450
|
+
*
|
|
451
|
+
* @see {@link isTimeZone} for checking either time zone variant
|
|
452
|
+
* @see {@link isTimeZoneOffset} for narrowing to fixed-offset time zones
|
|
422
453
|
*
|
|
423
454
|
* @category guards
|
|
424
455
|
* @since 3.6.0
|
|
425
456
|
*/
|
|
426
457
|
export declare const isTimeZoneNamed: (u: unknown) => u is TimeZone.Named;
|
|
427
458
|
/**
|
|
428
|
-
* Checks
|
|
459
|
+
* Checks whether a `DateTime` is a UTC `DateTime` (no time zone information).
|
|
460
|
+
*
|
|
461
|
+
* **When to use**
|
|
462
|
+
*
|
|
463
|
+
* Use to narrow a `DateTime` before passing it to code that requires a UTC
|
|
464
|
+
* value without an associated time zone.
|
|
465
|
+
*
|
|
466
|
+
* @see {@link isZoned} for narrowing to zoned date-times
|
|
467
|
+
* @see {@link match} for handling both UTC and zoned cases
|
|
429
468
|
*
|
|
430
469
|
* @category guards
|
|
431
470
|
* @since 3.6.0
|
|
432
471
|
*/
|
|
433
472
|
export declare const isUtc: (self: DateTime) => self is Utc;
|
|
434
473
|
/**
|
|
435
|
-
* Checks
|
|
474
|
+
* Checks whether a `DateTime` is a zoned `DateTime` (has time zone information).
|
|
475
|
+
*
|
|
476
|
+
* **When to use**
|
|
477
|
+
*
|
|
478
|
+
* Use to narrow a known `DateTime` before reading its zone or passing it to
|
|
479
|
+
* APIs that require `DateTime.Zoned`.
|
|
480
|
+
*
|
|
481
|
+
* @see {@link isUtc} for narrowing to UTC date-times
|
|
482
|
+
* @see {@link match} for handling both UTC and zoned cases
|
|
436
483
|
*
|
|
437
484
|
* @category guards
|
|
438
485
|
* @since 3.6.0
|
|
439
486
|
*/
|
|
440
487
|
export declare const isZoned: (self: DateTime) => self is Zoned;
|
|
441
488
|
/**
|
|
442
|
-
*
|
|
489
|
+
* Provides an `Equivalence` for comparing two `DateTime` values for equality.
|
|
443
490
|
*
|
|
444
491
|
* **Details**
|
|
445
492
|
*
|
|
@@ -464,7 +511,7 @@ export declare const isZoned: (self: DateTime) => self is Zoned;
|
|
|
464
511
|
*/
|
|
465
512
|
export declare const Equivalence: Equ.Equivalence<DateTime>;
|
|
466
513
|
/**
|
|
467
|
-
*
|
|
514
|
+
* Provides an `Order` for comparing and sorting `DateTime` values.
|
|
468
515
|
*
|
|
469
516
|
* **Details**
|
|
470
517
|
*
|
|
@@ -491,7 +538,7 @@ export declare const Equivalence: Equ.Equivalence<DateTime>;
|
|
|
491
538
|
*/
|
|
492
539
|
export declare const Order: order.Order<DateTime>;
|
|
493
540
|
/**
|
|
494
|
-
*
|
|
541
|
+
* Returns a `DateTime` constrained between a minimum and maximum value.
|
|
495
542
|
*
|
|
496
543
|
* **Details**
|
|
497
544
|
*
|
|
@@ -512,12 +559,12 @@ export declare const Order: order.Order<DateTime>;
|
|
|
512
559
|
* // clamped equals max (2024-12-31)
|
|
513
560
|
* ```
|
|
514
561
|
*
|
|
515
|
-
* @category
|
|
562
|
+
* @category ordering
|
|
516
563
|
* @since 3.6.0
|
|
517
564
|
*/
|
|
518
565
|
export declare const clamp: {
|
|
519
566
|
/**
|
|
520
|
-
*
|
|
567
|
+
* Returns a `DateTime` constrained between a minimum and maximum value.
|
|
521
568
|
*
|
|
522
569
|
* **Details**
|
|
523
570
|
*
|
|
@@ -538,7 +585,7 @@ export declare const clamp: {
|
|
|
538
585
|
* // clamped equals max (2024-12-31)
|
|
539
586
|
* ```
|
|
540
587
|
*
|
|
541
|
-
* @category
|
|
588
|
+
* @category ordering
|
|
542
589
|
* @since 3.6.0
|
|
543
590
|
*/
|
|
544
591
|
<Min extends DateTime, Max extends DateTime>(options: {
|
|
@@ -546,7 +593,7 @@ export declare const clamp: {
|
|
|
546
593
|
readonly maximum: Max;
|
|
547
594
|
}): <A extends DateTime>(self: A) => A | Min | Max;
|
|
548
595
|
/**
|
|
549
|
-
*
|
|
596
|
+
* Returns a `DateTime` constrained between a minimum and maximum value.
|
|
550
597
|
*
|
|
551
598
|
* **Details**
|
|
552
599
|
*
|
|
@@ -567,7 +614,7 @@ export declare const clamp: {
|
|
|
567
614
|
* // clamped equals max (2024-12-31)
|
|
568
615
|
* ```
|
|
569
616
|
*
|
|
570
|
-
* @category
|
|
617
|
+
* @category ordering
|
|
571
618
|
* @since 3.6.0
|
|
572
619
|
*/
|
|
573
620
|
<A extends DateTime, Min extends DateTime, Max extends DateTime>(self: A, options: {
|
|
@@ -667,7 +714,7 @@ export declare const makeZonedUnsafe: (input: DateTime.Input, options?: {
|
|
|
667
714
|
readonly disambiguation?: Disambiguation | undefined;
|
|
668
715
|
}) => Zoned;
|
|
669
716
|
/**
|
|
670
|
-
* Creates a `DateTime.Zoned` from an input and a time zone.
|
|
717
|
+
* Creates a `DateTime.Zoned` safely from an input and a time zone.
|
|
671
718
|
*
|
|
672
719
|
* **Details**
|
|
673
720
|
*
|
|
@@ -711,7 +758,7 @@ export declare const makeZoned: (input: DateTime.Input, options?: {
|
|
|
711
758
|
readonly disambiguation?: Disambiguation | undefined;
|
|
712
759
|
}) => Option.Option<Zoned>;
|
|
713
760
|
/**
|
|
714
|
-
* Creates a `DateTime` from supported input values.
|
|
761
|
+
* Creates a `DateTime` safely from supported input values.
|
|
715
762
|
*
|
|
716
763
|
* **Details**
|
|
717
764
|
*
|
|
@@ -751,7 +798,7 @@ export declare const makeZoned: (input: DateTime.Input, options?: {
|
|
|
751
798
|
*/
|
|
752
799
|
export declare const make: <A extends DateTime.Input>(input: A) => Option.Option<DateTime.PreserveZone<A>>;
|
|
753
800
|
/**
|
|
754
|
-
* Parses an ISO zoned date-time string into a `DateTime.Zoned
|
|
801
|
+
* Parses an ISO zoned date-time string into a `DateTime.Zoned` safely.
|
|
755
802
|
*
|
|
756
803
|
* **Details**
|
|
757
804
|
*
|
|
@@ -782,7 +829,7 @@ export declare const make: <A extends DateTime.Input>(input: A) => Option.Option
|
|
|
782
829
|
*/
|
|
783
830
|
export declare const makeZonedFromString: (input: string) => Option.Option<Zoned>;
|
|
784
831
|
/**
|
|
785
|
-
*
|
|
832
|
+
* Gets the current time using the `Clock` service and convert it to a `DateTime`.
|
|
786
833
|
*
|
|
787
834
|
* **Example** (Getting the current DateTime)
|
|
788
835
|
*
|
|
@@ -818,7 +865,7 @@ export declare const now: Effect.Effect<Utc>;
|
|
|
818
865
|
*/
|
|
819
866
|
export declare const nowAsDate: Effect.Effect<Date>;
|
|
820
867
|
/**
|
|
821
|
-
*
|
|
868
|
+
* Gets the current time using `Date.now`.
|
|
822
869
|
*
|
|
823
870
|
* **Details**
|
|
824
871
|
*
|
|
@@ -839,7 +886,16 @@ export declare const nowAsDate: Effect.Effect<Date>;
|
|
|
839
886
|
*/
|
|
840
887
|
export declare const nowUnsafe: LazyArg<Utc>;
|
|
841
888
|
/**
|
|
842
|
-
*
|
|
889
|
+
* Converts a `DateTime` to a UTC `DateTime`.
|
|
890
|
+
*
|
|
891
|
+
* **When to use**
|
|
892
|
+
*
|
|
893
|
+
* Use to represent the same instant in UTC instead of its current time zone.
|
|
894
|
+
*
|
|
895
|
+
* **Details**
|
|
896
|
+
*
|
|
897
|
+
* The returned value keeps the same epoch milliseconds and changes only the
|
|
898
|
+
* `DateTime` representation to UTC.
|
|
843
899
|
*
|
|
844
900
|
* **Example** (Converting DateTime values to UTC)
|
|
845
901
|
*
|
|
@@ -859,7 +915,7 @@ export declare const nowUnsafe: LazyArg<Utc>;
|
|
|
859
915
|
*/
|
|
860
916
|
export declare const toUtc: (self: DateTime) => Utc;
|
|
861
917
|
/**
|
|
862
|
-
*
|
|
918
|
+
* Sets the time zone of a `DateTime`, returning a new `DateTime.Zoned`.
|
|
863
919
|
*
|
|
864
920
|
* **Example** (Setting time zones)
|
|
865
921
|
*
|
|
@@ -880,7 +936,7 @@ export declare const toUtc: (self: DateTime) => Utc;
|
|
|
880
936
|
*/
|
|
881
937
|
export declare const setZone: {
|
|
882
938
|
/**
|
|
883
|
-
*
|
|
939
|
+
* Sets the time zone of a `DateTime`, returning a new `DateTime.Zoned`.
|
|
884
940
|
*
|
|
885
941
|
* **Example** (Setting time zones)
|
|
886
942
|
*
|
|
@@ -904,7 +960,7 @@ export declare const setZone: {
|
|
|
904
960
|
readonly disambiguation?: Disambiguation | undefined;
|
|
905
961
|
}): (self: DateTime) => Zoned;
|
|
906
962
|
/**
|
|
907
|
-
*
|
|
963
|
+
* Sets the time zone of a `DateTime`, returning a new `DateTime.Zoned`.
|
|
908
964
|
*
|
|
909
965
|
* **Example** (Setting time zones)
|
|
910
966
|
*
|
|
@@ -929,7 +985,7 @@ export declare const setZone: {
|
|
|
929
985
|
}): Zoned;
|
|
930
986
|
};
|
|
931
987
|
/**
|
|
932
|
-
*
|
|
988
|
+
* Adds a fixed offset time zone to a `DateTime`.
|
|
933
989
|
*
|
|
934
990
|
* **Details**
|
|
935
991
|
*
|
|
@@ -953,7 +1009,7 @@ export declare const setZone: {
|
|
|
953
1009
|
*/
|
|
954
1010
|
export declare const setZoneOffset: {
|
|
955
1011
|
/**
|
|
956
|
-
*
|
|
1012
|
+
* Adds a fixed offset time zone to a `DateTime`.
|
|
957
1013
|
*
|
|
958
1014
|
* **Details**
|
|
959
1015
|
*
|
|
@@ -980,7 +1036,7 @@ export declare const setZoneOffset: {
|
|
|
980
1036
|
readonly disambiguation?: Disambiguation | undefined;
|
|
981
1037
|
}): (self: DateTime) => Zoned;
|
|
982
1038
|
/**
|
|
983
|
-
*
|
|
1039
|
+
* Adds a fixed offset time zone to a `DateTime`.
|
|
984
1040
|
*
|
|
985
1041
|
* **Details**
|
|
986
1042
|
*
|
|
@@ -1008,7 +1064,7 @@ export declare const setZoneOffset: {
|
|
|
1008
1064
|
}): Zoned;
|
|
1009
1065
|
};
|
|
1010
1066
|
/**
|
|
1011
|
-
*
|
|
1067
|
+
* Attempts to create a named time zone from an IANA time zone identifier.
|
|
1012
1068
|
*
|
|
1013
1069
|
* **Details**
|
|
1014
1070
|
*
|
|
@@ -1059,7 +1115,7 @@ export declare const zoneMakeNamedUnsafe: (zoneId: string) => TimeZone.Named;
|
|
|
1059
1115
|
*/
|
|
1060
1116
|
export declare const zoneMakeOffset: (offset: number) => TimeZone.Offset;
|
|
1061
1117
|
/**
|
|
1062
|
-
*
|
|
1118
|
+
* Creates a named time zone safely from an IANA time zone identifier.
|
|
1063
1119
|
*
|
|
1064
1120
|
* **Details**
|
|
1065
1121
|
*
|
|
@@ -1082,7 +1138,7 @@ export declare const zoneMakeOffset: (offset: number) => TimeZone.Offset;
|
|
|
1082
1138
|
*/
|
|
1083
1139
|
export declare const zoneMakeNamed: (zoneId: string) => Option.Option<TimeZone.Named>;
|
|
1084
1140
|
/**
|
|
1085
|
-
*
|
|
1141
|
+
* Creates a named time zone effectfully from an IANA time zone identifier.
|
|
1086
1142
|
*
|
|
1087
1143
|
* **Details**
|
|
1088
1144
|
*
|
|
@@ -1126,7 +1182,7 @@ export declare const zoneMakeNamedEffect: (zoneId: string) => Effect.Effect<Time
|
|
|
1126
1182
|
*/
|
|
1127
1183
|
export declare const zoneMakeLocal: () => TimeZone.Named;
|
|
1128
1184
|
/**
|
|
1129
|
-
*
|
|
1185
|
+
* Tries to parse a `TimeZone` from a string safely.
|
|
1130
1186
|
*
|
|
1131
1187
|
* **Details**
|
|
1132
1188
|
*
|
|
@@ -1151,7 +1207,7 @@ export declare const zoneMakeLocal: () => TimeZone.Named;
|
|
|
1151
1207
|
*/
|
|
1152
1208
|
export declare const zoneFromString: (zone: string) => Option.Option<TimeZone>;
|
|
1153
1209
|
/**
|
|
1154
|
-
*
|
|
1210
|
+
* Formats a `TimeZone` as a string.
|
|
1155
1211
|
*
|
|
1156
1212
|
* **Example** (Formatting time zones)
|
|
1157
1213
|
*
|
|
@@ -1170,7 +1226,7 @@ export declare const zoneFromString: (zone: string) => Option.Option<TimeZone>;
|
|
|
1170
1226
|
*/
|
|
1171
1227
|
export declare const zoneToString: (self: TimeZone) => string;
|
|
1172
1228
|
/**
|
|
1173
|
-
*
|
|
1229
|
+
* Sets the time zone of a `DateTime` safely from an IANA time zone identifier. If the
|
|
1174
1230
|
* time zone is invalid, `None` will be returned.
|
|
1175
1231
|
*
|
|
1176
1232
|
* **Example** (Setting named time zones safely)
|
|
@@ -1190,7 +1246,7 @@ export declare const zoneToString: (self: TimeZone) => string;
|
|
|
1190
1246
|
*/
|
|
1191
1247
|
export declare const setZoneNamed: {
|
|
1192
1248
|
/**
|
|
1193
|
-
*
|
|
1249
|
+
* Sets the time zone of a `DateTime` safely from an IANA time zone identifier. If the
|
|
1194
1250
|
* time zone is invalid, `None` will be returned.
|
|
1195
1251
|
*
|
|
1196
1252
|
* **Example** (Setting named time zones safely)
|
|
@@ -1213,7 +1269,7 @@ export declare const setZoneNamed: {
|
|
|
1213
1269
|
readonly disambiguation?: Disambiguation | undefined;
|
|
1214
1270
|
}): (self: DateTime) => Option.Option<Zoned>;
|
|
1215
1271
|
/**
|
|
1216
|
-
*
|
|
1272
|
+
* Sets the time zone of a `DateTime` safely from an IANA time zone identifier. If the
|
|
1217
1273
|
* time zone is invalid, `None` will be returned.
|
|
1218
1274
|
*
|
|
1219
1275
|
* **Example** (Setting named time zones safely)
|
|
@@ -1237,7 +1293,7 @@ export declare const setZoneNamed: {
|
|
|
1237
1293
|
}): Option.Option<Zoned>;
|
|
1238
1294
|
};
|
|
1239
1295
|
/**
|
|
1240
|
-
*
|
|
1296
|
+
* Sets the time zone of a `DateTime` from an IANA time zone identifier. If the
|
|
1241
1297
|
* time zone is invalid, an `IllegalArgumentError` will be thrown.
|
|
1242
1298
|
*
|
|
1243
1299
|
* **Example** (Setting named time zones unsafely)
|
|
@@ -1257,7 +1313,7 @@ export declare const setZoneNamed: {
|
|
|
1257
1313
|
*/
|
|
1258
1314
|
export declare const setZoneNamedUnsafe: {
|
|
1259
1315
|
/**
|
|
1260
|
-
*
|
|
1316
|
+
* Sets the time zone of a `DateTime` from an IANA time zone identifier. If the
|
|
1261
1317
|
* time zone is invalid, an `IllegalArgumentError` will be thrown.
|
|
1262
1318
|
*
|
|
1263
1319
|
* **Example** (Setting named time zones unsafely)
|
|
@@ -1280,7 +1336,7 @@ export declare const setZoneNamedUnsafe: {
|
|
|
1280
1336
|
readonly disambiguation?: Disambiguation | undefined;
|
|
1281
1337
|
}): (self: DateTime) => Zoned;
|
|
1282
1338
|
/**
|
|
1283
|
-
*
|
|
1339
|
+
* Sets the time zone of a `DateTime` from an IANA time zone identifier. If the
|
|
1284
1340
|
* time zone is invalid, an `IllegalArgumentError` will be thrown.
|
|
1285
1341
|
*
|
|
1286
1342
|
* **Example** (Setting named time zones unsafely)
|
|
@@ -1304,7 +1360,7 @@ export declare const setZoneNamedUnsafe: {
|
|
|
1304
1360
|
}): Zoned;
|
|
1305
1361
|
};
|
|
1306
1362
|
/**
|
|
1307
|
-
*
|
|
1363
|
+
* Computes the difference between two `DateTime` values, returning a
|
|
1308
1364
|
* `Duration` representing the amount of time between them.
|
|
1309
1365
|
*
|
|
1310
1366
|
* **Details**
|
|
@@ -1332,7 +1388,7 @@ export declare const setZoneNamedUnsafe: {
|
|
|
1332
1388
|
*/
|
|
1333
1389
|
export declare const distance: {
|
|
1334
1390
|
/**
|
|
1335
|
-
*
|
|
1391
|
+
* Computes the difference between two `DateTime` values, returning a
|
|
1336
1392
|
* `Duration` representing the amount of time between them.
|
|
1337
1393
|
*
|
|
1338
1394
|
* **Details**
|
|
@@ -1360,7 +1416,7 @@ export declare const distance: {
|
|
|
1360
1416
|
*/
|
|
1361
1417
|
(other: DateTime): (self: DateTime) => Duration.Duration;
|
|
1362
1418
|
/**
|
|
1363
|
-
*
|
|
1419
|
+
* Computes the difference between two `DateTime` values, returning a
|
|
1364
1420
|
* `Duration` representing the amount of time between them.
|
|
1365
1421
|
*
|
|
1366
1422
|
* **Details**
|
|
@@ -1505,7 +1561,7 @@ export declare const max: {
|
|
|
1505
1561
|
<Self extends DateTime, That extends DateTime>(self: Self, that: That): Self | That;
|
|
1506
1562
|
};
|
|
1507
1563
|
/**
|
|
1508
|
-
* Checks
|
|
1564
|
+
* Checks whether the first `DateTime` is after the second `DateTime`.
|
|
1509
1565
|
*
|
|
1510
1566
|
* **Example** (Checking whether a DateTime is later)
|
|
1511
1567
|
*
|
|
@@ -1524,7 +1580,7 @@ export declare const max: {
|
|
|
1524
1580
|
*/
|
|
1525
1581
|
export declare const isGreaterThan: {
|
|
1526
1582
|
/**
|
|
1527
|
-
* Checks
|
|
1583
|
+
* Checks whether the first `DateTime` is after the second `DateTime`.
|
|
1528
1584
|
*
|
|
1529
1585
|
* **Example** (Checking whether a DateTime is later)
|
|
1530
1586
|
*
|
|
@@ -1543,7 +1599,7 @@ export declare const isGreaterThan: {
|
|
|
1543
1599
|
*/
|
|
1544
1600
|
(that: DateTime): (self: DateTime) => boolean;
|
|
1545
1601
|
/**
|
|
1546
|
-
* Checks
|
|
1602
|
+
* Checks whether the first `DateTime` is after the second `DateTime`.
|
|
1547
1603
|
*
|
|
1548
1604
|
* **Example** (Checking whether a DateTime is later)
|
|
1549
1605
|
*
|
|
@@ -1563,7 +1619,7 @@ export declare const isGreaterThan: {
|
|
|
1563
1619
|
(self: DateTime, that: DateTime): boolean;
|
|
1564
1620
|
};
|
|
1565
1621
|
/**
|
|
1566
|
-
* Checks
|
|
1622
|
+
* Checks whether the first `DateTime` is after or equal to the second `DateTime`.
|
|
1567
1623
|
*
|
|
1568
1624
|
* **Example** (Checking whether a DateTime is later or equal)
|
|
1569
1625
|
*
|
|
@@ -1584,7 +1640,7 @@ export declare const isGreaterThan: {
|
|
|
1584
1640
|
*/
|
|
1585
1641
|
export declare const isGreaterThanOrEqualTo: {
|
|
1586
1642
|
/**
|
|
1587
|
-
* Checks
|
|
1643
|
+
* Checks whether the first `DateTime` is after or equal to the second `DateTime`.
|
|
1588
1644
|
*
|
|
1589
1645
|
* **Example** (Checking whether a DateTime is later or equal)
|
|
1590
1646
|
*
|
|
@@ -1605,7 +1661,7 @@ export declare const isGreaterThanOrEqualTo: {
|
|
|
1605
1661
|
*/
|
|
1606
1662
|
(that: DateTime): (self: DateTime) => boolean;
|
|
1607
1663
|
/**
|
|
1608
|
-
* Checks
|
|
1664
|
+
* Checks whether the first `DateTime` is after or equal to the second `DateTime`.
|
|
1609
1665
|
*
|
|
1610
1666
|
* **Example** (Checking whether a DateTime is later or equal)
|
|
1611
1667
|
*
|
|
@@ -1627,7 +1683,7 @@ export declare const isGreaterThanOrEqualTo: {
|
|
|
1627
1683
|
(self: DateTime, that: DateTime): boolean;
|
|
1628
1684
|
};
|
|
1629
1685
|
/**
|
|
1630
|
-
* Checks
|
|
1686
|
+
* Checks whether the first `DateTime` is before the second `DateTime`.
|
|
1631
1687
|
*
|
|
1632
1688
|
* **Example** (Checking whether a DateTime is earlier)
|
|
1633
1689
|
*
|
|
@@ -1646,7 +1702,7 @@ export declare const isGreaterThanOrEqualTo: {
|
|
|
1646
1702
|
*/
|
|
1647
1703
|
export declare const isLessThan: {
|
|
1648
1704
|
/**
|
|
1649
|
-
* Checks
|
|
1705
|
+
* Checks whether the first `DateTime` is before the second `DateTime`.
|
|
1650
1706
|
*
|
|
1651
1707
|
* **Example** (Checking whether a DateTime is earlier)
|
|
1652
1708
|
*
|
|
@@ -1665,7 +1721,7 @@ export declare const isLessThan: {
|
|
|
1665
1721
|
*/
|
|
1666
1722
|
(that: DateTime): (self: DateTime) => boolean;
|
|
1667
1723
|
/**
|
|
1668
|
-
* Checks
|
|
1724
|
+
* Checks whether the first `DateTime` is before the second `DateTime`.
|
|
1669
1725
|
*
|
|
1670
1726
|
* **Example** (Checking whether a DateTime is earlier)
|
|
1671
1727
|
*
|
|
@@ -1685,7 +1741,7 @@ export declare const isLessThan: {
|
|
|
1685
1741
|
(self: DateTime, that: DateTime): boolean;
|
|
1686
1742
|
};
|
|
1687
1743
|
/**
|
|
1688
|
-
* Checks
|
|
1744
|
+
* Checks whether the first `DateTime` is before or equal to the second `DateTime`.
|
|
1689
1745
|
*
|
|
1690
1746
|
* **Example** (Checking whether a DateTime is earlier or equal)
|
|
1691
1747
|
*
|
|
@@ -1706,7 +1762,7 @@ export declare const isLessThan: {
|
|
|
1706
1762
|
*/
|
|
1707
1763
|
export declare const isLessThanOrEqualTo: {
|
|
1708
1764
|
/**
|
|
1709
|
-
* Checks
|
|
1765
|
+
* Checks whether the first `DateTime` is before or equal to the second `DateTime`.
|
|
1710
1766
|
*
|
|
1711
1767
|
* **Example** (Checking whether a DateTime is earlier or equal)
|
|
1712
1768
|
*
|
|
@@ -1727,7 +1783,7 @@ export declare const isLessThanOrEqualTo: {
|
|
|
1727
1783
|
*/
|
|
1728
1784
|
(that: DateTime): (self: DateTime) => boolean;
|
|
1729
1785
|
/**
|
|
1730
|
-
* Checks
|
|
1786
|
+
* Checks whether the first `DateTime` is before or equal to the second `DateTime`.
|
|
1731
1787
|
*
|
|
1732
1788
|
* **Example** (Checking whether a DateTime is earlier or equal)
|
|
1733
1789
|
*
|
|
@@ -1749,7 +1805,7 @@ export declare const isLessThanOrEqualTo: {
|
|
|
1749
1805
|
(self: DateTime, that: DateTime): boolean;
|
|
1750
1806
|
};
|
|
1751
1807
|
/**
|
|
1752
|
-
* Checks
|
|
1808
|
+
* Checks whether a `DateTime` is between two other `DateTime` values (inclusive).
|
|
1753
1809
|
*
|
|
1754
1810
|
* **Example** (Checking whether a DateTime is within bounds)
|
|
1755
1811
|
*
|
|
@@ -1768,7 +1824,7 @@ export declare const isLessThanOrEqualTo: {
|
|
|
1768
1824
|
*/
|
|
1769
1825
|
export declare const between: {
|
|
1770
1826
|
/**
|
|
1771
|
-
* Checks
|
|
1827
|
+
* Checks whether a `DateTime` is between two other `DateTime` values (inclusive).
|
|
1772
1828
|
*
|
|
1773
1829
|
* **Example** (Checking whether a DateTime is within bounds)
|
|
1774
1830
|
*
|
|
@@ -1790,7 +1846,7 @@ export declare const between: {
|
|
|
1790
1846
|
maximum: DateTime;
|
|
1791
1847
|
}): (self: DateTime) => boolean;
|
|
1792
1848
|
/**
|
|
1793
|
-
* Checks
|
|
1849
|
+
* Checks whether a `DateTime` is between two other `DateTime` values (inclusive).
|
|
1794
1850
|
*
|
|
1795
1851
|
* **Example** (Checking whether a DateTime is within bounds)
|
|
1796
1852
|
*
|
|
@@ -1813,7 +1869,7 @@ export declare const between: {
|
|
|
1813
1869
|
}): boolean;
|
|
1814
1870
|
};
|
|
1815
1871
|
/**
|
|
1816
|
-
* Checks if a `DateTime` is in the future compared to the current time.
|
|
1872
|
+
* Checks effectfully if a `DateTime` is in the future compared to the current time.
|
|
1817
1873
|
*
|
|
1818
1874
|
* **Details**
|
|
1819
1875
|
*
|
|
@@ -1836,7 +1892,7 @@ export declare const between: {
|
|
|
1836
1892
|
*/
|
|
1837
1893
|
export declare const isFuture: (self: DateTime) => Effect.Effect<boolean>;
|
|
1838
1894
|
/**
|
|
1839
|
-
* Checks if a `DateTime` is in the future compared to the current time.
|
|
1895
|
+
* Checks synchronously if a `DateTime` is in the future compared to the current time.
|
|
1840
1896
|
*
|
|
1841
1897
|
* **Details**
|
|
1842
1898
|
*
|
|
@@ -1859,7 +1915,7 @@ export declare const isFuture: (self: DateTime) => Effect.Effect<boolean>;
|
|
|
1859
1915
|
*/
|
|
1860
1916
|
export declare const isFutureUnsafe: (self: DateTime) => boolean;
|
|
1861
1917
|
/**
|
|
1862
|
-
* Checks if a `DateTime` is in the past compared to the current time.
|
|
1918
|
+
* Checks effectfully if a `DateTime` is in the past compared to the current time.
|
|
1863
1919
|
*
|
|
1864
1920
|
* **Details**
|
|
1865
1921
|
*
|
|
@@ -1882,7 +1938,7 @@ export declare const isFutureUnsafe: (self: DateTime) => boolean;
|
|
|
1882
1938
|
*/
|
|
1883
1939
|
export declare const isPast: (self: DateTime) => Effect.Effect<boolean>;
|
|
1884
1940
|
/**
|
|
1885
|
-
* Checks if a `DateTime` is in the past compared to the current time.
|
|
1941
|
+
* Checks synchronously if a `DateTime` is in the past compared to the current time.
|
|
1886
1942
|
*
|
|
1887
1943
|
* **Details**
|
|
1888
1944
|
*
|
|
@@ -1905,7 +1961,7 @@ export declare const isPast: (self: DateTime) => Effect.Effect<boolean>;
|
|
|
1905
1961
|
*/
|
|
1906
1962
|
export declare const isPastUnsafe: (self: DateTime) => boolean;
|
|
1907
1963
|
/**
|
|
1908
|
-
*
|
|
1964
|
+
* Gets the UTC `Date` of a `DateTime`.
|
|
1909
1965
|
*
|
|
1910
1966
|
* **Details**
|
|
1911
1967
|
*
|
|
@@ -1929,7 +1985,7 @@ export declare const isPastUnsafe: (self: DateTime) => boolean;
|
|
|
1929
1985
|
*/
|
|
1930
1986
|
export declare const toDateUtc: (self: DateTime) => Date;
|
|
1931
1987
|
/**
|
|
1932
|
-
*
|
|
1988
|
+
* Converts a `DateTime` to a `Date`, applying the time zone first.
|
|
1933
1989
|
*
|
|
1934
1990
|
* **Details**
|
|
1935
1991
|
*
|
|
@@ -1955,7 +2011,7 @@ export declare const toDateUtc: (self: DateTime) => Date;
|
|
|
1955
2011
|
*/
|
|
1956
2012
|
export declare const toDate: (self: DateTime) => Date;
|
|
1957
2013
|
/**
|
|
1958
|
-
*
|
|
2014
|
+
* Computes the time zone offset of a `DateTime.Zoned` in milliseconds.
|
|
1959
2015
|
*
|
|
1960
2016
|
* **Details**
|
|
1961
2017
|
*
|
|
@@ -1980,7 +2036,7 @@ export declare const toDate: (self: DateTime) => Date;
|
|
|
1980
2036
|
*/
|
|
1981
2037
|
export declare const zonedOffset: (self: Zoned) => number;
|
|
1982
2038
|
/**
|
|
1983
|
-
*
|
|
2039
|
+
* Formats the time zone offset of a `DateTime.Zoned` as an ISO string.
|
|
1984
2040
|
*
|
|
1985
2041
|
* **Details**
|
|
1986
2042
|
*
|
|
@@ -2004,7 +2060,7 @@ export declare const zonedOffset: (self: Zoned) => number;
|
|
|
2004
2060
|
*/
|
|
2005
2061
|
export declare const zonedOffsetIso: (self: Zoned) => string;
|
|
2006
2062
|
/**
|
|
2007
|
-
*
|
|
2063
|
+
* Gets the milliseconds since the Unix epoch of a `DateTime`.
|
|
2008
2064
|
*
|
|
2009
2065
|
* **Details**
|
|
2010
2066
|
*
|
|
@@ -2026,7 +2082,7 @@ export declare const zonedOffsetIso: (self: Zoned) => string;
|
|
|
2026
2082
|
*/
|
|
2027
2083
|
export declare const toEpochMillis: (self: DateTime) => number;
|
|
2028
2084
|
/**
|
|
2029
|
-
*
|
|
2085
|
+
* Removes the time aspect of a `DateTime`, first adjusting for the time
|
|
2030
2086
|
* zone. It will return a `DateTime.Utc` only containing the date.
|
|
2031
2087
|
*
|
|
2032
2088
|
* **Example** (Removing time components)
|
|
@@ -2049,7 +2105,7 @@ export declare const toEpochMillis: (self: DateTime) => number;
|
|
|
2049
2105
|
*/
|
|
2050
2106
|
export declare const removeTime: (self: DateTime) => Utc;
|
|
2051
2107
|
/**
|
|
2052
|
-
*
|
|
2108
|
+
* Gets the time-zone-adjusted parts of a `DateTime` as an object.
|
|
2053
2109
|
*
|
|
2054
2110
|
* **Details**
|
|
2055
2111
|
*
|
|
@@ -2081,7 +2137,7 @@ export declare const removeTime: (self: DateTime) => Utc;
|
|
|
2081
2137
|
*/
|
|
2082
2138
|
export declare const toParts: (self: DateTime) => DateTime.PartsWithWeekday;
|
|
2083
2139
|
/**
|
|
2084
|
-
*
|
|
2140
|
+
* Gets the UTC parts of a `DateTime` as an object.
|
|
2085
2141
|
*
|
|
2086
2142
|
* **Details**
|
|
2087
2143
|
*
|
|
@@ -2106,7 +2162,7 @@ export declare const toParts: (self: DateTime) => DateTime.PartsWithWeekday;
|
|
|
2106
2162
|
*/
|
|
2107
2163
|
export declare const toPartsUtc: (self: DateTime) => DateTime.PartsWithWeekday;
|
|
2108
2164
|
/**
|
|
2109
|
-
*
|
|
2165
|
+
* Gets one UTC part of a `DateTime` as a number.
|
|
2110
2166
|
*
|
|
2111
2167
|
* **Details**
|
|
2112
2168
|
*
|
|
@@ -2127,7 +2183,7 @@ export declare const toPartsUtc: (self: DateTime) => DateTime.PartsWithWeekday;
|
|
|
2127
2183
|
*/
|
|
2128
2184
|
export declare const getPartUtc: {
|
|
2129
2185
|
/**
|
|
2130
|
-
*
|
|
2186
|
+
* Gets one UTC part of a `DateTime` as a number.
|
|
2131
2187
|
*
|
|
2132
2188
|
* **Details**
|
|
2133
2189
|
*
|
|
@@ -2148,7 +2204,7 @@ export declare const getPartUtc: {
|
|
|
2148
2204
|
*/
|
|
2149
2205
|
(part: keyof DateTime.PartsWithWeekday): (self: DateTime) => number;
|
|
2150
2206
|
/**
|
|
2151
|
-
*
|
|
2207
|
+
* Gets one UTC part of a `DateTime` as a number.
|
|
2152
2208
|
*
|
|
2153
2209
|
* **Details**
|
|
2154
2210
|
*
|
|
@@ -2170,7 +2226,7 @@ export declare const getPartUtc: {
|
|
|
2170
2226
|
(self: DateTime, part: keyof DateTime.PartsWithWeekday): number;
|
|
2171
2227
|
};
|
|
2172
2228
|
/**
|
|
2173
|
-
*
|
|
2229
|
+
* Gets one time-zone-adjusted part of a `DateTime` as a number.
|
|
2174
2230
|
*
|
|
2175
2231
|
* **Details**
|
|
2176
2232
|
*
|
|
@@ -2193,7 +2249,7 @@ export declare const getPartUtc: {
|
|
|
2193
2249
|
*/
|
|
2194
2250
|
export declare const getPart: {
|
|
2195
2251
|
/**
|
|
2196
|
-
*
|
|
2252
|
+
* Gets one time-zone-adjusted part of a `DateTime` as a number.
|
|
2197
2253
|
*
|
|
2198
2254
|
* **Details**
|
|
2199
2255
|
*
|
|
@@ -2216,7 +2272,7 @@ export declare const getPart: {
|
|
|
2216
2272
|
*/
|
|
2217
2273
|
(part: keyof DateTime.PartsWithWeekday): (self: DateTime) => number;
|
|
2218
2274
|
/**
|
|
2219
|
-
*
|
|
2275
|
+
* Gets one time-zone-adjusted part of a `DateTime` as a number.
|
|
2220
2276
|
*
|
|
2221
2277
|
* **Details**
|
|
2222
2278
|
*
|
|
@@ -2240,7 +2296,7 @@ export declare const getPart: {
|
|
|
2240
2296
|
(self: DateTime, part: keyof DateTime.PartsWithWeekday): number;
|
|
2241
2297
|
};
|
|
2242
2298
|
/**
|
|
2243
|
-
*
|
|
2299
|
+
* Sets time-zone-adjusted parts on a `DateTime`.
|
|
2244
2300
|
*
|
|
2245
2301
|
* **Details**
|
|
2246
2302
|
*
|
|
@@ -2266,7 +2322,7 @@ export declare const getPart: {
|
|
|
2266
2322
|
*/
|
|
2267
2323
|
export declare const setParts: {
|
|
2268
2324
|
/**
|
|
2269
|
-
*
|
|
2325
|
+
* Sets time-zone-adjusted parts on a `DateTime`.
|
|
2270
2326
|
*
|
|
2271
2327
|
* **Details**
|
|
2272
2328
|
*
|
|
@@ -2292,7 +2348,7 @@ export declare const setParts: {
|
|
|
2292
2348
|
*/
|
|
2293
2349
|
(parts: Partial<DateTime.PartsWithWeekday>): <A extends DateTime>(self: A) => A;
|
|
2294
2350
|
/**
|
|
2295
|
-
*
|
|
2351
|
+
* Sets time-zone-adjusted parts on a `DateTime`.
|
|
2296
2352
|
*
|
|
2297
2353
|
* **Details**
|
|
2298
2354
|
*
|
|
@@ -2319,7 +2375,7 @@ export declare const setParts: {
|
|
|
2319
2375
|
<A extends DateTime>(self: A, parts: Partial<DateTime.PartsWithWeekday>): A;
|
|
2320
2376
|
};
|
|
2321
2377
|
/**
|
|
2322
|
-
*
|
|
2378
|
+
* Sets UTC parts on a `DateTime`.
|
|
2323
2379
|
*
|
|
2324
2380
|
* **Details**
|
|
2325
2381
|
*
|
|
@@ -2344,7 +2400,7 @@ export declare const setParts: {
|
|
|
2344
2400
|
*/
|
|
2345
2401
|
export declare const setPartsUtc: {
|
|
2346
2402
|
/**
|
|
2347
|
-
*
|
|
2403
|
+
* Sets UTC parts on a `DateTime`.
|
|
2348
2404
|
*
|
|
2349
2405
|
* **Details**
|
|
2350
2406
|
*
|
|
@@ -2369,7 +2425,7 @@ export declare const setPartsUtc: {
|
|
|
2369
2425
|
*/
|
|
2370
2426
|
(parts: Partial<DateTime.PartsWithWeekday>): <A extends DateTime>(self: A) => A;
|
|
2371
2427
|
/**
|
|
2372
|
-
*
|
|
2428
|
+
* Sets UTC parts on a `DateTime`.
|
|
2373
2429
|
*
|
|
2374
2430
|
* **Details**
|
|
2375
2431
|
*
|
|
@@ -2427,7 +2483,7 @@ declare const CurrentTimeZone_base: Context.ServiceClass<CurrentTimeZone, "effec
|
|
|
2427
2483
|
export declare class CurrentTimeZone extends CurrentTimeZone_base {
|
|
2428
2484
|
}
|
|
2429
2485
|
/**
|
|
2430
|
-
*
|
|
2486
|
+
* Sets the time zone of a `DateTime` to the current time zone, which is
|
|
2431
2487
|
* determined by the `CurrentTimeZone` service.
|
|
2432
2488
|
*
|
|
2433
2489
|
* **Example** (Setting the current time zone)
|
|
@@ -2448,7 +2504,7 @@ export declare class CurrentTimeZone extends CurrentTimeZone_base {
|
|
|
2448
2504
|
*/
|
|
2449
2505
|
export declare const setZoneCurrent: (self: DateTime) => Effect.Effect<Zoned, never, CurrentTimeZone>;
|
|
2450
2506
|
/**
|
|
2451
|
-
*
|
|
2507
|
+
* Provides the `CurrentTimeZone` to an effect.
|
|
2452
2508
|
*
|
|
2453
2509
|
* **Example** (Providing the current time zone)
|
|
2454
2510
|
*
|
|
@@ -2467,7 +2523,7 @@ export declare const setZoneCurrent: (self: DateTime) => Effect.Effect<Zoned, ne
|
|
|
2467
2523
|
*/
|
|
2468
2524
|
export declare const withCurrentZone: {
|
|
2469
2525
|
/**
|
|
2470
|
-
*
|
|
2526
|
+
* Provides the `CurrentTimeZone` to an effect.
|
|
2471
2527
|
*
|
|
2472
2528
|
* **Example** (Providing the current time zone)
|
|
2473
2529
|
*
|
|
@@ -2486,7 +2542,7 @@ export declare const withCurrentZone: {
|
|
|
2486
2542
|
*/
|
|
2487
2543
|
(value: TimeZone): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, CurrentTimeZone>>;
|
|
2488
2544
|
/**
|
|
2489
|
-
*
|
|
2545
|
+
* Provides the `CurrentTimeZone` to an effect.
|
|
2490
2546
|
*
|
|
2491
2547
|
* **Example** (Providing the current time zone)
|
|
2492
2548
|
*
|
|
@@ -2506,7 +2562,7 @@ export declare const withCurrentZone: {
|
|
|
2506
2562
|
<A, E, R>(self: Effect.Effect<A, E, R>, value: TimeZone): Effect.Effect<A, E, Exclude<R, CurrentTimeZone>>;
|
|
2507
2563
|
};
|
|
2508
2564
|
/**
|
|
2509
|
-
*
|
|
2565
|
+
* Provides the `CurrentTimeZone` to an effect, using the system's local time
|
|
2510
2566
|
* zone.
|
|
2511
2567
|
*
|
|
2512
2568
|
* **Example** (Providing the local time zone)
|
|
@@ -2525,7 +2581,7 @@ export declare const withCurrentZone: {
|
|
|
2525
2581
|
*/
|
|
2526
2582
|
export declare const withCurrentZoneLocal: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, CurrentTimeZone>>;
|
|
2527
2583
|
/**
|
|
2528
|
-
*
|
|
2584
|
+
* Provides the `CurrentTimeZone` to an effect, using an offset.
|
|
2529
2585
|
*
|
|
2530
2586
|
* **Example** (Providing a fixed-offset time zone)
|
|
2531
2587
|
*
|
|
@@ -2543,7 +2599,7 @@ export declare const withCurrentZoneLocal: <A, E, R>(effect: Effect.Effect<A, E,
|
|
|
2543
2599
|
*/
|
|
2544
2600
|
export declare const withCurrentZoneOffset: {
|
|
2545
2601
|
/**
|
|
2546
|
-
*
|
|
2602
|
+
* Provides the `CurrentTimeZone` to an effect, using an offset.
|
|
2547
2603
|
*
|
|
2548
2604
|
* **Example** (Providing a fixed-offset time zone)
|
|
2549
2605
|
*
|
|
@@ -2561,7 +2617,7 @@ export declare const withCurrentZoneOffset: {
|
|
|
2561
2617
|
*/
|
|
2562
2618
|
(offset: number): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, CurrentTimeZone>>;
|
|
2563
2619
|
/**
|
|
2564
|
-
*
|
|
2620
|
+
* Provides the `CurrentTimeZone` to an effect, using an offset.
|
|
2565
2621
|
*
|
|
2566
2622
|
* **Example** (Providing a fixed-offset time zone)
|
|
2567
2623
|
*
|
|
@@ -2580,7 +2636,7 @@ export declare const withCurrentZoneOffset: {
|
|
|
2580
2636
|
<A, E, R>(effect: Effect.Effect<A, E, R>, offset: number): Effect.Effect<A, E, Exclude<R, CurrentTimeZone>>;
|
|
2581
2637
|
};
|
|
2582
2638
|
/**
|
|
2583
|
-
*
|
|
2639
|
+
* Provides the `CurrentTimeZone` to an effect using an IANA time zone
|
|
2584
2640
|
* identifier.
|
|
2585
2641
|
*
|
|
2586
2642
|
* **Details**
|
|
@@ -2603,7 +2659,7 @@ export declare const withCurrentZoneOffset: {
|
|
|
2603
2659
|
*/
|
|
2604
2660
|
export declare const withCurrentZoneNamed: {
|
|
2605
2661
|
/**
|
|
2606
|
-
*
|
|
2662
|
+
* Provides the `CurrentTimeZone` to an effect using an IANA time zone
|
|
2607
2663
|
* identifier.
|
|
2608
2664
|
*
|
|
2609
2665
|
* **Details**
|
|
@@ -2626,7 +2682,7 @@ export declare const withCurrentZoneNamed: {
|
|
|
2626
2682
|
*/
|
|
2627
2683
|
(zone: string): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E | IllegalArgumentError, Exclude<R, CurrentTimeZone>>;
|
|
2628
2684
|
/**
|
|
2629
|
-
*
|
|
2685
|
+
* Provides the `CurrentTimeZone` to an effect using an IANA time zone
|
|
2630
2686
|
* identifier.
|
|
2631
2687
|
*
|
|
2632
2688
|
* **Details**
|
|
@@ -2650,7 +2706,7 @@ export declare const withCurrentZoneNamed: {
|
|
|
2650
2706
|
<A, E, R>(effect: Effect.Effect<A, E, R>, zone: string): Effect.Effect<A, E | IllegalArgumentError, Exclude<R, CurrentTimeZone>>;
|
|
2651
2707
|
};
|
|
2652
2708
|
/**
|
|
2653
|
-
*
|
|
2709
|
+
* Gets the current time as a `DateTime.Zoned`, using the `CurrentTimeZone`.
|
|
2654
2710
|
*
|
|
2655
2711
|
* **Example** (Getting the current time in the current zone)
|
|
2656
2712
|
*
|
|
@@ -2668,7 +2724,12 @@ export declare const withCurrentZoneNamed: {
|
|
|
2668
2724
|
*/
|
|
2669
2725
|
export declare const nowInCurrentZone: Effect.Effect<Zoned, never, CurrentTimeZone>;
|
|
2670
2726
|
/**
|
|
2671
|
-
*
|
|
2727
|
+
* Modifies a `DateTime` with a mutable local `Date` copy.
|
|
2728
|
+
*
|
|
2729
|
+
* **When to use**
|
|
2730
|
+
*
|
|
2731
|
+
* Use to adjust calendar fields in the `DateTime`'s own time zone with an
|
|
2732
|
+
* existing `Date` mutation API.
|
|
2672
2733
|
*
|
|
2673
2734
|
* **Details**
|
|
2674
2735
|
*
|
|
@@ -2697,7 +2758,12 @@ export declare const nowInCurrentZone: Effect.Effect<Zoned, never, CurrentTimeZo
|
|
|
2697
2758
|
*/
|
|
2698
2759
|
export declare const mutate: {
|
|
2699
2760
|
/**
|
|
2700
|
-
*
|
|
2761
|
+
* Modifies a `DateTime` with a mutable local `Date` copy.
|
|
2762
|
+
*
|
|
2763
|
+
* **When to use**
|
|
2764
|
+
*
|
|
2765
|
+
* Use to adjust calendar fields in the `DateTime`'s own time zone with an
|
|
2766
|
+
* existing `Date` mutation API.
|
|
2701
2767
|
*
|
|
2702
2768
|
* **Details**
|
|
2703
2769
|
*
|
|
@@ -2728,7 +2794,12 @@ export declare const mutate: {
|
|
|
2728
2794
|
readonly disambiguation?: Disambiguation | undefined;
|
|
2729
2795
|
}): <A extends DateTime>(self: A) => A;
|
|
2730
2796
|
/**
|
|
2731
|
-
*
|
|
2797
|
+
* Modifies a `DateTime` with a mutable local `Date` copy.
|
|
2798
|
+
*
|
|
2799
|
+
* **When to use**
|
|
2800
|
+
*
|
|
2801
|
+
* Use to adjust calendar fields in the `DateTime`'s own time zone with an
|
|
2802
|
+
* existing `Date` mutation API.
|
|
2732
2803
|
*
|
|
2733
2804
|
* **Details**
|
|
2734
2805
|
*
|
|
@@ -2760,7 +2831,12 @@ export declare const mutate: {
|
|
|
2760
2831
|
}): A;
|
|
2761
2832
|
};
|
|
2762
2833
|
/**
|
|
2763
|
-
*
|
|
2834
|
+
* Modifies a `DateTime` with a mutable UTC `Date` copy.
|
|
2835
|
+
*
|
|
2836
|
+
* **When to use**
|
|
2837
|
+
*
|
|
2838
|
+
* Use to adjust the instant with an existing `Date` mutation API that works on
|
|
2839
|
+
* UTC calendar fields.
|
|
2764
2840
|
*
|
|
2765
2841
|
* **Example** (Mutating DateTime values with UTC Dates)
|
|
2766
2842
|
*
|
|
@@ -2783,7 +2859,12 @@ export declare const mutate: {
|
|
|
2783
2859
|
*/
|
|
2784
2860
|
export declare const mutateUtc: {
|
|
2785
2861
|
/**
|
|
2786
|
-
*
|
|
2862
|
+
* Modifies a `DateTime` with a mutable UTC `Date` copy.
|
|
2863
|
+
*
|
|
2864
|
+
* **When to use**
|
|
2865
|
+
*
|
|
2866
|
+
* Use to adjust the instant with an existing `Date` mutation API that works on
|
|
2867
|
+
* UTC calendar fields.
|
|
2787
2868
|
*
|
|
2788
2869
|
* **Example** (Mutating DateTime values with UTC Dates)
|
|
2789
2870
|
*
|
|
@@ -2806,7 +2887,12 @@ export declare const mutateUtc: {
|
|
|
2806
2887
|
*/
|
|
2807
2888
|
(f: (date: Date) => void): <A extends DateTime>(self: A) => A;
|
|
2808
2889
|
/**
|
|
2809
|
-
*
|
|
2890
|
+
* Modifies a `DateTime` with a mutable UTC `Date` copy.
|
|
2891
|
+
*
|
|
2892
|
+
* **When to use**
|
|
2893
|
+
*
|
|
2894
|
+
* Use to adjust the instant with an existing `Date` mutation API that works on
|
|
2895
|
+
* UTC calendar fields.
|
|
2810
2896
|
*
|
|
2811
2897
|
* **Example** (Mutating DateTime values with UTC Dates)
|
|
2812
2898
|
*
|
|
@@ -2830,7 +2916,7 @@ export declare const mutateUtc: {
|
|
|
2830
2916
|
<A extends DateTime>(self: A, f: (date: Date) => void): A;
|
|
2831
2917
|
};
|
|
2832
2918
|
/**
|
|
2833
|
-
*
|
|
2919
|
+
* Transforms a `DateTime` by applying a function to the number of milliseconds
|
|
2834
2920
|
* since the Unix epoch.
|
|
2835
2921
|
*
|
|
2836
2922
|
* **Example** (Mapping epoch milliseconds)
|
|
@@ -2849,7 +2935,7 @@ export declare const mutateUtc: {
|
|
|
2849
2935
|
*/
|
|
2850
2936
|
export declare const mapEpochMillis: {
|
|
2851
2937
|
/**
|
|
2852
|
-
*
|
|
2938
|
+
* Transforms a `DateTime` by applying a function to the number of milliseconds
|
|
2853
2939
|
* since the Unix epoch.
|
|
2854
2940
|
*
|
|
2855
2941
|
* **Example** (Mapping epoch milliseconds)
|
|
@@ -2868,7 +2954,7 @@ export declare const mapEpochMillis: {
|
|
|
2868
2954
|
*/
|
|
2869
2955
|
(f: (millis: number) => number): <A extends DateTime>(self: A) => A;
|
|
2870
2956
|
/**
|
|
2871
|
-
*
|
|
2957
|
+
* Transforms a `DateTime` by applying a function to the number of milliseconds
|
|
2872
2958
|
* since the Unix epoch.
|
|
2873
2959
|
*
|
|
2874
2960
|
* **Example** (Mapping epoch milliseconds)
|
|
@@ -3137,7 +3223,23 @@ export declare const match: {
|
|
|
3137
3223
|
}): A | B;
|
|
3138
3224
|
};
|
|
3139
3225
|
/**
|
|
3140
|
-
*
|
|
3226
|
+
* Adds the given `Duration` to a `DateTime`.
|
|
3227
|
+
*
|
|
3228
|
+
* **When to use**
|
|
3229
|
+
*
|
|
3230
|
+
* Use to move a `DateTime` by an elapsed duration such as minutes, seconds, or
|
|
3231
|
+
* milliseconds.
|
|
3232
|
+
*
|
|
3233
|
+
* **Details**
|
|
3234
|
+
*
|
|
3235
|
+
* The duration is converted to milliseconds and added to the epoch
|
|
3236
|
+
* milliseconds. Zoned values keep their original time zone.
|
|
3237
|
+
*
|
|
3238
|
+
* **Gotchas**
|
|
3239
|
+
*
|
|
3240
|
+
* This is elapsed-time arithmetic, not calendar-aware local date arithmetic.
|
|
3241
|
+
* Use `add` when adding days, weeks, months, or years should account for the
|
|
3242
|
+
* date/time zone rules.
|
|
3141
3243
|
*
|
|
3142
3244
|
* **Example** (Adding durations)
|
|
3143
3245
|
*
|
|
@@ -3150,12 +3252,31 @@ export declare const match: {
|
|
|
3150
3252
|
* )
|
|
3151
3253
|
* ```
|
|
3152
3254
|
*
|
|
3255
|
+
* @see {@link add} for calendar-aware date/time part arithmetic
|
|
3256
|
+
* @see {@link subtractDuration} for subtracting an elapsed duration
|
|
3257
|
+
*
|
|
3153
3258
|
* @category math
|
|
3154
3259
|
* @since 3.6.0
|
|
3155
3260
|
*/
|
|
3156
3261
|
export declare const addDuration: {
|
|
3157
3262
|
/**
|
|
3158
|
-
*
|
|
3263
|
+
* Adds the given `Duration` to a `DateTime`.
|
|
3264
|
+
*
|
|
3265
|
+
* **When to use**
|
|
3266
|
+
*
|
|
3267
|
+
* Use to move a `DateTime` by an elapsed duration such as minutes, seconds, or
|
|
3268
|
+
* milliseconds.
|
|
3269
|
+
*
|
|
3270
|
+
* **Details**
|
|
3271
|
+
*
|
|
3272
|
+
* The duration is converted to milliseconds and added to the epoch
|
|
3273
|
+
* milliseconds. Zoned values keep their original time zone.
|
|
3274
|
+
*
|
|
3275
|
+
* **Gotchas**
|
|
3276
|
+
*
|
|
3277
|
+
* This is elapsed-time arithmetic, not calendar-aware local date arithmetic.
|
|
3278
|
+
* Use `add` when adding days, weeks, months, or years should account for the
|
|
3279
|
+
* date/time zone rules.
|
|
3159
3280
|
*
|
|
3160
3281
|
* **Example** (Adding durations)
|
|
3161
3282
|
*
|
|
@@ -3168,12 +3289,31 @@ export declare const addDuration: {
|
|
|
3168
3289
|
* )
|
|
3169
3290
|
* ```
|
|
3170
3291
|
*
|
|
3292
|
+
* @see {@link add} for calendar-aware date/time part arithmetic
|
|
3293
|
+
* @see {@link subtractDuration} for subtracting an elapsed duration
|
|
3294
|
+
*
|
|
3171
3295
|
* @category math
|
|
3172
3296
|
* @since 3.6.0
|
|
3173
3297
|
*/
|
|
3174
3298
|
(duration: Duration.Input): <A extends DateTime>(self: A) => A;
|
|
3175
3299
|
/**
|
|
3176
|
-
*
|
|
3300
|
+
* Adds the given `Duration` to a `DateTime`.
|
|
3301
|
+
*
|
|
3302
|
+
* **When to use**
|
|
3303
|
+
*
|
|
3304
|
+
* Use to move a `DateTime` by an elapsed duration such as minutes, seconds, or
|
|
3305
|
+
* milliseconds.
|
|
3306
|
+
*
|
|
3307
|
+
* **Details**
|
|
3308
|
+
*
|
|
3309
|
+
* The duration is converted to milliseconds and added to the epoch
|
|
3310
|
+
* milliseconds. Zoned values keep their original time zone.
|
|
3311
|
+
*
|
|
3312
|
+
* **Gotchas**
|
|
3313
|
+
*
|
|
3314
|
+
* This is elapsed-time arithmetic, not calendar-aware local date arithmetic.
|
|
3315
|
+
* Use `add` when adding days, weeks, months, or years should account for the
|
|
3316
|
+
* date/time zone rules.
|
|
3177
3317
|
*
|
|
3178
3318
|
* **Example** (Adding durations)
|
|
3179
3319
|
*
|
|
@@ -3186,13 +3326,16 @@ export declare const addDuration: {
|
|
|
3186
3326
|
* )
|
|
3187
3327
|
* ```
|
|
3188
3328
|
*
|
|
3329
|
+
* @see {@link add} for calendar-aware date/time part arithmetic
|
|
3330
|
+
* @see {@link subtractDuration} for subtracting an elapsed duration
|
|
3331
|
+
*
|
|
3189
3332
|
* @category math
|
|
3190
3333
|
* @since 3.6.0
|
|
3191
3334
|
*/
|
|
3192
3335
|
<A extends DateTime>(self: A, duration: Duration.Input): A;
|
|
3193
3336
|
};
|
|
3194
3337
|
/**
|
|
3195
|
-
*
|
|
3338
|
+
* Subtracts the given `Duration` from a `DateTime`.
|
|
3196
3339
|
*
|
|
3197
3340
|
* **Example** (Subtracting durations)
|
|
3198
3341
|
*
|
|
@@ -3210,7 +3353,7 @@ export declare const addDuration: {
|
|
|
3210
3353
|
*/
|
|
3211
3354
|
export declare const subtractDuration: {
|
|
3212
3355
|
/**
|
|
3213
|
-
*
|
|
3356
|
+
* Subtracts the given `Duration` from a `DateTime`.
|
|
3214
3357
|
*
|
|
3215
3358
|
* **Example** (Subtracting durations)
|
|
3216
3359
|
*
|
|
@@ -3228,7 +3371,7 @@ export declare const subtractDuration: {
|
|
|
3228
3371
|
*/
|
|
3229
3372
|
(duration: Duration.Input): <A extends DateTime>(self: A) => A;
|
|
3230
3373
|
/**
|
|
3231
|
-
*
|
|
3374
|
+
* Subtracts the given `Duration` from a `DateTime`.
|
|
3232
3375
|
*
|
|
3233
3376
|
* **Example** (Subtracting durations)
|
|
3234
3377
|
*
|
|
@@ -3247,7 +3390,7 @@ export declare const subtractDuration: {
|
|
|
3247
3390
|
<A extends DateTime>(self: A, duration: Duration.Input): A;
|
|
3248
3391
|
};
|
|
3249
3392
|
/**
|
|
3250
|
-
*
|
|
3393
|
+
* Adds the given `amount` of `unit` to a `DateTime`.
|
|
3251
3394
|
*
|
|
3252
3395
|
* **Details**
|
|
3253
3396
|
*
|
|
@@ -3270,7 +3413,7 @@ export declare const subtractDuration: {
|
|
|
3270
3413
|
*/
|
|
3271
3414
|
export declare const add: {
|
|
3272
3415
|
/**
|
|
3273
|
-
*
|
|
3416
|
+
* Adds the given `amount` of `unit` to a `DateTime`.
|
|
3274
3417
|
*
|
|
3275
3418
|
* **Details**
|
|
3276
3419
|
*
|
|
@@ -3293,7 +3436,7 @@ export declare const add: {
|
|
|
3293
3436
|
*/
|
|
3294
3437
|
(parts: Partial<DateTime.PartsForMath>): <A extends DateTime>(self: A) => A;
|
|
3295
3438
|
/**
|
|
3296
|
-
*
|
|
3439
|
+
* Adds the given `amount` of `unit` to a `DateTime`.
|
|
3297
3440
|
*
|
|
3298
3441
|
* **Details**
|
|
3299
3442
|
*
|
|
@@ -3317,7 +3460,7 @@ export declare const add: {
|
|
|
3317
3460
|
<A extends DateTime>(self: A, parts: Partial<DateTime.PartsForMath>): A;
|
|
3318
3461
|
};
|
|
3319
3462
|
/**
|
|
3320
|
-
*
|
|
3463
|
+
* Subtracts the given `amount` of `unit` from a `DateTime`.
|
|
3321
3464
|
*
|
|
3322
3465
|
* **Example** (Subtracting date and time parts)
|
|
3323
3466
|
*
|
|
@@ -3335,7 +3478,7 @@ export declare const add: {
|
|
|
3335
3478
|
*/
|
|
3336
3479
|
export declare const subtract: {
|
|
3337
3480
|
/**
|
|
3338
|
-
*
|
|
3481
|
+
* Subtracts the given `amount` of `unit` from a `DateTime`.
|
|
3339
3482
|
*
|
|
3340
3483
|
* **Example** (Subtracting date and time parts)
|
|
3341
3484
|
*
|
|
@@ -3353,7 +3496,7 @@ export declare const subtract: {
|
|
|
3353
3496
|
*/
|
|
3354
3497
|
(parts: Partial<DateTime.PartsForMath>): <A extends DateTime>(self: A) => A;
|
|
3355
3498
|
/**
|
|
3356
|
-
*
|
|
3499
|
+
* Subtracts the given `amount` of `unit` from a `DateTime`.
|
|
3357
3500
|
*
|
|
3358
3501
|
* **Example** (Subtracting date and time parts)
|
|
3359
3502
|
*
|
|
@@ -3710,7 +3853,8 @@ export declare const format: {
|
|
|
3710
3853
|
} | undefined): string;
|
|
3711
3854
|
};
|
|
3712
3855
|
/**
|
|
3713
|
-
*
|
|
3856
|
+
* Formats a `DateTime` with `Intl.DateTimeFormat` using the system local time
|
|
3857
|
+
* zone and locale.
|
|
3714
3858
|
*
|
|
3715
3859
|
* **Details**
|
|
3716
3860
|
*
|
|
@@ -3740,7 +3884,8 @@ export declare const format: {
|
|
|
3740
3884
|
*/
|
|
3741
3885
|
export declare const formatLocal: {
|
|
3742
3886
|
/**
|
|
3743
|
-
*
|
|
3887
|
+
* Formats a `DateTime` with `Intl.DateTimeFormat` using the system local time
|
|
3888
|
+
* zone and locale.
|
|
3744
3889
|
*
|
|
3745
3890
|
* **Details**
|
|
3746
3891
|
*
|
|
@@ -3772,7 +3917,8 @@ export declare const formatLocal: {
|
|
|
3772
3917
|
readonly locale?: string | undefined;
|
|
3773
3918
|
} | undefined): (self: DateTime) => string;
|
|
3774
3919
|
/**
|
|
3775
|
-
*
|
|
3920
|
+
* Formats a `DateTime` with `Intl.DateTimeFormat` using the system local time
|
|
3921
|
+
* zone and locale.
|
|
3776
3922
|
*
|
|
3777
3923
|
* **Details**
|
|
3778
3924
|
*
|
|
@@ -3805,7 +3951,7 @@ export declare const formatLocal: {
|
|
|
3805
3951
|
} | undefined): string;
|
|
3806
3952
|
};
|
|
3807
3953
|
/**
|
|
3808
|
-
*
|
|
3954
|
+
* Formats a `DateTime` with `Intl.DateTimeFormat` using the UTC time zone.
|
|
3809
3955
|
*
|
|
3810
3956
|
* **Details**
|
|
3811
3957
|
*
|
|
@@ -3838,7 +3984,7 @@ export declare const formatLocal: {
|
|
|
3838
3984
|
*/
|
|
3839
3985
|
export declare const formatUtc: {
|
|
3840
3986
|
/**
|
|
3841
|
-
*
|
|
3987
|
+
* Formats a `DateTime` with `Intl.DateTimeFormat` using the UTC time zone.
|
|
3842
3988
|
*
|
|
3843
3989
|
* **Details**
|
|
3844
3990
|
*
|
|
@@ -3873,7 +4019,7 @@ export declare const formatUtc: {
|
|
|
3873
4019
|
readonly locale?: string | undefined;
|
|
3874
4020
|
} | undefined): (self: DateTime) => string;
|
|
3875
4021
|
/**
|
|
3876
|
-
*
|
|
4022
|
+
* Formats a `DateTime` with `Intl.DateTimeFormat` using the UTC time zone.
|
|
3877
4023
|
*
|
|
3878
4024
|
* **Details**
|
|
3879
4025
|
*
|
|
@@ -3909,7 +4055,17 @@ export declare const formatUtc: {
|
|
|
3909
4055
|
} | undefined): string;
|
|
3910
4056
|
};
|
|
3911
4057
|
/**
|
|
3912
|
-
*
|
|
4058
|
+
* Formats a `DateTime` as a string using the `Intl.DateTimeFormat` API.
|
|
4059
|
+
*
|
|
4060
|
+
* **When to use**
|
|
4061
|
+
*
|
|
4062
|
+
* Use when you already have an `Intl.DateTimeFormat` and want it to control the
|
|
4063
|
+
* locale, time zone, and formatting options.
|
|
4064
|
+
*
|
|
4065
|
+
* **Details**
|
|
4066
|
+
*
|
|
4067
|
+
* The formatter receives the `DateTime` epoch milliseconds. Any time zone
|
|
4068
|
+
* conversion comes from the supplied formatter.
|
|
3913
4069
|
*
|
|
3914
4070
|
* **Example** (Formatting DateTime values with custom formatters)
|
|
3915
4071
|
*
|
|
@@ -3929,15 +4085,28 @@ export declare const formatUtc: {
|
|
|
3929
4085
|
* })
|
|
3930
4086
|
*
|
|
3931
4087
|
* const formatted = DateTime.formatIntl(dt, formatter)
|
|
3932
|
-
* console.log(formatted) //
|
|
4088
|
+
* console.log(formatted.length > 0) // true
|
|
3933
4089
|
* ```
|
|
3934
4090
|
*
|
|
4091
|
+
* @see {@link formatUtc} for formatting with options forced to UTC
|
|
4092
|
+
* @see {@link formatIso} for stable ISO formatting
|
|
4093
|
+
*
|
|
3935
4094
|
* @category formatting
|
|
3936
4095
|
* @since 3.6.0
|
|
3937
4096
|
*/
|
|
3938
4097
|
export declare const formatIntl: {
|
|
3939
4098
|
/**
|
|
3940
|
-
*
|
|
4099
|
+
* Formats a `DateTime` as a string using the `Intl.DateTimeFormat` API.
|
|
4100
|
+
*
|
|
4101
|
+
* **When to use**
|
|
4102
|
+
*
|
|
4103
|
+
* Use when you already have an `Intl.DateTimeFormat` and want it to control the
|
|
4104
|
+
* locale, time zone, and formatting options.
|
|
4105
|
+
*
|
|
4106
|
+
* **Details**
|
|
4107
|
+
*
|
|
4108
|
+
* The formatter receives the `DateTime` epoch milliseconds. Any time zone
|
|
4109
|
+
* conversion comes from the supplied formatter.
|
|
3941
4110
|
*
|
|
3942
4111
|
* **Example** (Formatting DateTime values with custom formatters)
|
|
3943
4112
|
*
|
|
@@ -3957,15 +4126,28 @@ export declare const formatIntl: {
|
|
|
3957
4126
|
* })
|
|
3958
4127
|
*
|
|
3959
4128
|
* const formatted = DateTime.formatIntl(dt, formatter)
|
|
3960
|
-
* console.log(formatted) //
|
|
4129
|
+
* console.log(formatted.length > 0) // true
|
|
3961
4130
|
* ```
|
|
3962
4131
|
*
|
|
4132
|
+
* @see {@link formatUtc} for formatting with options forced to UTC
|
|
4133
|
+
* @see {@link formatIso} for stable ISO formatting
|
|
4134
|
+
*
|
|
3963
4135
|
* @category formatting
|
|
3964
4136
|
* @since 3.6.0
|
|
3965
4137
|
*/
|
|
3966
4138
|
(format: Intl.DateTimeFormat): (self: DateTime) => string;
|
|
3967
4139
|
/**
|
|
3968
|
-
*
|
|
4140
|
+
* Formats a `DateTime` as a string using the `Intl.DateTimeFormat` API.
|
|
4141
|
+
*
|
|
4142
|
+
* **When to use**
|
|
4143
|
+
*
|
|
4144
|
+
* Use when you already have an `Intl.DateTimeFormat` and want it to control the
|
|
4145
|
+
* locale, time zone, and formatting options.
|
|
4146
|
+
*
|
|
4147
|
+
* **Details**
|
|
4148
|
+
*
|
|
4149
|
+
* The formatter receives the `DateTime` epoch milliseconds. Any time zone
|
|
4150
|
+
* conversion comes from the supplied formatter.
|
|
3969
4151
|
*
|
|
3970
4152
|
* **Example** (Formatting DateTime values with custom formatters)
|
|
3971
4153
|
*
|
|
@@ -3985,16 +4167,19 @@ export declare const formatIntl: {
|
|
|
3985
4167
|
* })
|
|
3986
4168
|
*
|
|
3987
4169
|
* const formatted = DateTime.formatIntl(dt, formatter)
|
|
3988
|
-
* console.log(formatted) //
|
|
4170
|
+
* console.log(formatted.length > 0) // true
|
|
3989
4171
|
* ```
|
|
3990
4172
|
*
|
|
4173
|
+
* @see {@link formatUtc} for formatting with options forced to UTC
|
|
4174
|
+
* @see {@link formatIso} for stable ISO formatting
|
|
4175
|
+
*
|
|
3991
4176
|
* @category formatting
|
|
3992
4177
|
* @since 3.6.0
|
|
3993
4178
|
*/
|
|
3994
4179
|
(self: DateTime, format: Intl.DateTimeFormat): string;
|
|
3995
4180
|
};
|
|
3996
4181
|
/**
|
|
3997
|
-
*
|
|
4182
|
+
* Formats a `DateTime` as a UTC ISO string.
|
|
3998
4183
|
*
|
|
3999
4184
|
* **Details**
|
|
4000
4185
|
*
|
|
@@ -4019,7 +4204,7 @@ export declare const formatIntl: {
|
|
|
4019
4204
|
*/
|
|
4020
4205
|
export declare const formatIso: (self: DateTime) => string;
|
|
4021
4206
|
/**
|
|
4022
|
-
*
|
|
4207
|
+
* Formats a `DateTime` as a time zone adjusted ISO date string.
|
|
4023
4208
|
*
|
|
4024
4209
|
* **Details**
|
|
4025
4210
|
*
|
|
@@ -4044,7 +4229,7 @@ export declare const formatIso: (self: DateTime) => string;
|
|
|
4044
4229
|
*/
|
|
4045
4230
|
export declare const formatIsoDate: (self: DateTime) => string;
|
|
4046
4231
|
/**
|
|
4047
|
-
*
|
|
4232
|
+
* Formats a `DateTime` as a UTC ISO date string.
|
|
4048
4233
|
*
|
|
4049
4234
|
* **Details**
|
|
4050
4235
|
*
|
|
@@ -4069,7 +4254,7 @@ export declare const formatIsoDate: (self: DateTime) => string;
|
|
|
4069
4254
|
*/
|
|
4070
4255
|
export declare const formatIsoDateUtc: (self: DateTime) => string;
|
|
4071
4256
|
/**
|
|
4072
|
-
*
|
|
4257
|
+
* Formats a `DateTime.Zoned` as an ISO string with an offset.
|
|
4073
4258
|
*
|
|
4074
4259
|
* **Details**
|
|
4075
4260
|
*
|
|
@@ -4095,7 +4280,7 @@ export declare const formatIsoDateUtc: (self: DateTime) => string;
|
|
|
4095
4280
|
*/
|
|
4096
4281
|
export declare const formatIsoOffset: (self: DateTime) => string;
|
|
4097
4282
|
/**
|
|
4098
|
-
*
|
|
4283
|
+
* Formats a `DateTime.Zoned` as a string.
|
|
4099
4284
|
*
|
|
4100
4285
|
* **Details**
|
|
4101
4286
|
*
|