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/Layer.d.ts
CHANGED
|
@@ -1,30 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* -
|
|
10
|
-
* -
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
2
|
+
* The `Layer` module provides the dependency-injection building blocks for
|
|
3
|
+
* Effect applications. A {@link Layer} describes how to acquire one or more
|
|
4
|
+
* services, which dependencies are needed to acquire them, and which errors can
|
|
5
|
+
* occur during acquisition.
|
|
6
|
+
*
|
|
7
|
+
* **Mental model**
|
|
8
|
+
*
|
|
9
|
+
* - Application effects ask for services through context tags.
|
|
10
|
+
* - Layer code builds those services, often from configuration, clients,
|
|
11
|
+
* connection pools, or other services.
|
|
12
|
+
* - The application boundary provides a final layer to the program.
|
|
13
|
+
* - Layers are lazy: acquisition starts only when a layer is provided, built, or
|
|
14
|
+
* launched.
|
|
15
|
+
* - Layer acquisition is scoped, so finalizers run when the owning scope closes.
|
|
16
|
+
* - A layer value is memoized by default; reusing the same layer value shares
|
|
17
|
+
* the acquired service instance.
|
|
18
|
+
*
|
|
19
|
+
* **Common tasks**
|
|
20
|
+
*
|
|
21
|
+
* - Provide an existing service value with {@link succeed}.
|
|
22
|
+
* - Build a service lazily with {@link sync}, {@link effect}, or
|
|
23
|
+
* {@link effectContext}.
|
|
24
|
+
* - Run setup work that provides no services with {@link effectDiscard}.
|
|
25
|
+
* - Combine independent layers with {@link merge} or {@link mergeAll}.
|
|
26
|
+
* - Feed one layer's output into another layer's requirements with
|
|
27
|
+
* {@link provide}.
|
|
28
|
+
* - Keep dependency services in the final output with {@link provideMerge}.
|
|
29
|
+
* - Materialize a layer manually with {@link build} or {@link buildWithScope}.
|
|
30
|
+
*
|
|
31
|
+
* **Gotchas**
|
|
32
|
+
*
|
|
33
|
+
* - Sharing is tied to layer identity. Constructing the same layer twice creates
|
|
34
|
+
* two distinct values and can acquire two service instances.
|
|
35
|
+
* - Use {@link fresh} when a layer must be rebuilt even if the same value is
|
|
36
|
+
* provided more than once.
|
|
37
|
+
* - Scoped resources belong in layers when construction and release are part of
|
|
38
|
+
* the service lifecycle.
|
|
39
|
+
* - Normal application code should request services; layer code should create
|
|
40
|
+
* services.
|
|
28
41
|
*
|
|
29
42
|
* @since 2.0.0
|
|
30
43
|
*/
|
|
@@ -45,6 +58,12 @@ declare const TypeId = "~effect/Layer";
|
|
|
45
58
|
/**
|
|
46
59
|
* A `Layer` describes how to build one or more services for dependency injection.
|
|
47
60
|
*
|
|
61
|
+
* **When to use**
|
|
62
|
+
*
|
|
63
|
+
* Use to model construction of application services for dependency injection,
|
|
64
|
+
* especially when services have dependencies, can fail during construction, or
|
|
65
|
+
* need scoped setup and release.
|
|
66
|
+
*
|
|
48
67
|
* **Details**
|
|
49
68
|
*
|
|
50
69
|
* A `Layer<ROut, E, RIn>` represents `ROut` as the services this layer
|
|
@@ -101,11 +120,22 @@ export interface Variance<in ROut, out E, out RIn> {
|
|
|
101
120
|
/**
|
|
102
121
|
* A type-level constraint for working with any `Layer` type.
|
|
103
122
|
*
|
|
123
|
+
* **When to use**
|
|
124
|
+
*
|
|
125
|
+
* Use to constrain generic parameters or layer collections to any `Layer`
|
|
126
|
+
* value while preserving its provided, error, and required service types for
|
|
127
|
+
* inference.
|
|
128
|
+
*
|
|
104
129
|
* **Details**
|
|
105
130
|
*
|
|
106
131
|
* This interface is used to constrain generic types to `Layer` values without
|
|
107
132
|
* specifying exact type parameters.
|
|
108
133
|
*
|
|
134
|
+
* @see {@link Layer} for the concrete layer interface
|
|
135
|
+
* @see {@link Services} for extracting required services from a layer type
|
|
136
|
+
* @see {@link Error} for extracting construction errors from a layer type
|
|
137
|
+
* @see {@link Success} for extracting provided services from a layer type
|
|
138
|
+
*
|
|
109
139
|
* @category utility types
|
|
110
140
|
* @since 3.9.0
|
|
111
141
|
*/
|
|
@@ -119,6 +149,14 @@ export interface Any {
|
|
|
119
149
|
/**
|
|
120
150
|
* Extracts the service requirements (`RIn`) from a `Layer` type.
|
|
121
151
|
*
|
|
152
|
+
* **When to use**
|
|
153
|
+
*
|
|
154
|
+
* Use to derive the dependency requirements of a generic or inferred `Layer`
|
|
155
|
+
* without restating its `RIn` type parameter.
|
|
156
|
+
*
|
|
157
|
+
* @see {@link Success} for extracting the services provided by the same `Layer`
|
|
158
|
+
* @see {@link Error} for extracting the construction failure type from the same `Layer`
|
|
159
|
+
*
|
|
122
160
|
* @category utility types
|
|
123
161
|
* @since 4.0.0
|
|
124
162
|
*/
|
|
@@ -126,6 +164,14 @@ export type Services<T extends Any> = T extends infer L ? L extends Layer<infer
|
|
|
126
164
|
/**
|
|
127
165
|
* Extracts the error type (`E`) from a `Layer` type.
|
|
128
166
|
*
|
|
167
|
+
* **When to use**
|
|
168
|
+
*
|
|
169
|
+
* Use to derive a layer construction error type for helper types, wrappers, or
|
|
170
|
+
* APIs that preserve a layer failure channel.
|
|
171
|
+
*
|
|
172
|
+
* @see {@link Success} for extracting the services provided by the same `Layer`
|
|
173
|
+
* @see {@link Services} for extracting the dependency requirements of the same `Layer`
|
|
174
|
+
*
|
|
129
175
|
* @category utility types
|
|
130
176
|
* @since 2.0.0
|
|
131
177
|
*/
|
|
@@ -133,6 +179,14 @@ export type Error<T extends Any> = T extends Layer<infer _ROut, infer _E, infer
|
|
|
133
179
|
/**
|
|
134
180
|
* Extracts the service output type (`ROut`) from a `Layer` type.
|
|
135
181
|
*
|
|
182
|
+
* **When to use**
|
|
183
|
+
*
|
|
184
|
+
* Use to derive the services provided by an existing or generic `Layer` without
|
|
185
|
+
* restating its `ROut` type parameter.
|
|
186
|
+
*
|
|
187
|
+
* @see {@link Error} for extracting the layer construction error type instead
|
|
188
|
+
* @see {@link Services} for extracting the layer input service requirements instead
|
|
189
|
+
*
|
|
136
190
|
* @category utility types
|
|
137
191
|
* @since 2.0.0
|
|
138
192
|
*/
|
|
@@ -266,7 +320,7 @@ export declare const fromBuild: <ROut, E, RIn>(build: (memoMap: MemoMap, scope:
|
|
|
266
320
|
*/
|
|
267
321
|
export declare const fromBuildMemo: <ROut, E, RIn>(build: (memoMap: MemoMap, scope: Scope.Scope) => Effect<Context.Context<ROut>, E, RIn>) => Layer<ROut, E, RIn>;
|
|
268
322
|
/**
|
|
269
|
-
* Constructs a `MemoMap`
|
|
323
|
+
* Constructs a `MemoMap` synchronously so it can be used to build additional layers.
|
|
270
324
|
*
|
|
271
325
|
* **Example** (Creating a memo map unsafely)
|
|
272
326
|
*
|
|
@@ -296,15 +350,25 @@ export declare const fromBuildMemo: <ROut, E, RIn>(build: (memoMap: MemoMap, sco
|
|
|
296
350
|
*/
|
|
297
351
|
export declare const makeMemoMapUnsafe: () => MemoMap;
|
|
298
352
|
/**
|
|
299
|
-
* Constructs a child `MemoMap`
|
|
300
|
-
* parent while isolating any new layer allocations to
|
|
353
|
+
* Constructs a child `MemoMap` synchronously, allowing it to reuse layers
|
|
354
|
+
* already memoized in the parent while isolating any new layer allocations to
|
|
355
|
+
* the child map.
|
|
356
|
+
*
|
|
357
|
+
* **When to use**
|
|
358
|
+
*
|
|
359
|
+
* Use to synchronously fork a memo map for manual layer building when child
|
|
360
|
+
* builds should see parent memoized layers without writing newly built layers
|
|
361
|
+
* back to the parent.
|
|
362
|
+
*
|
|
363
|
+
* @see {@link forkMemoMap} for allocating the child memo map inside `Effect`
|
|
364
|
+
* @see {@link makeMemoMapUnsafe} for creating a root memo map without a parent
|
|
301
365
|
*
|
|
302
366
|
* @category memo map
|
|
303
367
|
* @since 4.0.0
|
|
304
368
|
*/
|
|
305
369
|
export declare const forkMemoMapUnsafe: (parent: MemoMap) => MemoMap;
|
|
306
370
|
/**
|
|
307
|
-
* Constructs a `MemoMap`
|
|
371
|
+
* Constructs a `MemoMap` effectfully so it can be used to build additional layers.
|
|
308
372
|
*
|
|
309
373
|
* **Example** (Creating a memo map in an effect)
|
|
310
374
|
*
|
|
@@ -334,8 +398,18 @@ export declare const forkMemoMapUnsafe: (parent: MemoMap) => MemoMap;
|
|
|
334
398
|
*/
|
|
335
399
|
export declare const makeMemoMap: Effect<MemoMap>;
|
|
336
400
|
/**
|
|
337
|
-
* Constructs a child `MemoMap`
|
|
338
|
-
* parent while isolating any new layer allocations to the child
|
|
401
|
+
* Constructs a child `MemoMap` effectfully, allowing it to reuse layers already
|
|
402
|
+
* memoized in the parent while isolating any new layer allocations to the child
|
|
403
|
+
* map.
|
|
404
|
+
*
|
|
405
|
+
* **When to use**
|
|
406
|
+
*
|
|
407
|
+
* Use when a layer build should inherit already memoized layers from an
|
|
408
|
+
* existing `MemoMap` while keeping newly memoized layers out of the parent map.
|
|
409
|
+
*
|
|
410
|
+
* @see {@link makeMemoMap} for creating a root memo map in an `Effect`
|
|
411
|
+
* @see {@link forkMemoMapUnsafe} for the synchronous constructor variant
|
|
412
|
+
* @see {@link buildWithMemoMap} for building layers with an explicit memo map
|
|
339
413
|
*
|
|
340
414
|
* @category memo map
|
|
341
415
|
* @since 4.0.0
|
|
@@ -343,12 +417,19 @@ export declare const makeMemoMap: Effect<MemoMap>;
|
|
|
343
417
|
export declare const forkMemoMap: (parent: MemoMap) => Effect<MemoMap>;
|
|
344
418
|
declare const CurrentMemoMap_base: Context.ServiceClass<CurrentMemoMap, "effect/Layer/CurrentMemoMap", MemoMap>;
|
|
345
419
|
/**
|
|
346
|
-
*
|
|
420
|
+
* Context service for the current `MemoMap` used in layer construction.
|
|
421
|
+
*
|
|
422
|
+
* **When to use**
|
|
423
|
+
*
|
|
424
|
+
* Use when building custom layer operations that need to access the current
|
|
425
|
+
* memoization map from the fiber context.
|
|
347
426
|
*
|
|
348
427
|
* **Details**
|
|
349
428
|
*
|
|
350
|
-
* This service
|
|
351
|
-
*
|
|
429
|
+
* This service wraps a `MemoMap` as a `Context.Service`, making it available
|
|
430
|
+
* for dependency injection during layer construction.
|
|
431
|
+
*
|
|
432
|
+
* @see {@link MemoMap} the memoization map type wrapped by this service
|
|
352
433
|
*
|
|
353
434
|
* @category models
|
|
354
435
|
* @since 3.13.0
|
|
@@ -537,11 +618,17 @@ export declare const buildWithMemoMap: {
|
|
|
537
618
|
*/
|
|
538
619
|
export declare const build: <RIn, E, ROut>(self: Layer<ROut, E, RIn>) => Effect<Context.Context<ROut>, E, RIn | Scope.Scope>;
|
|
539
620
|
/**
|
|
540
|
-
* Builds a layer
|
|
541
|
-
*
|
|
542
|
-
*
|
|
543
|
-
*
|
|
544
|
-
* layer
|
|
621
|
+
* Builds a layer using an explicit scope.
|
|
622
|
+
*
|
|
623
|
+
* **When to use**
|
|
624
|
+
*
|
|
625
|
+
* Use to control the lifetime of layer resources with a scope supplied by the
|
|
626
|
+
* caller.
|
|
627
|
+
*
|
|
628
|
+
* **Details**
|
|
629
|
+
*
|
|
630
|
+
* Resources created by the layer are released when the supplied scope is
|
|
631
|
+
* closed, unless a resource extends its own scope.
|
|
545
632
|
*
|
|
546
633
|
* **Example** (Building a layer with an explicit scope)
|
|
547
634
|
*
|
|
@@ -579,11 +666,17 @@ export declare const build: <RIn, E, ROut>(self: Layer<ROut, E, RIn>) => Effect<
|
|
|
579
666
|
*/
|
|
580
667
|
export declare const buildWithScope: {
|
|
581
668
|
/**
|
|
582
|
-
* Builds a layer
|
|
583
|
-
*
|
|
584
|
-
*
|
|
585
|
-
*
|
|
586
|
-
* layer
|
|
669
|
+
* Builds a layer using an explicit scope.
|
|
670
|
+
*
|
|
671
|
+
* **When to use**
|
|
672
|
+
*
|
|
673
|
+
* Use to control the lifetime of layer resources with a scope supplied by the
|
|
674
|
+
* caller.
|
|
675
|
+
*
|
|
676
|
+
* **Details**
|
|
677
|
+
*
|
|
678
|
+
* Resources created by the layer are released when the supplied scope is
|
|
679
|
+
* closed, unless a resource extends its own scope.
|
|
587
680
|
*
|
|
588
681
|
* **Example** (Building a layer with an explicit scope)
|
|
589
682
|
*
|
|
@@ -621,11 +714,17 @@ export declare const buildWithScope: {
|
|
|
621
714
|
*/
|
|
622
715
|
(scope: Scope.Scope): <RIn, E, ROut>(self: Layer<ROut, E, RIn>) => Effect<Context.Context<ROut>, E, RIn>;
|
|
623
716
|
/**
|
|
624
|
-
* Builds a layer
|
|
625
|
-
*
|
|
626
|
-
*
|
|
627
|
-
*
|
|
628
|
-
* layer
|
|
717
|
+
* Builds a layer using an explicit scope.
|
|
718
|
+
*
|
|
719
|
+
* **When to use**
|
|
720
|
+
*
|
|
721
|
+
* Use to control the lifetime of layer resources with a scope supplied by the
|
|
722
|
+
* caller.
|
|
723
|
+
*
|
|
724
|
+
* **Details**
|
|
725
|
+
*
|
|
726
|
+
* Resources created by the layer are released when the supplied scope is
|
|
727
|
+
* closed, unless a resource extends its own scope.
|
|
629
728
|
*
|
|
630
729
|
* **Example** (Building a layer with an explicit scope)
|
|
631
730
|
*
|
|
@@ -669,7 +768,7 @@ export declare const buildWithScope: {
|
|
|
669
768
|
*
|
|
670
769
|
* **When to use**
|
|
671
770
|
*
|
|
672
|
-
* Use
|
|
771
|
+
* Use when the service implementation is already constructed and does
|
|
673
772
|
* not need effectful acquisition. Use `sync` when the service should be created
|
|
674
773
|
* lazily during layer construction.
|
|
675
774
|
*
|
|
@@ -699,7 +798,7 @@ export declare const succeed: {
|
|
|
699
798
|
*
|
|
700
799
|
* **When to use**
|
|
701
800
|
*
|
|
702
|
-
* Use
|
|
801
|
+
* Use when the service implementation is already constructed and does
|
|
703
802
|
* not need effectful acquisition. Use `sync` when the service should be created
|
|
704
803
|
* lazily during layer construction.
|
|
705
804
|
*
|
|
@@ -729,7 +828,7 @@ export declare const succeed: {
|
|
|
729
828
|
*
|
|
730
829
|
* **When to use**
|
|
731
830
|
*
|
|
732
|
-
* Use
|
|
831
|
+
* Use when the service implementation is already constructed and does
|
|
733
832
|
* not need effectful acquisition. Use `sync` when the service should be created
|
|
734
833
|
* lazily during layer construction.
|
|
735
834
|
*
|
|
@@ -760,7 +859,7 @@ export declare const succeed: {
|
|
|
760
859
|
*
|
|
761
860
|
* **When to use**
|
|
762
861
|
*
|
|
763
|
-
* Use
|
|
862
|
+
* Use when you already have a `Context` or need to provide
|
|
764
863
|
* multiple services at once. Use `succeed` when you only need to provide one
|
|
765
864
|
* service value.
|
|
766
865
|
*
|
|
@@ -805,7 +904,7 @@ export declare const succeedContext: <A>(context: Context.Context<A>) => Layer<A
|
|
|
805
904
|
*
|
|
806
905
|
* **When to use**
|
|
807
906
|
*
|
|
808
|
-
* Use `Layer.empty` as the no-op branch when conditionally composing layers.
|
|
907
|
+
* Use when you use `Layer.empty` as the no-op branch when conditionally composing layers.
|
|
809
908
|
* If you need to run an effect during layer construction while still providing
|
|
810
909
|
* no services, use `effectDiscard`.
|
|
811
910
|
*
|
|
@@ -828,11 +927,11 @@ export declare const succeedContext: <A>(context: Context.Context<A>) => Layer<A
|
|
|
828
927
|
*/
|
|
829
928
|
export declare const empty: Layer<never>;
|
|
830
929
|
/**
|
|
831
|
-
*
|
|
930
|
+
* Constructs a layer lazily that provides a single service.
|
|
832
931
|
*
|
|
833
932
|
* **When to use**
|
|
834
933
|
*
|
|
835
|
-
* Use
|
|
934
|
+
* Use when the service can be created synchronously but should be
|
|
836
935
|
* deferred until the layer is built. Use `succeed` when the service value is
|
|
837
936
|
* already available.
|
|
838
937
|
*
|
|
@@ -862,11 +961,11 @@ export declare const empty: Layer<never>;
|
|
|
862
961
|
*/
|
|
863
962
|
export declare const sync: {
|
|
864
963
|
/**
|
|
865
|
-
*
|
|
964
|
+
* Constructs a layer lazily that provides a single service.
|
|
866
965
|
*
|
|
867
966
|
* **When to use**
|
|
868
967
|
*
|
|
869
|
-
* Use
|
|
968
|
+
* Use when the service can be created synchronously but should be
|
|
870
969
|
* deferred until the layer is built. Use `succeed` when the service value is
|
|
871
970
|
* already available.
|
|
872
971
|
*
|
|
@@ -896,11 +995,11 @@ export declare const sync: {
|
|
|
896
995
|
*/
|
|
897
996
|
<I, S>(service: Context.Key<I, S>): (evaluate: LazyArg<S>) => Layer<I>;
|
|
898
997
|
/**
|
|
899
|
-
*
|
|
998
|
+
* Constructs a layer lazily that provides a single service.
|
|
900
999
|
*
|
|
901
1000
|
* **When to use**
|
|
902
1001
|
*
|
|
903
|
-
* Use
|
|
1002
|
+
* Use when the service can be created synchronously but should be
|
|
904
1003
|
* deferred until the layer is built. Use `succeed` when the service value is
|
|
905
1004
|
* already available.
|
|
906
1005
|
*
|
|
@@ -931,11 +1030,11 @@ export declare const sync: {
|
|
|
931
1030
|
<I, S>(service: Context.Key<I, S>, evaluate: LazyArg<Types.NoInfer<S>>): Layer<I>;
|
|
932
1031
|
};
|
|
933
1032
|
/**
|
|
934
|
-
*
|
|
1033
|
+
* Constructs a layer lazily that provides all services in a `Context`.
|
|
935
1034
|
*
|
|
936
1035
|
* **When to use**
|
|
937
1036
|
*
|
|
938
|
-
* Use
|
|
1037
|
+
* Use when multiple services can be created synchronously and
|
|
939
1038
|
* should be deferred until the layer is built. Use `sync` when you only need to
|
|
940
1039
|
* provide one service.
|
|
941
1040
|
*
|
|
@@ -972,7 +1071,7 @@ export declare const syncContext: <A>(evaluate: LazyArg<Context.Context<A>>) =>
|
|
|
972
1071
|
*
|
|
973
1072
|
* **When to use**
|
|
974
1073
|
*
|
|
975
|
-
* Use
|
|
1074
|
+
* Use when constructing the service requires effects, dependencies, or
|
|
976
1075
|
* scoped resource acquisition. Use `effectContext` when the effect produces
|
|
977
1076
|
* multiple services in a `Context`, and `effectDiscard` when construction work
|
|
978
1077
|
* should provide no services.
|
|
@@ -1011,7 +1110,7 @@ export declare const effect: {
|
|
|
1011
1110
|
*
|
|
1012
1111
|
* **When to use**
|
|
1013
1112
|
*
|
|
1014
|
-
* Use
|
|
1113
|
+
* Use when constructing the service requires effects, dependencies, or
|
|
1015
1114
|
* scoped resource acquisition. Use `effectContext` when the effect produces
|
|
1016
1115
|
* multiple services in a `Context`, and `effectDiscard` when construction work
|
|
1017
1116
|
* should provide no services.
|
|
@@ -1050,7 +1149,7 @@ export declare const effect: {
|
|
|
1050
1149
|
*
|
|
1051
1150
|
* **When to use**
|
|
1052
1151
|
*
|
|
1053
|
-
* Use
|
|
1152
|
+
* Use when constructing the service requires effects, dependencies, or
|
|
1054
1153
|
* scoped resource acquisition. Use `effectContext` when the effect produces
|
|
1055
1154
|
* multiple services in a `Context`, and `effectDiscard` when construction work
|
|
1056
1155
|
* should provide no services.
|
|
@@ -1090,7 +1189,7 @@ export declare const effect: {
|
|
|
1090
1189
|
*
|
|
1091
1190
|
* **When to use**
|
|
1092
1191
|
*
|
|
1093
|
-
* Use
|
|
1192
|
+
* Use when effectful construction needs to provide multiple
|
|
1094
1193
|
* services at once. Use `effect` when the effect produces one service value.
|
|
1095
1194
|
*
|
|
1096
1195
|
* **Details**
|
|
@@ -1128,7 +1227,7 @@ export declare const effectContext: <A, E, R>(effect: Effect<Context.Context<A>,
|
|
|
1128
1227
|
*
|
|
1129
1228
|
* **When to use**
|
|
1130
1229
|
*
|
|
1131
|
-
*
|
|
1230
|
+
* Use when this is useful when you want to run an Effect for its side effects during
|
|
1132
1231
|
* layer construction, but don't need to provide any services.
|
|
1133
1232
|
*
|
|
1134
1233
|
* **Example** (Running an effect during layer construction)
|
|
@@ -1150,7 +1249,7 @@ export declare const effectContext: <A, E, R>(effect: Effect<Context.Context<A>,
|
|
|
1150
1249
|
*/
|
|
1151
1250
|
export declare const effectDiscard: <X, E, R>(effect: Effect<X, E, R>) => Layer<never, E, Exclude<R, Scope.Scope>>;
|
|
1152
1251
|
/**
|
|
1153
|
-
*
|
|
1252
|
+
* Constructs a layer lazily using the specified factory.
|
|
1154
1253
|
*
|
|
1155
1254
|
* **Details**
|
|
1156
1255
|
*
|
|
@@ -1182,7 +1281,7 @@ export declare const suspend: <A, E, R>(evaluate: LazyArg<Layer<A, E, R>>) => La
|
|
|
1182
1281
|
*
|
|
1183
1282
|
* **When to use**
|
|
1184
1283
|
*
|
|
1185
|
-
* Use
|
|
1284
|
+
* Use when you have an `Effect` that produces a `Layer` and you want to
|
|
1186
1285
|
* use that layer directly.
|
|
1187
1286
|
*
|
|
1188
1287
|
* **Details**
|
|
@@ -1216,7 +1315,7 @@ export declare const unwrap: <A, E1, R1, E, R>(self: Effect<Layer<A, E1, R1>, E,
|
|
|
1216
1315
|
*
|
|
1217
1316
|
* **When to use**
|
|
1218
1317
|
*
|
|
1219
|
-
* Use
|
|
1318
|
+
* Use when you need to combine multiple independent layers.
|
|
1220
1319
|
*
|
|
1221
1320
|
* **Details**
|
|
1222
1321
|
*
|
|
@@ -1261,7 +1360,7 @@ export declare const mergeAll: <Layers extends [Layer<never, any, any>, ...Array
|
|
|
1261
1360
|
*
|
|
1262
1361
|
* **When to use**
|
|
1263
1362
|
*
|
|
1264
|
-
* Use
|
|
1363
|
+
* Use when composing from an existing layer in a pipeline. Use
|
|
1265
1364
|
* `mergeAll` when you already have all layers as separate arguments.
|
|
1266
1365
|
*
|
|
1267
1366
|
* **Details**
|
|
@@ -1305,7 +1404,7 @@ export declare const merge: {
|
|
|
1305
1404
|
*
|
|
1306
1405
|
* **When to use**
|
|
1307
1406
|
*
|
|
1308
|
-
* Use
|
|
1407
|
+
* Use when composing from an existing layer in a pipeline. Use
|
|
1309
1408
|
* `mergeAll` when you already have all layers as separate arguments.
|
|
1310
1409
|
*
|
|
1311
1410
|
* **Details**
|
|
@@ -1349,7 +1448,7 @@ export declare const merge: {
|
|
|
1349
1448
|
*
|
|
1350
1449
|
* **When to use**
|
|
1351
1450
|
*
|
|
1352
|
-
* Use
|
|
1451
|
+
* Use when composing from an existing layer in a pipeline. Use
|
|
1353
1452
|
* `mergeAll` when you already have all layers as separate arguments.
|
|
1354
1453
|
*
|
|
1355
1454
|
* **Details**
|
|
@@ -1393,7 +1492,7 @@ export declare const merge: {
|
|
|
1393
1492
|
*
|
|
1394
1493
|
* **When to use**
|
|
1395
1494
|
*
|
|
1396
|
-
* Use
|
|
1495
|
+
* Use when composing from an existing layer in a pipeline. Use
|
|
1397
1496
|
* `mergeAll` when you already have all layers as separate arguments.
|
|
1398
1497
|
*
|
|
1399
1498
|
* **Details**
|
|
@@ -1437,7 +1536,7 @@ export declare const merge: {
|
|
|
1437
1536
|
*
|
|
1438
1537
|
* **When to use**
|
|
1439
1538
|
*
|
|
1440
|
-
* Use
|
|
1539
|
+
* Use when composing from an existing layer in a pipeline. Use
|
|
1441
1540
|
* `mergeAll` when you already have all layers as separate arguments.
|
|
1442
1541
|
*
|
|
1443
1542
|
* **Details**
|
|
@@ -1482,7 +1581,7 @@ export declare const merge: {
|
|
|
1482
1581
|
*
|
|
1483
1582
|
* **When to use**
|
|
1484
1583
|
*
|
|
1485
|
-
* Use
|
|
1584
|
+
* Use when the dependency layer is an implementation detail of the
|
|
1486
1585
|
* layer being built and should not be exposed to callers. Use `provideMerge`
|
|
1487
1586
|
* when callers should also receive the dependency services.
|
|
1488
1587
|
*
|
|
@@ -1562,7 +1661,7 @@ export declare const provide: {
|
|
|
1562
1661
|
*
|
|
1563
1662
|
* **When to use**
|
|
1564
1663
|
*
|
|
1565
|
-
* Use
|
|
1664
|
+
* Use when the dependency layer is an implementation detail of the
|
|
1566
1665
|
* layer being built and should not be exposed to callers. Use `provideMerge`
|
|
1567
1666
|
* when callers should also receive the dependency services.
|
|
1568
1667
|
*
|
|
@@ -1642,7 +1741,7 @@ export declare const provide: {
|
|
|
1642
1741
|
*
|
|
1643
1742
|
* **When to use**
|
|
1644
1743
|
*
|
|
1645
|
-
* Use
|
|
1744
|
+
* Use when the dependency layer is an implementation detail of the
|
|
1646
1745
|
* layer being built and should not be exposed to callers. Use `provideMerge`
|
|
1647
1746
|
* when callers should also receive the dependency services.
|
|
1648
1747
|
*
|
|
@@ -1722,7 +1821,7 @@ export declare const provide: {
|
|
|
1722
1821
|
*
|
|
1723
1822
|
* **When to use**
|
|
1724
1823
|
*
|
|
1725
|
-
* Use
|
|
1824
|
+
* Use when the dependency layer is an implementation detail of the
|
|
1726
1825
|
* layer being built and should not be exposed to callers. Use `provideMerge`
|
|
1727
1826
|
* when callers should also receive the dependency services.
|
|
1728
1827
|
*
|
|
@@ -1802,7 +1901,7 @@ export declare const provide: {
|
|
|
1802
1901
|
*
|
|
1803
1902
|
* **When to use**
|
|
1804
1903
|
*
|
|
1805
|
-
* Use
|
|
1904
|
+
* Use when the dependency layer is an implementation detail of the
|
|
1806
1905
|
* layer being built and should not be exposed to callers. Use `provideMerge`
|
|
1807
1906
|
* when callers should also receive the dependency services.
|
|
1808
1907
|
*
|
|
@@ -1883,7 +1982,7 @@ export declare const provide: {
|
|
|
1883
1982
|
*
|
|
1884
1983
|
* **When to use**
|
|
1885
1984
|
*
|
|
1886
|
-
* Use
|
|
1985
|
+
* Use when callers need access to both the service being built and the
|
|
1887
1986
|
* dependency used to build it, such as a health check that needs both a
|
|
1888
1987
|
* repository and its database. Prefer `provide` when the dependency should stay
|
|
1889
1988
|
* private.
|
|
@@ -1965,7 +2064,7 @@ export declare const provideMerge: {
|
|
|
1965
2064
|
*
|
|
1966
2065
|
* **When to use**
|
|
1967
2066
|
*
|
|
1968
|
-
* Use
|
|
2067
|
+
* Use when callers need access to both the service being built and the
|
|
1969
2068
|
* dependency used to build it, such as a health check that needs both a
|
|
1970
2069
|
* repository and its database. Prefer `provide` when the dependency should stay
|
|
1971
2070
|
* private.
|
|
@@ -2047,7 +2146,7 @@ export declare const provideMerge: {
|
|
|
2047
2146
|
*
|
|
2048
2147
|
* **When to use**
|
|
2049
2148
|
*
|
|
2050
|
-
* Use
|
|
2149
|
+
* Use when callers need access to both the service being built and the
|
|
2051
2150
|
* dependency used to build it, such as a health check that needs both a
|
|
2052
2151
|
* repository and its database. Prefer `provide` when the dependency should stay
|
|
2053
2152
|
* private.
|
|
@@ -2129,7 +2228,7 @@ export declare const provideMerge: {
|
|
|
2129
2228
|
*
|
|
2130
2229
|
* **When to use**
|
|
2131
2230
|
*
|
|
2132
|
-
* Use
|
|
2231
|
+
* Use when callers need access to both the service being built and the
|
|
2133
2232
|
* dependency used to build it, such as a health check that needs both a
|
|
2134
2233
|
* repository and its database. Prefer `provide` when the dependency should stay
|
|
2135
2234
|
* private.
|
|
@@ -2211,7 +2310,7 @@ export declare const provideMerge: {
|
|
|
2211
2310
|
*
|
|
2212
2311
|
* **When to use**
|
|
2213
2312
|
*
|
|
2214
|
-
* Use
|
|
2313
|
+
* Use when callers need access to both the service being built and the
|
|
2215
2314
|
* dependency used to build it, such as a health check that needs both a
|
|
2216
2315
|
* repository and its database. Prefer `provide` when the dependency should stay
|
|
2217
2316
|
* private.
|
|
@@ -2508,11 +2607,20 @@ export declare const flatMap: {
|
|
|
2508
2607
|
/**
|
|
2509
2608
|
* Performs the specified effect if this layer succeeds.
|
|
2510
2609
|
*
|
|
2610
|
+
* **When to use**
|
|
2611
|
+
*
|
|
2612
|
+
* Use to run an effectful observation after a layer has been built
|
|
2613
|
+
* successfully, such as logging or metrics, without changing the services the
|
|
2614
|
+
* layer provides.
|
|
2615
|
+
*
|
|
2511
2616
|
* **Details**
|
|
2512
2617
|
*
|
|
2513
2618
|
* The callback receives the services produced by this layer. Its result is
|
|
2514
2619
|
* discarded, and the original layer output is preserved.
|
|
2515
2620
|
*
|
|
2621
|
+
* @see {@link tapError} for running an effect when layer construction fails with a typed error
|
|
2622
|
+
* @see {@link tapCause} for running an effect when layer construction fails with any cause
|
|
2623
|
+
*
|
|
2516
2624
|
* @category sequencing
|
|
2517
2625
|
* @since 2.0.0
|
|
2518
2626
|
*/
|
|
@@ -2520,11 +2628,20 @@ export declare const tap: {
|
|
|
2520
2628
|
/**
|
|
2521
2629
|
* Performs the specified effect if this layer succeeds.
|
|
2522
2630
|
*
|
|
2631
|
+
* **When to use**
|
|
2632
|
+
*
|
|
2633
|
+
* Use to run an effectful observation after a layer has been built
|
|
2634
|
+
* successfully, such as logging or metrics, without changing the services the
|
|
2635
|
+
* layer provides.
|
|
2636
|
+
*
|
|
2523
2637
|
* **Details**
|
|
2524
2638
|
*
|
|
2525
2639
|
* The callback receives the services produced by this layer. Its result is
|
|
2526
2640
|
* discarded, and the original layer output is preserved.
|
|
2527
2641
|
*
|
|
2642
|
+
* @see {@link tapError} for running an effect when layer construction fails with a typed error
|
|
2643
|
+
* @see {@link tapCause} for running an effect when layer construction fails with any cause
|
|
2644
|
+
*
|
|
2528
2645
|
* @category sequencing
|
|
2529
2646
|
* @since 2.0.0
|
|
2530
2647
|
*/
|
|
@@ -2532,11 +2649,20 @@ export declare const tap: {
|
|
|
2532
2649
|
/**
|
|
2533
2650
|
* Performs the specified effect if this layer succeeds.
|
|
2534
2651
|
*
|
|
2652
|
+
* **When to use**
|
|
2653
|
+
*
|
|
2654
|
+
* Use to run an effectful observation after a layer has been built
|
|
2655
|
+
* successfully, such as logging or metrics, without changing the services the
|
|
2656
|
+
* layer provides.
|
|
2657
|
+
*
|
|
2535
2658
|
* **Details**
|
|
2536
2659
|
*
|
|
2537
2660
|
* The callback receives the services produced by this layer. Its result is
|
|
2538
2661
|
* discarded, and the original layer output is preserved.
|
|
2539
2662
|
*
|
|
2663
|
+
* @see {@link tapError} for running an effect when layer construction fails with a typed error
|
|
2664
|
+
* @see {@link tapCause} for running an effect when layer construction fails with any cause
|
|
2665
|
+
*
|
|
2540
2666
|
* @category sequencing
|
|
2541
2667
|
* @since 2.0.0
|
|
2542
2668
|
*/
|
|
@@ -2545,12 +2671,20 @@ export declare const tap: {
|
|
|
2545
2671
|
/**
|
|
2546
2672
|
* Performs the specified effect if this layer fails.
|
|
2547
2673
|
*
|
|
2674
|
+
* **When to use**
|
|
2675
|
+
*
|
|
2676
|
+
* Use to run logging, metrics, or other effects when layer construction fails
|
|
2677
|
+
* while preserving the original typed error.
|
|
2678
|
+
*
|
|
2548
2679
|
* **Details**
|
|
2549
2680
|
*
|
|
2550
2681
|
* The callback receives the typed error. If the callback succeeds, the layer
|
|
2551
2682
|
* still fails with the original error; if the callback fails, that failure is
|
|
2552
2683
|
* added to the layer's error type.
|
|
2553
2684
|
*
|
|
2685
|
+
* @see {@link tap} for running an effect when layer construction succeeds
|
|
2686
|
+
* @see {@link tapCause} for inspecting the full failure cause, including defects and interruption
|
|
2687
|
+
*
|
|
2554
2688
|
* @category sequencing
|
|
2555
2689
|
* @since 2.0.0
|
|
2556
2690
|
*/
|
|
@@ -2558,12 +2692,20 @@ export declare const tapError: {
|
|
|
2558
2692
|
/**
|
|
2559
2693
|
* Performs the specified effect if this layer fails.
|
|
2560
2694
|
*
|
|
2695
|
+
* **When to use**
|
|
2696
|
+
*
|
|
2697
|
+
* Use to run logging, metrics, or other effects when layer construction fails
|
|
2698
|
+
* while preserving the original typed error.
|
|
2699
|
+
*
|
|
2561
2700
|
* **Details**
|
|
2562
2701
|
*
|
|
2563
2702
|
* The callback receives the typed error. If the callback succeeds, the layer
|
|
2564
2703
|
* still fails with the original error; if the callback fails, that failure is
|
|
2565
2704
|
* added to the layer's error type.
|
|
2566
2705
|
*
|
|
2706
|
+
* @see {@link tap} for running an effect when layer construction succeeds
|
|
2707
|
+
* @see {@link tapCause} for inspecting the full failure cause, including defects and interruption
|
|
2708
|
+
*
|
|
2567
2709
|
* @category sequencing
|
|
2568
2710
|
* @since 2.0.0
|
|
2569
2711
|
*/
|
|
@@ -2571,12 +2713,20 @@ export declare const tapError: {
|
|
|
2571
2713
|
/**
|
|
2572
2714
|
* Performs the specified effect if this layer fails.
|
|
2573
2715
|
*
|
|
2716
|
+
* **When to use**
|
|
2717
|
+
*
|
|
2718
|
+
* Use to run logging, metrics, or other effects when layer construction fails
|
|
2719
|
+
* while preserving the original typed error.
|
|
2720
|
+
*
|
|
2574
2721
|
* **Details**
|
|
2575
2722
|
*
|
|
2576
2723
|
* The callback receives the typed error. If the callback succeeds, the layer
|
|
2577
2724
|
* still fails with the original error; if the callback fails, that failure is
|
|
2578
2725
|
* added to the layer's error type.
|
|
2579
2726
|
*
|
|
2727
|
+
* @see {@link tap} for running an effect when layer construction succeeds
|
|
2728
|
+
* @see {@link tapCause} for inspecting the full failure cause, including defects and interruption
|
|
2729
|
+
*
|
|
2580
2730
|
* @category sequencing
|
|
2581
2731
|
* @since 2.0.0
|
|
2582
2732
|
*/
|
|
@@ -2585,6 +2735,11 @@ export declare const tapError: {
|
|
|
2585
2735
|
/**
|
|
2586
2736
|
* Performs the specified effect when this layer fails with any cause.
|
|
2587
2737
|
*
|
|
2738
|
+
* **When to use**
|
|
2739
|
+
*
|
|
2740
|
+
* Use to run diagnostics or reporting when layer construction fails and the
|
|
2741
|
+
* full `Cause` is needed.
|
|
2742
|
+
*
|
|
2588
2743
|
* **Details**
|
|
2589
2744
|
*
|
|
2590
2745
|
* The callback receives the layer's `Cause`, so it can inspect typed errors,
|
|
@@ -2592,6 +2747,9 @@ export declare const tapError: {
|
|
|
2592
2747
|
* fails again with the original cause; if the callback fails, that failure is
|
|
2593
2748
|
* added to the layer's error type.
|
|
2594
2749
|
*
|
|
2750
|
+
* @see {@link tapError} for observing only typed layer construction errors
|
|
2751
|
+
* @see {@link catchCause} for recovering from a layer construction failure by switching to another layer
|
|
2752
|
+
*
|
|
2595
2753
|
* @category sequencing
|
|
2596
2754
|
* @since 4.0.0
|
|
2597
2755
|
*/
|
|
@@ -2599,6 +2757,11 @@ export declare const tapCause: {
|
|
|
2599
2757
|
/**
|
|
2600
2758
|
* Performs the specified effect when this layer fails with any cause.
|
|
2601
2759
|
*
|
|
2760
|
+
* **When to use**
|
|
2761
|
+
*
|
|
2762
|
+
* Use to run diagnostics or reporting when layer construction fails and the
|
|
2763
|
+
* full `Cause` is needed.
|
|
2764
|
+
*
|
|
2602
2765
|
* **Details**
|
|
2603
2766
|
*
|
|
2604
2767
|
* The callback receives the layer's `Cause`, so it can inspect typed errors,
|
|
@@ -2606,6 +2769,9 @@ export declare const tapCause: {
|
|
|
2606
2769
|
* fails again with the original cause; if the callback fails, that failure is
|
|
2607
2770
|
* added to the layer's error type.
|
|
2608
2771
|
*
|
|
2772
|
+
* @see {@link tapError} for observing only typed layer construction errors
|
|
2773
|
+
* @see {@link catchCause} for recovering from a layer construction failure by switching to another layer
|
|
2774
|
+
*
|
|
2609
2775
|
* @category sequencing
|
|
2610
2776
|
* @since 4.0.0
|
|
2611
2777
|
*/
|
|
@@ -2613,6 +2779,11 @@ export declare const tapCause: {
|
|
|
2613
2779
|
/**
|
|
2614
2780
|
* Performs the specified effect when this layer fails with any cause.
|
|
2615
2781
|
*
|
|
2782
|
+
* **When to use**
|
|
2783
|
+
*
|
|
2784
|
+
* Use to run diagnostics or reporting when layer construction fails and the
|
|
2785
|
+
* full `Cause` is needed.
|
|
2786
|
+
*
|
|
2616
2787
|
* **Details**
|
|
2617
2788
|
*
|
|
2618
2789
|
* The callback receives the layer's `Cause`, so it can inspect typed errors,
|
|
@@ -2620,6 +2791,9 @@ export declare const tapCause: {
|
|
|
2620
2791
|
* fails again with the original cause; if the callback fails, that failure is
|
|
2621
2792
|
* added to the layer's error type.
|
|
2622
2793
|
*
|
|
2794
|
+
* @see {@link tapError} for observing only typed layer construction errors
|
|
2795
|
+
* @see {@link catchCause} for recovering from a layer construction failure by switching to another layer
|
|
2796
|
+
*
|
|
2623
2797
|
* @category sequencing
|
|
2624
2798
|
* @since 4.0.0
|
|
2625
2799
|
*/
|
|
@@ -2682,7 +2856,7 @@ export {
|
|
|
2682
2856
|
*
|
|
2683
2857
|
* **When to use**
|
|
2684
2858
|
*
|
|
2685
|
-
* Use
|
|
2859
|
+
* Use when every typed construction error should use the same recovery
|
|
2686
2860
|
* path. Use `catchTag` to recover from specific tagged errors, and `catchCause`
|
|
2687
2861
|
* when recovery needs the full failure cause.
|
|
2688
2862
|
*
|
|
@@ -2698,7 +2872,7 @@ catch_ as catch };
|
|
|
2698
2872
|
*
|
|
2699
2873
|
* **When to use**
|
|
2700
2874
|
*
|
|
2701
|
-
* Use
|
|
2875
|
+
* Use when only some tagged construction errors should be recovered.
|
|
2702
2876
|
* Use `catchCause` when recovery depends on defects, interruption, or other
|
|
2703
2877
|
* cause information.
|
|
2704
2878
|
*
|
|
@@ -2733,7 +2907,7 @@ export declare const catchTag: {
|
|
|
2733
2907
|
*
|
|
2734
2908
|
* **When to use**
|
|
2735
2909
|
*
|
|
2736
|
-
* Use
|
|
2910
|
+
* Use when only some tagged construction errors should be recovered.
|
|
2737
2911
|
* Use `catchCause` when recovery depends on defects, interruption, or other
|
|
2738
2912
|
* cause information.
|
|
2739
2913
|
*
|
|
@@ -2768,7 +2942,7 @@ export declare const catchTag: {
|
|
|
2768
2942
|
*
|
|
2769
2943
|
* **When to use**
|
|
2770
2944
|
*
|
|
2771
|
-
* Use
|
|
2945
|
+
* Use when only some tagged construction errors should be recovered.
|
|
2772
2946
|
* Use `catchCause` when recovery depends on defects, interruption, or other
|
|
2773
2947
|
* cause information.
|
|
2774
2948
|
*
|
|
@@ -2804,7 +2978,7 @@ export declare const catchTag: {
|
|
|
2804
2978
|
*
|
|
2805
2979
|
* **When to use**
|
|
2806
2980
|
*
|
|
2807
|
-
* Use
|
|
2981
|
+
* Use when recovery needs more than the typed error, such as
|
|
2808
2982
|
* defects or interruption information. Use `catchTag` when recovery only needs
|
|
2809
2983
|
* to match specific tagged errors.
|
|
2810
2984
|
*
|
|
@@ -2863,7 +3037,7 @@ export declare const catchCause: {
|
|
|
2863
3037
|
*
|
|
2864
3038
|
* **When to use**
|
|
2865
3039
|
*
|
|
2866
|
-
* Use
|
|
3040
|
+
* Use when recovery needs more than the typed error, such as
|
|
2867
3041
|
* defects or interruption information. Use `catchTag` when recovery only needs
|
|
2868
3042
|
* to match specific tagged errors.
|
|
2869
3043
|
*
|
|
@@ -2922,7 +3096,7 @@ export declare const catchCause: {
|
|
|
2922
3096
|
*
|
|
2923
3097
|
* **When to use**
|
|
2924
3098
|
*
|
|
2925
|
-
* Use
|
|
3099
|
+
* Use when recovery needs more than the typed error, such as
|
|
2926
3100
|
* defects or interruption information. Use `catchTag` when recovery only needs
|
|
2927
3101
|
* to match specific tagged errors.
|
|
2928
3102
|
*
|
|
@@ -2982,7 +3156,7 @@ export declare const catchCause: {
|
|
|
2982
3156
|
*
|
|
2983
3157
|
* **When to use**
|
|
2984
3158
|
*
|
|
2985
|
-
* Use
|
|
3159
|
+
* Use to adapt or extend a service's behavior during the creation of a
|
|
2986
3160
|
* layer.
|
|
2987
3161
|
*
|
|
2988
3162
|
* **Details**
|
|
@@ -3001,7 +3175,7 @@ export declare const updateService: {
|
|
|
3001
3175
|
*
|
|
3002
3176
|
* **When to use**
|
|
3003
3177
|
*
|
|
3004
|
-
* Use
|
|
3178
|
+
* Use to adapt or extend a service's behavior during the creation of a
|
|
3005
3179
|
* layer.
|
|
3006
3180
|
*
|
|
3007
3181
|
* **Details**
|
|
@@ -3020,7 +3194,7 @@ export declare const updateService: {
|
|
|
3020
3194
|
*
|
|
3021
3195
|
* **When to use**
|
|
3022
3196
|
*
|
|
3023
|
-
* Use
|
|
3197
|
+
* Use to adapt or extend a service's behavior during the creation of a
|
|
3024
3198
|
* layer.
|
|
3025
3199
|
*
|
|
3026
3200
|
* **Details**
|
|
@@ -3040,7 +3214,7 @@ export declare const updateService: {
|
|
|
3040
3214
|
*
|
|
3041
3215
|
* **When to use**
|
|
3042
3216
|
*
|
|
3043
|
-
* Use
|
|
3217
|
+
* Use when two parts of an application must receive separate instances
|
|
3044
3218
|
* of a resource, such as two independent client sessions. Do not use it just to
|
|
3045
3219
|
* work around confusing composition: by default, sharing the same layer value is
|
|
3046
3220
|
* usually the desired behavior.
|
|
@@ -3120,7 +3294,7 @@ export declare const fresh: <A, E, R>(self: Layer<A, E, R>) => Layer<A, E, R>;
|
|
|
3120
3294
|
*
|
|
3121
3295
|
* **When to use**
|
|
3122
3296
|
*
|
|
3123
|
-
* Use
|
|
3297
|
+
* Use when your entire application is a layer, such as an HTTP server.
|
|
3124
3298
|
*
|
|
3125
3299
|
* **Details**
|
|
3126
3300
|
*
|
|
@@ -3182,11 +3356,19 @@ export declare const launch: <RIn, E, ROut>(self: Layer<ROut, E, RIn>) => Effect
|
|
|
3182
3356
|
/**
|
|
3183
3357
|
* A utility type for creating partial mocks of services in testing.
|
|
3184
3358
|
*
|
|
3359
|
+
* **When to use**
|
|
3360
|
+
*
|
|
3361
|
+
* Use to type partial test service implementations where only exercised
|
|
3362
|
+
* effectful members are stubbed.
|
|
3363
|
+
*
|
|
3185
3364
|
* **Details**
|
|
3186
3365
|
*
|
|
3187
|
-
* This type makes Effect
|
|
3188
|
-
* while keeping non-
|
|
3189
|
-
* only the methods you need to test while leaving
|
|
3366
|
+
* This type makes `Effect`, `Stream`, and `Channel` values and functions
|
|
3367
|
+
* returning them optional, while keeping non-effectful properties required.
|
|
3368
|
+
* This allows you to provide only the methods you need to test while leaving
|
|
3369
|
+
* others unimplemented.
|
|
3370
|
+
*
|
|
3371
|
+
* @see {@link mock} for creating a mock layer from a partial service implementation
|
|
3190
3372
|
*
|
|
3191
3373
|
* @category testing
|
|
3192
3374
|
* @since 3.17.0
|
|
@@ -3467,6 +3649,20 @@ export declare const satisfiesServicesType: <RIn>() => <ROut, E, RIn2 extends RI
|
|
|
3467
3649
|
* Represents options that can be used to control the behavior of spans created
|
|
3468
3650
|
* for layers.
|
|
3469
3651
|
*
|
|
3652
|
+
* **When to use**
|
|
3653
|
+
*
|
|
3654
|
+
* Use to configure tracing metadata, stack trace capture, and `onEnd`
|
|
3655
|
+
* finalization for spans created by `Layer.span` and `Layer.withSpan` during
|
|
3656
|
+
* layer construction.
|
|
3657
|
+
*
|
|
3658
|
+
* **Details**
|
|
3659
|
+
*
|
|
3660
|
+
* Extends `Tracer.SpanOptions` with `onEnd`, which runs when the layer span
|
|
3661
|
+
* ends as the layer scope closes.
|
|
3662
|
+
*
|
|
3663
|
+
* @see {@link span} for creating a layer span
|
|
3664
|
+
* @see {@link withSpan} for wrapping layer construction in a span
|
|
3665
|
+
*
|
|
3470
3666
|
* @category models
|
|
3471
3667
|
* @since 4.0.0
|
|
3472
3668
|
*/
|