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/Option.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ declare const TypeId = "~effect/data/Option";
|
|
|
92
92
|
*
|
|
93
93
|
* **When to use**
|
|
94
94
|
*
|
|
95
|
-
*
|
|
95
|
+
* Use to represent initial values that may not yet exist
|
|
96
96
|
* - Returning from partial functions (not defined for all inputs)
|
|
97
97
|
* - Managing optional fields in data structures
|
|
98
98
|
*
|
|
@@ -109,7 +109,7 @@ export type Option<A> = None<A> | Some<A>;
|
|
|
109
109
|
*
|
|
110
110
|
* **When to use**
|
|
111
111
|
*
|
|
112
|
-
*
|
|
112
|
+
* Use as a type guard target when narrowing via {@link isNone}
|
|
113
113
|
*
|
|
114
114
|
* **Details**
|
|
115
115
|
*
|
|
@@ -138,6 +138,13 @@ export interface None<out A> extends Pipeable, Inspectable {
|
|
|
138
138
|
* Iterator protocol used to yield an `Option` inside {@link gen}, returning the
|
|
139
139
|
* contained value type back to the generator.
|
|
140
140
|
*
|
|
141
|
+
* **When to use**
|
|
142
|
+
*
|
|
143
|
+
* Use when defining or typing `[Symbol.iterator]()` for `Option` values so
|
|
144
|
+
* `yield*` can pass the contained value type back into `Option.gen`.
|
|
145
|
+
*
|
|
146
|
+
* @see {@link gen} for writing generator-based `Option` code that consumes this iterator protocol
|
|
147
|
+
*
|
|
141
148
|
* @category Generators
|
|
142
149
|
* @since 4.0.0
|
|
143
150
|
*/
|
|
@@ -149,7 +156,7 @@ export interface OptionIterator<T extends Option<any>> {
|
|
|
149
156
|
*
|
|
150
157
|
* **When to use**
|
|
151
158
|
*
|
|
152
|
-
*
|
|
159
|
+
* Use as a type guard target when narrowing via {@link isSome}
|
|
153
160
|
* - Access the inner value via `.value`
|
|
154
161
|
*
|
|
155
162
|
* **Details**
|
|
@@ -180,6 +187,10 @@ export interface Some<out A> extends Pipeable, Inspectable {
|
|
|
180
187
|
/**
|
|
181
188
|
* Type-level unification support for `Option` values.
|
|
182
189
|
*
|
|
190
|
+
* **When to use**
|
|
191
|
+
*
|
|
192
|
+
* Use when extending Effect's type-level unification support for `Option`.
|
|
193
|
+
*
|
|
183
194
|
* **Details**
|
|
184
195
|
*
|
|
185
196
|
* This is used by Effect's `Unify` machinery to preserve the contained value
|
|
@@ -197,12 +208,20 @@ export interface OptionUnify<A extends {
|
|
|
197
208
|
/**
|
|
198
209
|
* Namespace containing utility types for `Option`.
|
|
199
210
|
*
|
|
211
|
+
* **When to use**
|
|
212
|
+
*
|
|
213
|
+
* Use to access type-level helpers associated with `Option`.
|
|
214
|
+
*
|
|
200
215
|
* @since 2.0.0
|
|
201
216
|
*/
|
|
202
217
|
export declare namespace Option {
|
|
203
218
|
/**
|
|
204
219
|
* Extracts the type of the value contained in an `Option`.
|
|
205
220
|
*
|
|
221
|
+
* **When to use**
|
|
222
|
+
*
|
|
223
|
+
* Use to infer the inner value type from an existing `Option` type.
|
|
224
|
+
*
|
|
206
225
|
* **Example** (Extracting the value type)
|
|
207
226
|
*
|
|
208
227
|
* ```ts
|
|
@@ -223,6 +242,10 @@ export declare namespace Option {
|
|
|
223
242
|
/**
|
|
224
243
|
* Marker interface used by Effect's `Unify` machinery for `Option` values.
|
|
225
244
|
*
|
|
245
|
+
* **When to use**
|
|
246
|
+
*
|
|
247
|
+
* Use when marking generic code so `Option` unification should be ignored.
|
|
248
|
+
*
|
|
226
249
|
* **Details**
|
|
227
250
|
*
|
|
228
251
|
* This supports type-level unification behavior for `Option`. Users normally
|
|
@@ -236,6 +259,10 @@ export interface OptionUnifyIgnore {
|
|
|
236
259
|
/**
|
|
237
260
|
* Type lambda interface for higher-kinded type encodings with `Option`.
|
|
238
261
|
*
|
|
262
|
+
* **When to use**
|
|
263
|
+
*
|
|
264
|
+
* Use to represent `Option` in higher-kinded type operations.
|
|
265
|
+
*
|
|
239
266
|
* @category Type Lambdas
|
|
240
267
|
* @since 2.0.0
|
|
241
268
|
*/
|
|
@@ -247,8 +274,8 @@ export interface OptionTypeLambda extends TypeLambda {
|
|
|
247
274
|
*
|
|
248
275
|
* **When to use**
|
|
249
276
|
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
277
|
+
* Use to represent a missing or uninitialized value, such as returning "no
|
|
278
|
+
* result" from a function.
|
|
252
279
|
*
|
|
253
280
|
* **Details**
|
|
254
281
|
*
|
|
@@ -279,7 +306,7 @@ export declare const none: <A = never>() => Option<A>;
|
|
|
279
306
|
*
|
|
280
307
|
* **When to use**
|
|
281
308
|
*
|
|
282
|
-
*
|
|
309
|
+
* Use to wrap a known-present value as `Option`
|
|
283
310
|
* - Returning a successful result from a partial function
|
|
284
311
|
*
|
|
285
312
|
* **Details**
|
|
@@ -311,8 +338,8 @@ export declare const some: <A>(value: A) => Option<A>;
|
|
|
311
338
|
*
|
|
312
339
|
* **When to use**
|
|
313
340
|
*
|
|
314
|
-
*
|
|
315
|
-
*
|
|
341
|
+
* Use to validate unknown values at runtime boundaries, such as type-narrowing
|
|
342
|
+
* in union types.
|
|
316
343
|
*
|
|
317
344
|
* **Details**
|
|
318
345
|
*
|
|
@@ -346,7 +373,7 @@ export declare const isOption: (input: unknown) => input is Option<unknown>;
|
|
|
346
373
|
*
|
|
347
374
|
* **When to use**
|
|
348
375
|
*
|
|
349
|
-
*
|
|
376
|
+
* Use when branching on absence before accessing `.value`
|
|
350
377
|
*
|
|
351
378
|
* **Details**
|
|
352
379
|
*
|
|
@@ -375,7 +402,7 @@ export declare const isNone: <A>(self: Option<A>) => self is None<A>;
|
|
|
375
402
|
*
|
|
376
403
|
* **When to use**
|
|
377
404
|
*
|
|
378
|
-
*
|
|
405
|
+
* Use when branching on presence before accessing `.value`
|
|
379
406
|
*
|
|
380
407
|
* **Details**
|
|
381
408
|
*
|
|
@@ -404,7 +431,7 @@ export declare const isSome: <A>(self: Option<A>) => self is Some<A>;
|
|
|
404
431
|
*
|
|
405
432
|
* **When to use**
|
|
406
433
|
*
|
|
407
|
-
*
|
|
434
|
+
* Use when exhaustively handling both branches in one expression
|
|
408
435
|
* - Transforming an `Option` into a plain value
|
|
409
436
|
*
|
|
410
437
|
* **Details**
|
|
@@ -438,7 +465,7 @@ export declare const match: {
|
|
|
438
465
|
*
|
|
439
466
|
* **When to use**
|
|
440
467
|
*
|
|
441
|
-
*
|
|
468
|
+
* Use when exhaustively handling both branches in one expression
|
|
442
469
|
* - Transforming an `Option` into a plain value
|
|
443
470
|
*
|
|
444
471
|
* **Details**
|
|
@@ -475,7 +502,7 @@ export declare const match: {
|
|
|
475
502
|
*
|
|
476
503
|
* **When to use**
|
|
477
504
|
*
|
|
478
|
-
*
|
|
505
|
+
* Use when exhaustively handling both branches in one expression
|
|
479
506
|
* - Transforming an `Option` into a plain value
|
|
480
507
|
*
|
|
481
508
|
* **Details**
|
|
@@ -513,7 +540,7 @@ export declare const match: {
|
|
|
513
540
|
*
|
|
514
541
|
* **When to use**
|
|
515
542
|
*
|
|
516
|
-
*
|
|
543
|
+
* Use when turning a parsing function into a type-narrowing predicate
|
|
517
544
|
* - Filtering arrays with `Array.prototype.filter`
|
|
518
545
|
*
|
|
519
546
|
* **Details**
|
|
@@ -555,7 +582,7 @@ export declare const toRefinement: <A, B extends A>(f: (a: A) => Option<B>) => (
|
|
|
555
582
|
*
|
|
556
583
|
* **When to use**
|
|
557
584
|
*
|
|
558
|
-
*
|
|
585
|
+
* Use when safely extracting the head of a collection
|
|
559
586
|
* - Working with generators or lazy iterables
|
|
560
587
|
*
|
|
561
588
|
* **Details**
|
|
@@ -586,7 +613,7 @@ export declare const fromIterable: <A>(collection: Iterable<A>) => Option<A>;
|
|
|
586
613
|
*
|
|
587
614
|
* **When to use**
|
|
588
615
|
*
|
|
589
|
-
*
|
|
616
|
+
* Use when discarding the failure channel when you only care about success
|
|
590
617
|
*
|
|
591
618
|
* **Details**
|
|
592
619
|
*
|
|
@@ -616,7 +643,7 @@ export declare const getSuccess: <A, E>(self: Result<A, E>) => Option<A>;
|
|
|
616
643
|
*
|
|
617
644
|
* **When to use**
|
|
618
645
|
*
|
|
619
|
-
*
|
|
646
|
+
* Use to extract the failure when you do not need the success value
|
|
620
647
|
*
|
|
621
648
|
* **Details**
|
|
622
649
|
*
|
|
@@ -646,7 +673,7 @@ export declare const getFailure: <A, E>(self: Result<A, E>) => Option<E>;
|
|
|
646
673
|
*
|
|
647
674
|
* **When to use**
|
|
648
675
|
*
|
|
649
|
-
*
|
|
676
|
+
* Use when providing a default value for an absent `Option`
|
|
650
677
|
* - Unwrapping with lazy evaluation of the fallback
|
|
651
678
|
*
|
|
652
679
|
* **Details**
|
|
@@ -680,7 +707,7 @@ export declare const getOrElse: {
|
|
|
680
707
|
*
|
|
681
708
|
* **When to use**
|
|
682
709
|
*
|
|
683
|
-
*
|
|
710
|
+
* Use when providing a default value for an absent `Option`
|
|
684
711
|
* - Unwrapping with lazy evaluation of the fallback
|
|
685
712
|
*
|
|
686
713
|
* **Details**
|
|
@@ -714,7 +741,7 @@ export declare const getOrElse: {
|
|
|
714
741
|
*
|
|
715
742
|
* **When to use**
|
|
716
743
|
*
|
|
717
|
-
*
|
|
744
|
+
* Use when providing a default value for an absent `Option`
|
|
718
745
|
* - Unwrapping with lazy evaluation of the fallback
|
|
719
746
|
*
|
|
720
747
|
* **Details**
|
|
@@ -749,7 +776,7 @@ export declare const getOrElse: {
|
|
|
749
776
|
*
|
|
750
777
|
* **When to use**
|
|
751
778
|
*
|
|
752
|
-
*
|
|
779
|
+
* Use when chaining fallback `Option` computations
|
|
753
780
|
* - Building priority chains of optional values
|
|
754
781
|
*
|
|
755
782
|
* **Details**
|
|
@@ -782,7 +809,7 @@ export declare const orElse: {
|
|
|
782
809
|
*
|
|
783
810
|
* **When to use**
|
|
784
811
|
*
|
|
785
|
-
*
|
|
812
|
+
* Use when chaining fallback `Option` computations
|
|
786
813
|
* - Building priority chains of optional values
|
|
787
814
|
*
|
|
788
815
|
* **Details**
|
|
@@ -815,7 +842,7 @@ export declare const orElse: {
|
|
|
815
842
|
*
|
|
816
843
|
* **When to use**
|
|
817
844
|
*
|
|
818
|
-
*
|
|
845
|
+
* Use when chaining fallback `Option` computations
|
|
819
846
|
* - Building priority chains of optional values
|
|
820
847
|
*
|
|
821
848
|
* **Details**
|
|
@@ -850,7 +877,7 @@ export declare const orElse: {
|
|
|
850
877
|
*
|
|
851
878
|
* **When to use**
|
|
852
879
|
*
|
|
853
|
-
*
|
|
880
|
+
* Use when providing a default plain value (not an `Option`) as fallback
|
|
854
881
|
*
|
|
855
882
|
* **Details**
|
|
856
883
|
*
|
|
@@ -881,7 +908,7 @@ export declare const orElseSome: {
|
|
|
881
908
|
*
|
|
882
909
|
* **When to use**
|
|
883
910
|
*
|
|
884
|
-
*
|
|
911
|
+
* Use when providing a default plain value (not an `Option`) as fallback
|
|
885
912
|
*
|
|
886
913
|
* **Details**
|
|
887
914
|
*
|
|
@@ -912,7 +939,7 @@ export declare const orElseSome: {
|
|
|
912
939
|
*
|
|
913
940
|
* **When to use**
|
|
914
941
|
*
|
|
915
|
-
*
|
|
942
|
+
* Use when providing a default plain value (not an `Option`) as fallback
|
|
916
943
|
*
|
|
917
944
|
* **Details**
|
|
918
945
|
*
|
|
@@ -939,12 +966,12 @@ export declare const orElseSome: {
|
|
|
939
966
|
<A, B>(self: Option<A>, onNone: LazyArg<B>): Option<A | B>;
|
|
940
967
|
};
|
|
941
968
|
/**
|
|
942
|
-
*
|
|
943
|
-
* source of the value.
|
|
969
|
+
* Returns the first available value and marks whether it came from the fallback.
|
|
944
970
|
*
|
|
945
971
|
* **When to use**
|
|
946
972
|
*
|
|
947
|
-
*
|
|
973
|
+
* Use when distinguishing whether a value came from the primary or fallback
|
|
974
|
+
* `Option`.
|
|
948
975
|
*
|
|
949
976
|
* **Details**
|
|
950
977
|
*
|
|
@@ -971,12 +998,12 @@ export declare const orElseSome: {
|
|
|
971
998
|
*/
|
|
972
999
|
export declare const orElseResult: {
|
|
973
1000
|
/**
|
|
974
|
-
*
|
|
975
|
-
* source of the value.
|
|
1001
|
+
* Returns the first available value and marks whether it came from the fallback.
|
|
976
1002
|
*
|
|
977
1003
|
* **When to use**
|
|
978
1004
|
*
|
|
979
|
-
*
|
|
1005
|
+
* Use when distinguishing whether a value came from the primary or fallback
|
|
1006
|
+
* `Option`.
|
|
980
1007
|
*
|
|
981
1008
|
* **Details**
|
|
982
1009
|
*
|
|
@@ -1003,12 +1030,12 @@ export declare const orElseResult: {
|
|
|
1003
1030
|
*/
|
|
1004
1031
|
<B>(that: LazyArg<Option<B>>): <A>(self: Option<A>) => Option<Result<B, A>>;
|
|
1005
1032
|
/**
|
|
1006
|
-
*
|
|
1007
|
-
* source of the value.
|
|
1033
|
+
* Returns the first available value and marks whether it came from the fallback.
|
|
1008
1034
|
*
|
|
1009
1035
|
* **When to use**
|
|
1010
1036
|
*
|
|
1011
|
-
*
|
|
1037
|
+
* Use when distinguishing whether a value came from the primary or fallback
|
|
1038
|
+
* `Option`.
|
|
1012
1039
|
*
|
|
1013
1040
|
* **Details**
|
|
1014
1041
|
*
|
|
@@ -1041,7 +1068,7 @@ export declare const orElseResult: {
|
|
|
1041
1068
|
*
|
|
1042
1069
|
* **When to use**
|
|
1043
1070
|
*
|
|
1044
|
-
*
|
|
1071
|
+
* Use when searching for the first available value in a priority list
|
|
1045
1072
|
*
|
|
1046
1073
|
* **Details**
|
|
1047
1074
|
*
|
|
@@ -1072,7 +1099,7 @@ export declare const firstSomeOf: <T, C extends Iterable<Option<T>> = Iterable<O
|
|
|
1072
1099
|
*
|
|
1073
1100
|
* **When to use**
|
|
1074
1101
|
*
|
|
1075
|
-
*
|
|
1102
|
+
* Use when bridging from nullable APIs to `Option`
|
|
1076
1103
|
* - Wrapping values that may be `null` or `undefined`
|
|
1077
1104
|
*
|
|
1078
1105
|
* **Details**
|
|
@@ -1109,7 +1136,7 @@ export declare const fromNullishOr: <A>(a: A) => Option<NonNullable<A>>;
|
|
|
1109
1136
|
*
|
|
1110
1137
|
* **When to use**
|
|
1111
1138
|
*
|
|
1112
|
-
*
|
|
1139
|
+
* Use when when `null` is a meaningful value but `undefined` means absent
|
|
1113
1140
|
*
|
|
1114
1141
|
* **Details**
|
|
1115
1142
|
*
|
|
@@ -1144,7 +1171,7 @@ export declare const fromUndefinedOr: <A>(a: A) => Option<Exclude<A, undefined>>
|
|
|
1144
1171
|
*
|
|
1145
1172
|
* **When to use**
|
|
1146
1173
|
*
|
|
1147
|
-
*
|
|
1174
|
+
* Use when when `undefined` is a meaningful value but `null` means absent
|
|
1148
1175
|
*
|
|
1149
1176
|
* **Details**
|
|
1150
1177
|
*
|
|
@@ -1179,7 +1206,7 @@ export declare const fromNullOr: <A>(a: A) => Option<Exclude<A, null>>;
|
|
|
1179
1206
|
*
|
|
1180
1207
|
* **When to use**
|
|
1181
1208
|
*
|
|
1182
|
-
*
|
|
1209
|
+
* Use to wrap existing nullable-returning functions for use in `Option` pipelines
|
|
1183
1210
|
*
|
|
1184
1211
|
* **Details**
|
|
1185
1212
|
*
|
|
@@ -1217,7 +1244,7 @@ export declare const liftNullishOr: <A extends ReadonlyArray<unknown>, B>(f: (..
|
|
|
1217
1244
|
*
|
|
1218
1245
|
* **When to use**
|
|
1219
1246
|
*
|
|
1220
|
-
*
|
|
1247
|
+
* Use when interoping with APIs that use `null` for missing values
|
|
1221
1248
|
*
|
|
1222
1249
|
* **Details**
|
|
1223
1250
|
*
|
|
@@ -1248,7 +1275,7 @@ export declare const getOrNull: <A>(self: Option<A>) => A | null;
|
|
|
1248
1275
|
*
|
|
1249
1276
|
* **When to use**
|
|
1250
1277
|
*
|
|
1251
|
-
*
|
|
1278
|
+
* Use when interoping with APIs that use `undefined` for missing values
|
|
1252
1279
|
*
|
|
1253
1280
|
* **Details**
|
|
1254
1281
|
*
|
|
@@ -1279,7 +1306,7 @@ export declare const getOrUndefined: <A>(self: Option<A>) => A | undefined;
|
|
|
1279
1306
|
*
|
|
1280
1307
|
* **When to use**
|
|
1281
1308
|
*
|
|
1282
|
-
*
|
|
1309
|
+
* Use to wrap exception-throwing APIs (e.g. `JSON.parse`) for safe usage
|
|
1283
1310
|
*
|
|
1284
1311
|
* **Details**
|
|
1285
1312
|
*
|
|
@@ -1311,7 +1338,7 @@ export declare const liftThrowable: <A extends ReadonlyArray<unknown>, B>(f: (..
|
|
|
1311
1338
|
*
|
|
1312
1339
|
* **When to use**
|
|
1313
1340
|
*
|
|
1314
|
-
*
|
|
1341
|
+
* Use when fail-fast unwrapping when absence is unexpected
|
|
1315
1342
|
* - Providing a descriptive error for debugging
|
|
1316
1343
|
*
|
|
1317
1344
|
* **Details**
|
|
@@ -1343,7 +1370,7 @@ export declare const getOrThrowWith: {
|
|
|
1343
1370
|
*
|
|
1344
1371
|
* **When to use**
|
|
1345
1372
|
*
|
|
1346
|
-
*
|
|
1373
|
+
* Use when fail-fast unwrapping when absence is unexpected
|
|
1347
1374
|
* - Providing a descriptive error for debugging
|
|
1348
1375
|
*
|
|
1349
1376
|
* **Details**
|
|
@@ -1375,7 +1402,7 @@ export declare const getOrThrowWith: {
|
|
|
1375
1402
|
*
|
|
1376
1403
|
* **When to use**
|
|
1377
1404
|
*
|
|
1378
|
-
*
|
|
1405
|
+
* Use when fail-fast unwrapping when absence is unexpected
|
|
1379
1406
|
* - Providing a descriptive error for debugging
|
|
1380
1407
|
*
|
|
1381
1408
|
* **Details**
|
|
@@ -1408,7 +1435,7 @@ export declare const getOrThrowWith: {
|
|
|
1408
1435
|
*
|
|
1409
1436
|
* **When to use**
|
|
1410
1437
|
*
|
|
1411
|
-
*
|
|
1438
|
+
* Use when quick fail-fast unwrapping when a generic error is acceptable
|
|
1412
1439
|
*
|
|
1413
1440
|
* **Details**
|
|
1414
1441
|
*
|
|
@@ -1440,14 +1467,13 @@ export declare const getOrThrow: <A>(self: Option<A>) => A;
|
|
|
1440
1467
|
*
|
|
1441
1468
|
* **When to use**
|
|
1442
1469
|
*
|
|
1443
|
-
*
|
|
1444
|
-
*
|
|
1470
|
+
* Use to apply a pure transformation to an optional value, especially when
|
|
1471
|
+
* chaining transformations in a pipeline.
|
|
1445
1472
|
*
|
|
1446
1473
|
* **Details**
|
|
1447
1474
|
*
|
|
1448
1475
|
* - `Some` → applies `f` and wraps the result in a new `Some`
|
|
1449
1476
|
* - `None` → returns `None` unchanged
|
|
1450
|
-
* - Does not mutate the input
|
|
1451
1477
|
*
|
|
1452
1478
|
* **Example** (Mapping over an Option)
|
|
1453
1479
|
*
|
|
@@ -1474,14 +1500,13 @@ export declare const map: {
|
|
|
1474
1500
|
*
|
|
1475
1501
|
* **When to use**
|
|
1476
1502
|
*
|
|
1477
|
-
*
|
|
1478
|
-
*
|
|
1503
|
+
* Use to apply a pure transformation to an optional value, especially when
|
|
1504
|
+
* chaining transformations in a pipeline.
|
|
1479
1505
|
*
|
|
1480
1506
|
* **Details**
|
|
1481
1507
|
*
|
|
1482
1508
|
* - `Some` → applies `f` and wraps the result in a new `Some`
|
|
1483
1509
|
* - `None` → returns `None` unchanged
|
|
1484
|
-
* - Does not mutate the input
|
|
1485
1510
|
*
|
|
1486
1511
|
* **Example** (Mapping over an Option)
|
|
1487
1512
|
*
|
|
@@ -1508,14 +1533,13 @@ export declare const map: {
|
|
|
1508
1533
|
*
|
|
1509
1534
|
* **When to use**
|
|
1510
1535
|
*
|
|
1511
|
-
*
|
|
1512
|
-
*
|
|
1536
|
+
* Use to apply a pure transformation to an optional value, especially when
|
|
1537
|
+
* chaining transformations in a pipeline.
|
|
1513
1538
|
*
|
|
1514
1539
|
* **Details**
|
|
1515
1540
|
*
|
|
1516
1541
|
* - `Some` → applies `f` and wraps the result in a new `Some`
|
|
1517
1542
|
* - `None` → returns `None` unchanged
|
|
1518
|
-
* - Does not mutate the input
|
|
1519
1543
|
*
|
|
1520
1544
|
* **Example** (Mapping over an Option)
|
|
1521
1545
|
*
|
|
@@ -1542,7 +1566,7 @@ export declare const map: {
|
|
|
1542
1566
|
*
|
|
1543
1567
|
* **When to use**
|
|
1544
1568
|
*
|
|
1545
|
-
*
|
|
1569
|
+
* Use when preserving presence/absence while discarding the original value
|
|
1546
1570
|
*
|
|
1547
1571
|
* **Details**
|
|
1548
1572
|
*
|
|
@@ -1573,7 +1597,7 @@ export declare const as: {
|
|
|
1573
1597
|
*
|
|
1574
1598
|
* **When to use**
|
|
1575
1599
|
*
|
|
1576
|
-
*
|
|
1600
|
+
* Use when preserving presence/absence while discarding the original value
|
|
1577
1601
|
*
|
|
1578
1602
|
* **Details**
|
|
1579
1603
|
*
|
|
@@ -1604,7 +1628,7 @@ export declare const as: {
|
|
|
1604
1628
|
*
|
|
1605
1629
|
* **When to use**
|
|
1606
1630
|
*
|
|
1607
|
-
*
|
|
1631
|
+
* Use when preserving presence/absence while discarding the original value
|
|
1608
1632
|
*
|
|
1609
1633
|
* **Details**
|
|
1610
1634
|
*
|
|
@@ -1637,7 +1661,7 @@ export declare const as: {
|
|
|
1637
1661
|
*
|
|
1638
1662
|
* **When to use**
|
|
1639
1663
|
*
|
|
1640
|
-
*
|
|
1664
|
+
* Use when discarding the value while preserving presence/absence
|
|
1641
1665
|
*
|
|
1642
1666
|
* **Details**
|
|
1643
1667
|
*
|
|
@@ -1665,11 +1689,11 @@ export declare const asVoid: <_>(self: Option<_>) => Option<void>;
|
|
|
1665
1689
|
declare const void_: Option<void>;
|
|
1666
1690
|
export {
|
|
1667
1691
|
/**
|
|
1668
|
-
*
|
|
1692
|
+
* Provides a pre-built `Some(undefined)` constant.
|
|
1669
1693
|
*
|
|
1670
1694
|
* **When to use**
|
|
1671
1695
|
*
|
|
1672
|
-
*
|
|
1696
|
+
* Use to return a "success with no meaningful value" from an `Option`-returning function
|
|
1673
1697
|
*
|
|
1674
1698
|
* **Example** (Using Option.void)
|
|
1675
1699
|
*
|
|
@@ -1692,8 +1716,8 @@ void_ as void };
|
|
|
1692
1716
|
*
|
|
1693
1717
|
* **When to use**
|
|
1694
1718
|
*
|
|
1695
|
-
*
|
|
1696
|
-
*
|
|
1719
|
+
* Use when chaining dependent optional computations where each step may return
|
|
1720
|
+
* `None`.
|
|
1697
1721
|
*
|
|
1698
1722
|
* **Details**
|
|
1699
1723
|
*
|
|
@@ -1738,8 +1762,8 @@ export declare const flatMap: {
|
|
|
1738
1762
|
*
|
|
1739
1763
|
* **When to use**
|
|
1740
1764
|
*
|
|
1741
|
-
*
|
|
1742
|
-
*
|
|
1765
|
+
* Use when chaining dependent optional computations where each step may return
|
|
1766
|
+
* `None`.
|
|
1743
1767
|
*
|
|
1744
1768
|
* **Details**
|
|
1745
1769
|
*
|
|
@@ -1784,8 +1808,8 @@ export declare const flatMap: {
|
|
|
1784
1808
|
*
|
|
1785
1809
|
* **When to use**
|
|
1786
1810
|
*
|
|
1787
|
-
*
|
|
1788
|
-
*
|
|
1811
|
+
* Use when chaining dependent optional computations where each step may return
|
|
1812
|
+
* `None`.
|
|
1789
1813
|
*
|
|
1790
1814
|
* **Details**
|
|
1791
1815
|
*
|
|
@@ -1831,7 +1855,7 @@ export declare const flatMap: {
|
|
|
1831
1855
|
*
|
|
1832
1856
|
* **When to use**
|
|
1833
1857
|
*
|
|
1834
|
-
*
|
|
1858
|
+
* Use when flexible chaining where the next step may return `Option`, a plain value,
|
|
1835
1859
|
* or a function
|
|
1836
1860
|
*
|
|
1837
1861
|
* **Details**
|
|
@@ -1872,7 +1896,7 @@ export declare const andThen: {
|
|
|
1872
1896
|
*
|
|
1873
1897
|
* **When to use**
|
|
1874
1898
|
*
|
|
1875
|
-
*
|
|
1899
|
+
* Use when flexible chaining where the next step may return `Option`, a plain value,
|
|
1876
1900
|
* or a function
|
|
1877
1901
|
*
|
|
1878
1902
|
* **Details**
|
|
@@ -1913,7 +1937,7 @@ export declare const andThen: {
|
|
|
1913
1937
|
*
|
|
1914
1938
|
* **When to use**
|
|
1915
1939
|
*
|
|
1916
|
-
*
|
|
1940
|
+
* Use when flexible chaining where the next step may return `Option`, a plain value,
|
|
1917
1941
|
* or a function
|
|
1918
1942
|
*
|
|
1919
1943
|
* **Details**
|
|
@@ -1954,7 +1978,7 @@ export declare const andThen: {
|
|
|
1954
1978
|
*
|
|
1955
1979
|
* **When to use**
|
|
1956
1980
|
*
|
|
1957
|
-
*
|
|
1981
|
+
* Use when flexible chaining where the next step may return `Option`, a plain value,
|
|
1958
1982
|
* or a function
|
|
1959
1983
|
*
|
|
1960
1984
|
* **Details**
|
|
@@ -1995,7 +2019,7 @@ export declare const andThen: {
|
|
|
1995
2019
|
*
|
|
1996
2020
|
* **When to use**
|
|
1997
2021
|
*
|
|
1998
|
-
*
|
|
2022
|
+
* Use when flexible chaining where the next step may return `Option`, a plain value,
|
|
1999
2023
|
* or a function
|
|
2000
2024
|
*
|
|
2001
2025
|
* **Details**
|
|
@@ -2036,7 +2060,7 @@ export declare const andThen: {
|
|
|
2036
2060
|
*
|
|
2037
2061
|
* **When to use**
|
|
2038
2062
|
*
|
|
2039
|
-
*
|
|
2063
|
+
* Use when flexible chaining where the next step may return `Option`, a plain value,
|
|
2040
2064
|
* or a function
|
|
2041
2065
|
*
|
|
2042
2066
|
* **Details**
|
|
@@ -2077,7 +2101,7 @@ export declare const andThen: {
|
|
|
2077
2101
|
*
|
|
2078
2102
|
* **When to use**
|
|
2079
2103
|
*
|
|
2080
|
-
*
|
|
2104
|
+
* Use when flexible chaining where the next step may return `Option`, a plain value,
|
|
2081
2105
|
* or a function
|
|
2082
2106
|
*
|
|
2083
2107
|
* **Details**
|
|
@@ -2118,7 +2142,7 @@ export declare const andThen: {
|
|
|
2118
2142
|
*
|
|
2119
2143
|
* **When to use**
|
|
2120
2144
|
*
|
|
2121
|
-
*
|
|
2145
|
+
* Use when flexible chaining where the next step may return `Option`, a plain value,
|
|
2122
2146
|
* or a function
|
|
2123
2147
|
*
|
|
2124
2148
|
* **Details**
|
|
@@ -2159,7 +2183,7 @@ export declare const andThen: {
|
|
|
2159
2183
|
*
|
|
2160
2184
|
* **When to use**
|
|
2161
2185
|
*
|
|
2162
|
-
*
|
|
2186
|
+
* Use when flexible chaining where the next step may return `Option`, a plain value,
|
|
2163
2187
|
* or a function
|
|
2164
2188
|
*
|
|
2165
2189
|
* **Details**
|
|
@@ -2201,7 +2225,7 @@ export declare const andThen: {
|
|
|
2201
2225
|
*
|
|
2202
2226
|
* **When to use**
|
|
2203
2227
|
*
|
|
2204
|
-
*
|
|
2228
|
+
* Use when chaining with functions that use `null`/`undefined` instead of `Option`
|
|
2205
2229
|
* - Navigating deeply nested optional properties
|
|
2206
2230
|
*
|
|
2207
2231
|
* **Details**
|
|
@@ -2243,7 +2267,7 @@ export declare const flatMapNullishOr: {
|
|
|
2243
2267
|
*
|
|
2244
2268
|
* **When to use**
|
|
2245
2269
|
*
|
|
2246
|
-
*
|
|
2270
|
+
* Use when chaining with functions that use `null`/`undefined` instead of `Option`
|
|
2247
2271
|
* - Navigating deeply nested optional properties
|
|
2248
2272
|
*
|
|
2249
2273
|
* **Details**
|
|
@@ -2285,7 +2309,7 @@ export declare const flatMapNullishOr: {
|
|
|
2285
2309
|
*
|
|
2286
2310
|
* **When to use**
|
|
2287
2311
|
*
|
|
2288
|
-
*
|
|
2312
|
+
* Use when chaining with functions that use `null`/`undefined` instead of `Option`
|
|
2289
2313
|
* - Navigating deeply nested optional properties
|
|
2290
2314
|
*
|
|
2291
2315
|
* **Details**
|
|
@@ -2327,7 +2351,7 @@ export declare const flatMapNullishOr: {
|
|
|
2327
2351
|
*
|
|
2328
2352
|
* **When to use**
|
|
2329
2353
|
*
|
|
2330
|
-
*
|
|
2354
|
+
* Use when removing one layer of `Option` nesting
|
|
2331
2355
|
*
|
|
2332
2356
|
* **Details**
|
|
2333
2357
|
*
|
|
@@ -2358,7 +2382,7 @@ export declare const flatten: <A>(self: Option<Option<A>>) => Option<A>;
|
|
|
2358
2382
|
*
|
|
2359
2383
|
* **When to use**
|
|
2360
2384
|
*
|
|
2361
|
-
*
|
|
2385
|
+
* Use to run a side-condition that must succeed, then using the second value
|
|
2362
2386
|
*
|
|
2363
2387
|
* **Details**
|
|
2364
2388
|
*
|
|
@@ -2389,7 +2413,7 @@ export declare const zipRight: {
|
|
|
2389
2413
|
*
|
|
2390
2414
|
* **When to use**
|
|
2391
2415
|
*
|
|
2392
|
-
*
|
|
2416
|
+
* Use to run a side-condition that must succeed, then using the second value
|
|
2393
2417
|
*
|
|
2394
2418
|
* **Details**
|
|
2395
2419
|
*
|
|
@@ -2420,7 +2444,7 @@ export declare const zipRight: {
|
|
|
2420
2444
|
*
|
|
2421
2445
|
* **When to use**
|
|
2422
2446
|
*
|
|
2423
|
-
*
|
|
2447
|
+
* Use to run a side-condition that must succeed, then using the second value
|
|
2424
2448
|
*
|
|
2425
2449
|
* **Details**
|
|
2426
2450
|
*
|
|
@@ -2452,7 +2476,7 @@ export declare const zipRight: {
|
|
|
2452
2476
|
*
|
|
2453
2477
|
* **When to use**
|
|
2454
2478
|
*
|
|
2455
|
-
*
|
|
2479
|
+
* Use to run a validation that must succeed, but keeping the original value
|
|
2456
2480
|
*
|
|
2457
2481
|
* **Details**
|
|
2458
2482
|
*
|
|
@@ -2483,7 +2507,7 @@ export declare const zipLeft: {
|
|
|
2483
2507
|
*
|
|
2484
2508
|
* **When to use**
|
|
2485
2509
|
*
|
|
2486
|
-
*
|
|
2510
|
+
* Use to run a validation that must succeed, but keeping the original value
|
|
2487
2511
|
*
|
|
2488
2512
|
* **Details**
|
|
2489
2513
|
*
|
|
@@ -2514,7 +2538,7 @@ export declare const zipLeft: {
|
|
|
2514
2538
|
*
|
|
2515
2539
|
* **When to use**
|
|
2516
2540
|
*
|
|
2517
|
-
*
|
|
2541
|
+
* Use to run a validation that must succeed, but keeping the original value
|
|
2518
2542
|
*
|
|
2519
2543
|
* **Details**
|
|
2520
2544
|
*
|
|
@@ -2547,7 +2571,7 @@ export declare const zipLeft: {
|
|
|
2547
2571
|
*
|
|
2548
2572
|
* **When to use**
|
|
2549
2573
|
*
|
|
2550
|
-
*
|
|
2574
|
+
* Use to build pipelines of partial functions (Kleisli composition)
|
|
2551
2575
|
*
|
|
2552
2576
|
* **Details**
|
|
2553
2577
|
*
|
|
@@ -2586,7 +2610,7 @@ export declare const composeK: {
|
|
|
2586
2610
|
*
|
|
2587
2611
|
* **When to use**
|
|
2588
2612
|
*
|
|
2589
|
-
*
|
|
2613
|
+
* Use to build pipelines of partial functions (Kleisli composition)
|
|
2590
2614
|
*
|
|
2591
2615
|
* **Details**
|
|
2592
2616
|
*
|
|
@@ -2625,7 +2649,7 @@ export declare const composeK: {
|
|
|
2625
2649
|
*
|
|
2626
2650
|
* **When to use**
|
|
2627
2651
|
*
|
|
2628
|
-
*
|
|
2652
|
+
* Use to build pipelines of partial functions (Kleisli composition)
|
|
2629
2653
|
*
|
|
2630
2654
|
* **Details**
|
|
2631
2655
|
*
|
|
@@ -2666,7 +2690,7 @@ export declare const composeK: {
|
|
|
2666
2690
|
*
|
|
2667
2691
|
* **When to use**
|
|
2668
2692
|
*
|
|
2669
|
-
*
|
|
2693
|
+
* Use to validate a value without transforming it
|
|
2670
2694
|
* - Adding a side-condition check in a pipeline
|
|
2671
2695
|
*
|
|
2672
2696
|
* **Details**
|
|
@@ -2703,7 +2727,7 @@ export declare const tap: {
|
|
|
2703
2727
|
*
|
|
2704
2728
|
* **When to use**
|
|
2705
2729
|
*
|
|
2706
|
-
*
|
|
2730
|
+
* Use to validate a value without transforming it
|
|
2707
2731
|
* - Adding a side-condition check in a pipeline
|
|
2708
2732
|
*
|
|
2709
2733
|
* **Details**
|
|
@@ -2740,7 +2764,7 @@ export declare const tap: {
|
|
|
2740
2764
|
*
|
|
2741
2765
|
* **When to use**
|
|
2742
2766
|
*
|
|
2743
|
-
*
|
|
2767
|
+
* Use to validate a value without transforming it
|
|
2744
2768
|
* - Adding a side-condition check in a pipeline
|
|
2745
2769
|
*
|
|
2746
2770
|
* **Details**
|
|
@@ -2777,7 +2801,7 @@ export declare const tap: {
|
|
|
2777
2801
|
*
|
|
2778
2802
|
* **When to use**
|
|
2779
2803
|
*
|
|
2780
|
-
*
|
|
2804
|
+
* Use when pairing two optional values together
|
|
2781
2805
|
*
|
|
2782
2806
|
* **Details**
|
|
2783
2807
|
*
|
|
@@ -2809,7 +2833,7 @@ export declare const product: <A, B>(self: Option<A>, that: Option<B>) => Option
|
|
|
2809
2833
|
*
|
|
2810
2834
|
* **When to use**
|
|
2811
2835
|
*
|
|
2812
|
-
*
|
|
2836
|
+
* Use when collecting several `Option`s of the same type into a non-empty tuple
|
|
2813
2837
|
*
|
|
2814
2838
|
* **Details**
|
|
2815
2839
|
*
|
|
@@ -2844,7 +2868,7 @@ export declare const productMany: <A>(self: Option<A>, collection: Iterable<Opti
|
|
|
2844
2868
|
*
|
|
2845
2869
|
* **When to use**
|
|
2846
2870
|
*
|
|
2847
|
-
*
|
|
2871
|
+
* Use when collecting multiple `Option`s into one, preserving the input shape
|
|
2848
2872
|
* - "All or nothing" combination — any `None` makes the result `None`
|
|
2849
2873
|
*
|
|
2850
2874
|
* **Details**
|
|
@@ -2893,7 +2917,7 @@ export declare const all: <const I extends Iterable<Option<any>> | Record<string
|
|
|
2893
2917
|
*
|
|
2894
2918
|
* **When to use**
|
|
2895
2919
|
*
|
|
2896
|
-
*
|
|
2920
|
+
* Use when merging two optional values into a computed result
|
|
2897
2921
|
*
|
|
2898
2922
|
* **Details**
|
|
2899
2923
|
*
|
|
@@ -2928,7 +2952,7 @@ export declare const zipWith: {
|
|
|
2928
2952
|
*
|
|
2929
2953
|
* **When to use**
|
|
2930
2954
|
*
|
|
2931
|
-
*
|
|
2955
|
+
* Use when merging two optional values into a computed result
|
|
2932
2956
|
*
|
|
2933
2957
|
* **Details**
|
|
2934
2958
|
*
|
|
@@ -2963,7 +2987,7 @@ export declare const zipWith: {
|
|
|
2963
2987
|
*
|
|
2964
2988
|
* **When to use**
|
|
2965
2989
|
*
|
|
2966
|
-
*
|
|
2990
|
+
* Use when merging two optional values into a computed result
|
|
2967
2991
|
*
|
|
2968
2992
|
* **Details**
|
|
2969
2993
|
*
|
|
@@ -2999,7 +3023,7 @@ export declare const zipWith: {
|
|
|
2999
3023
|
*
|
|
3000
3024
|
* **When to use**
|
|
3001
3025
|
*
|
|
3002
|
-
*
|
|
3026
|
+
* Use when aggregating values from a collection where some may be absent
|
|
3003
3027
|
*
|
|
3004
3028
|
* **Details**
|
|
3005
3029
|
*
|
|
@@ -3027,7 +3051,7 @@ export declare const reduceCompact: {
|
|
|
3027
3051
|
*
|
|
3028
3052
|
* **When to use**
|
|
3029
3053
|
*
|
|
3030
|
-
*
|
|
3054
|
+
* Use when aggregating values from a collection where some may be absent
|
|
3031
3055
|
*
|
|
3032
3056
|
* **Details**
|
|
3033
3057
|
*
|
|
@@ -3055,7 +3079,7 @@ export declare const reduceCompact: {
|
|
|
3055
3079
|
*
|
|
3056
3080
|
* **When to use**
|
|
3057
3081
|
*
|
|
3058
|
-
*
|
|
3082
|
+
* Use when aggregating values from a collection where some may be absent
|
|
3059
3083
|
*
|
|
3060
3084
|
* **Details**
|
|
3061
3085
|
*
|
|
@@ -3084,7 +3108,7 @@ export declare const reduceCompact: {
|
|
|
3084
3108
|
*
|
|
3085
3109
|
* **When to use**
|
|
3086
3110
|
*
|
|
3087
|
-
*
|
|
3111
|
+
* Use when interfacing with array-based APIs
|
|
3088
3112
|
* - Spreading optional values into collections
|
|
3089
3113
|
*
|
|
3090
3114
|
* **Details**
|
|
@@ -3115,7 +3139,7 @@ export declare const toArray: <A>(self: Option<A>) => Array<A>;
|
|
|
3115
3139
|
*
|
|
3116
3140
|
* **When to use**
|
|
3117
3141
|
*
|
|
3118
|
-
*
|
|
3142
|
+
* Use when categorizing an optional value into "left" (failure) and "right" (success) channels
|
|
3119
3143
|
*
|
|
3120
3144
|
* **Details**
|
|
3121
3145
|
*
|
|
@@ -3154,7 +3178,7 @@ export declare const partitionMap: {
|
|
|
3154
3178
|
*
|
|
3155
3179
|
* **When to use**
|
|
3156
3180
|
*
|
|
3157
|
-
*
|
|
3181
|
+
* Use when categorizing an optional value into "left" (failure) and "right" (success) channels
|
|
3158
3182
|
*
|
|
3159
3183
|
* **Details**
|
|
3160
3184
|
*
|
|
@@ -3193,7 +3217,7 @@ export declare const partitionMap: {
|
|
|
3193
3217
|
*
|
|
3194
3218
|
* **When to use**
|
|
3195
3219
|
*
|
|
3196
|
-
*
|
|
3220
|
+
* Use when categorizing an optional value into "left" (failure) and "right" (success) channels
|
|
3197
3221
|
*
|
|
3198
3222
|
* **Details**
|
|
3199
3223
|
*
|
|
@@ -3231,6 +3255,10 @@ export declare const partitionMap: {
|
|
|
3231
3255
|
/**
|
|
3232
3256
|
* Transforms and filters an `Option` using a `Filter` callback.
|
|
3233
3257
|
*
|
|
3258
|
+
* **When to use**
|
|
3259
|
+
*
|
|
3260
|
+
* Use to transform a present value and discard it when the `Filter` fails.
|
|
3261
|
+
*
|
|
3234
3262
|
* **Details**
|
|
3235
3263
|
*
|
|
3236
3264
|
* The callback returns a `Result`: `Result.succeed` keeps and transforms the
|
|
@@ -3257,6 +3285,10 @@ export declare const filterMap: {
|
|
|
3257
3285
|
/**
|
|
3258
3286
|
* Transforms and filters an `Option` using a `Filter` callback.
|
|
3259
3287
|
*
|
|
3288
|
+
* **When to use**
|
|
3289
|
+
*
|
|
3290
|
+
* Use to transform a present value and discard it when the `Filter` fails.
|
|
3291
|
+
*
|
|
3260
3292
|
* **Details**
|
|
3261
3293
|
*
|
|
3262
3294
|
* The callback returns a `Result`: `Result.succeed` keeps and transforms the
|
|
@@ -3283,6 +3315,10 @@ export declare const filterMap: {
|
|
|
3283
3315
|
/**
|
|
3284
3316
|
* Transforms and filters an `Option` using a `Filter` callback.
|
|
3285
3317
|
*
|
|
3318
|
+
* **When to use**
|
|
3319
|
+
*
|
|
3320
|
+
* Use to transform a present value and discard it when the `Filter` fails.
|
|
3321
|
+
*
|
|
3286
3322
|
* **Details**
|
|
3287
3323
|
*
|
|
3288
3324
|
* The callback returns a `Result`: `Result.succeed` keeps and transforms the
|
|
@@ -3313,7 +3349,7 @@ export declare const filterMap: {
|
|
|
3313
3349
|
*
|
|
3314
3350
|
* **When to use**
|
|
3315
3351
|
*
|
|
3316
|
-
*
|
|
3352
|
+
* Use when discarding values that don't meet a condition
|
|
3317
3353
|
* - Narrowing the type via a refinement predicate
|
|
3318
3354
|
*
|
|
3319
3355
|
* **Details**
|
|
@@ -3354,7 +3390,7 @@ export declare const filter: {
|
|
|
3354
3390
|
*
|
|
3355
3391
|
* **When to use**
|
|
3356
3392
|
*
|
|
3357
|
-
*
|
|
3393
|
+
* Use when discarding values that don't meet a condition
|
|
3358
3394
|
* - Narrowing the type via a refinement predicate
|
|
3359
3395
|
*
|
|
3360
3396
|
* **Details**
|
|
@@ -3395,7 +3431,7 @@ export declare const filter: {
|
|
|
3395
3431
|
*
|
|
3396
3432
|
* **When to use**
|
|
3397
3433
|
*
|
|
3398
|
-
*
|
|
3434
|
+
* Use when discarding values that don't meet a condition
|
|
3399
3435
|
* - Narrowing the type via a refinement predicate
|
|
3400
3436
|
*
|
|
3401
3437
|
* **Details**
|
|
@@ -3436,7 +3472,7 @@ export declare const filter: {
|
|
|
3436
3472
|
*
|
|
3437
3473
|
* **When to use**
|
|
3438
3474
|
*
|
|
3439
|
-
*
|
|
3475
|
+
* Use when discarding values that don't meet a condition
|
|
3440
3476
|
* - Narrowing the type via a refinement predicate
|
|
3441
3477
|
*
|
|
3442
3478
|
* **Details**
|
|
@@ -3477,7 +3513,7 @@ export declare const filter: {
|
|
|
3477
3513
|
*
|
|
3478
3514
|
* **When to use**
|
|
3479
3515
|
*
|
|
3480
|
-
*
|
|
3516
|
+
* Use when discarding values that don't meet a condition
|
|
3481
3517
|
* - Narrowing the type via a refinement predicate
|
|
3482
3518
|
*
|
|
3483
3519
|
* **Details**
|
|
@@ -3518,7 +3554,7 @@ export declare const filter: {
|
|
|
3518
3554
|
*
|
|
3519
3555
|
* **When to use**
|
|
3520
3556
|
*
|
|
3521
|
-
*
|
|
3557
|
+
* Use to compare two `Option` values for structural equality
|
|
3522
3558
|
*
|
|
3523
3559
|
* **Details**
|
|
3524
3560
|
*
|
|
@@ -3552,7 +3588,7 @@ export declare const makeEquivalence: <A>(isEquivalent: Equivalence.Equivalence<
|
|
|
3552
3588
|
*
|
|
3553
3589
|
* **When to use**
|
|
3554
3590
|
*
|
|
3555
|
-
*
|
|
3591
|
+
* Use to sort collections of `Option` values
|
|
3556
3592
|
*
|
|
3557
3593
|
* **Details**
|
|
3558
3594
|
*
|
|
@@ -3586,7 +3622,7 @@ export declare const makeOrder: <A>(O: Order<A>) => Order<Option<A>>;
|
|
|
3586
3622
|
*
|
|
3587
3623
|
* **When to use**
|
|
3588
3624
|
*
|
|
3589
|
-
*
|
|
3625
|
+
* Use when reusing an existing binary function in an `Option` context
|
|
3590
3626
|
*
|
|
3591
3627
|
* **Details**
|
|
3592
3628
|
*
|
|
@@ -3622,7 +3658,7 @@ export declare const lift2: <A, B, C>(f: (a: A, b: B) => C) => {
|
|
|
3622
3658
|
*
|
|
3623
3659
|
* **When to use**
|
|
3624
3660
|
*
|
|
3625
|
-
*
|
|
3661
|
+
* Use to convert a boolean check into an `Option`-returning function
|
|
3626
3662
|
* - Validating input and wrapping it in `Option`
|
|
3627
3663
|
*
|
|
3628
3664
|
* **Details**
|
|
@@ -3659,7 +3695,7 @@ export declare const liftPredicate: {
|
|
|
3659
3695
|
*
|
|
3660
3696
|
* **When to use**
|
|
3661
3697
|
*
|
|
3662
|
-
*
|
|
3698
|
+
* Use to convert a boolean check into an `Option`-returning function
|
|
3663
3699
|
* - Validating input and wrapping it in `Option`
|
|
3664
3700
|
*
|
|
3665
3701
|
* **Details**
|
|
@@ -3695,7 +3731,7 @@ export declare const liftPredicate: {
|
|
|
3695
3731
|
*
|
|
3696
3732
|
* **When to use**
|
|
3697
3733
|
*
|
|
3698
|
-
*
|
|
3734
|
+
* Use to convert a boolean check into an `Option`-returning function
|
|
3699
3735
|
* - Validating input and wrapping it in `Option`
|
|
3700
3736
|
*
|
|
3701
3737
|
* **Details**
|
|
@@ -3731,7 +3767,7 @@ export declare const liftPredicate: {
|
|
|
3731
3767
|
*
|
|
3732
3768
|
* **When to use**
|
|
3733
3769
|
*
|
|
3734
|
-
*
|
|
3770
|
+
* Use to convert a boolean check into an `Option`-returning function
|
|
3735
3771
|
* - Validating input and wrapping it in `Option`
|
|
3736
3772
|
*
|
|
3737
3773
|
* **Details**
|
|
@@ -3763,12 +3799,12 @@ export declare const liftPredicate: {
|
|
|
3763
3799
|
<B extends A, A = B>(self: B, predicate: Predicate<A>): Option<B>;
|
|
3764
3800
|
};
|
|
3765
3801
|
/**
|
|
3766
|
-
* Checks
|
|
3802
|
+
* Checks whether an `Option` contains a value equivalent to the given one, using a
|
|
3767
3803
|
* custom `Equivalence`.
|
|
3768
3804
|
*
|
|
3769
3805
|
* **When to use**
|
|
3770
3806
|
*
|
|
3771
|
-
*
|
|
3807
|
+
* Use when testing membership with a custom equality check
|
|
3772
3808
|
*
|
|
3773
3809
|
* **Details**
|
|
3774
3810
|
*
|
|
@@ -3802,12 +3838,12 @@ export declare const containsWith: <A>(isEquivalent: (self: A, that: A) => boole
|
|
|
3802
3838
|
(self: Option<A>, a: A): boolean;
|
|
3803
3839
|
};
|
|
3804
3840
|
/**
|
|
3805
|
-
* Checks
|
|
3841
|
+
* Checks whether an `Option` contains a value equal to the given one, using default
|
|
3806
3842
|
* structural equality.
|
|
3807
3843
|
*
|
|
3808
3844
|
* **When to use**
|
|
3809
3845
|
*
|
|
3810
|
-
*
|
|
3846
|
+
* Use when quick membership test with standard equality
|
|
3811
3847
|
*
|
|
3812
3848
|
* **Details**
|
|
3813
3849
|
*
|
|
@@ -3837,12 +3873,12 @@ export declare const containsWith: <A>(isEquivalent: (self: A, that: A) => boole
|
|
|
3837
3873
|
*/
|
|
3838
3874
|
export declare const contains: {
|
|
3839
3875
|
/**
|
|
3840
|
-
* Checks
|
|
3876
|
+
* Checks whether an `Option` contains a value equal to the given one, using default
|
|
3841
3877
|
* structural equality.
|
|
3842
3878
|
*
|
|
3843
3879
|
* **When to use**
|
|
3844
3880
|
*
|
|
3845
|
-
*
|
|
3881
|
+
* Use when quick membership test with standard equality
|
|
3846
3882
|
*
|
|
3847
3883
|
* **Details**
|
|
3848
3884
|
*
|
|
@@ -3872,12 +3908,12 @@ export declare const contains: {
|
|
|
3872
3908
|
*/
|
|
3873
3909
|
<A>(a: A): (self: Option<A>) => boolean;
|
|
3874
3910
|
/**
|
|
3875
|
-
* Checks
|
|
3911
|
+
* Checks whether an `Option` contains a value equal to the given one, using default
|
|
3876
3912
|
* structural equality.
|
|
3877
3913
|
*
|
|
3878
3914
|
* **When to use**
|
|
3879
3915
|
*
|
|
3880
|
-
*
|
|
3916
|
+
* Use when quick membership test with standard equality
|
|
3881
3917
|
*
|
|
3882
3918
|
* **Details**
|
|
3883
3919
|
*
|
|
@@ -3908,11 +3944,11 @@ export declare const contains: {
|
|
|
3908
3944
|
<A>(self: Option<A>, a: A): boolean;
|
|
3909
3945
|
};
|
|
3910
3946
|
/**
|
|
3911
|
-
*
|
|
3947
|
+
* Checks whether the value in a `Some` satisfies a predicate or refinement.
|
|
3912
3948
|
*
|
|
3913
3949
|
* **When to use**
|
|
3914
3950
|
*
|
|
3915
|
-
*
|
|
3951
|
+
* Use to check a condition on an optional value without unwrapping
|
|
3916
3952
|
*
|
|
3917
3953
|
* **Details**
|
|
3918
3954
|
*
|
|
@@ -3946,11 +3982,11 @@ export declare const contains: {
|
|
|
3946
3982
|
*/
|
|
3947
3983
|
export declare const exists: {
|
|
3948
3984
|
/**
|
|
3949
|
-
*
|
|
3985
|
+
* Checks whether the value in a `Some` satisfies a predicate or refinement.
|
|
3950
3986
|
*
|
|
3951
3987
|
* **When to use**
|
|
3952
3988
|
*
|
|
3953
|
-
*
|
|
3989
|
+
* Use to check a condition on an optional value without unwrapping
|
|
3954
3990
|
*
|
|
3955
3991
|
* **Details**
|
|
3956
3992
|
*
|
|
@@ -3984,11 +4020,11 @@ export declare const exists: {
|
|
|
3984
4020
|
*/
|
|
3985
4021
|
<A, B extends A>(refinement: Refinement<NoInfer<A>, B>): (self: Option<A>) => self is Option<B>;
|
|
3986
4022
|
/**
|
|
3987
|
-
*
|
|
4023
|
+
* Checks whether the value in a `Some` satisfies a predicate or refinement.
|
|
3988
4024
|
*
|
|
3989
4025
|
* **When to use**
|
|
3990
4026
|
*
|
|
3991
|
-
*
|
|
4027
|
+
* Use to check a condition on an optional value without unwrapping
|
|
3992
4028
|
*
|
|
3993
4029
|
* **Details**
|
|
3994
4030
|
*
|
|
@@ -4022,11 +4058,11 @@ export declare const exists: {
|
|
|
4022
4058
|
*/
|
|
4023
4059
|
<A>(predicate: Predicate<NoInfer<A>>): (self: Option<A>) => boolean;
|
|
4024
4060
|
/**
|
|
4025
|
-
*
|
|
4061
|
+
* Checks whether the value in a `Some` satisfies a predicate or refinement.
|
|
4026
4062
|
*
|
|
4027
4063
|
* **When to use**
|
|
4028
4064
|
*
|
|
4029
|
-
*
|
|
4065
|
+
* Use to check a condition on an optional value without unwrapping
|
|
4030
4066
|
*
|
|
4031
4067
|
* **Details**
|
|
4032
4068
|
*
|
|
@@ -4060,11 +4096,11 @@ export declare const exists: {
|
|
|
4060
4096
|
*/
|
|
4061
4097
|
<A, B extends A>(self: Option<A>, refinement: Refinement<A, B>): self is Option<B>;
|
|
4062
4098
|
/**
|
|
4063
|
-
*
|
|
4099
|
+
* Checks whether the value in a `Some` satisfies a predicate or refinement.
|
|
4064
4100
|
*
|
|
4065
4101
|
* **When to use**
|
|
4066
4102
|
*
|
|
4067
|
-
*
|
|
4103
|
+
* Use to check a condition on an optional value without unwrapping
|
|
4068
4104
|
*
|
|
4069
4105
|
* **Details**
|
|
4070
4106
|
*
|
|
@@ -4104,7 +4140,7 @@ export declare const exists: {
|
|
|
4104
4140
|
*
|
|
4105
4141
|
* **When to use**
|
|
4106
4142
|
*
|
|
4107
|
-
*
|
|
4143
|
+
* Use when beginning a do notation chain by naming the first value
|
|
4108
4144
|
*
|
|
4109
4145
|
* **Example** (Starting do notation)
|
|
4110
4146
|
*
|
|
@@ -4135,7 +4171,7 @@ export declare const bindTo: {
|
|
|
4135
4171
|
*
|
|
4136
4172
|
* **When to use**
|
|
4137
4173
|
*
|
|
4138
|
-
*
|
|
4174
|
+
* Use when beginning a do notation chain by naming the first value
|
|
4139
4175
|
*
|
|
4140
4176
|
* **Example** (Starting do notation)
|
|
4141
4177
|
*
|
|
@@ -4168,7 +4204,7 @@ export declare const bindTo: {
|
|
|
4168
4204
|
*
|
|
4169
4205
|
* **When to use**
|
|
4170
4206
|
*
|
|
4171
|
-
*
|
|
4207
|
+
* Use when beginning a do notation chain by naming the first value
|
|
4172
4208
|
*
|
|
4173
4209
|
* **Example** (Starting do notation)
|
|
4174
4210
|
*
|
|
@@ -4210,7 +4246,7 @@ export {
|
|
|
4210
4246
|
*
|
|
4211
4247
|
* **When to use**
|
|
4212
4248
|
*
|
|
4213
|
-
*
|
|
4249
|
+
* Use when binding a derived (non-`Option`) value in a do notation pipeline
|
|
4214
4250
|
*
|
|
4215
4251
|
* **Example** (Adding a computed value)
|
|
4216
4252
|
*
|
|
@@ -4241,7 +4277,7 @@ let_ as let };
|
|
|
4241
4277
|
*
|
|
4242
4278
|
* **When to use**
|
|
4243
4279
|
*
|
|
4244
|
-
*
|
|
4280
|
+
* Use when sequencing `Option` computations in do notation
|
|
4245
4281
|
*
|
|
4246
4282
|
* **Example** (Binding Option values)
|
|
4247
4283
|
*
|
|
@@ -4273,7 +4309,7 @@ export declare const bind: {
|
|
|
4273
4309
|
*
|
|
4274
4310
|
* **When to use**
|
|
4275
4311
|
*
|
|
4276
|
-
*
|
|
4312
|
+
* Use when sequencing `Option` computations in do notation
|
|
4277
4313
|
*
|
|
4278
4314
|
* **Example** (Binding Option values)
|
|
4279
4315
|
*
|
|
@@ -4307,7 +4343,7 @@ export declare const bind: {
|
|
|
4307
4343
|
*
|
|
4308
4344
|
* **When to use**
|
|
4309
4345
|
*
|
|
4310
|
-
*
|
|
4346
|
+
* Use when sequencing `Option` computations in do notation
|
|
4311
4347
|
*
|
|
4312
4348
|
* **Example** (Binding Option values)
|
|
4313
4349
|
*
|
|
@@ -4337,12 +4373,12 @@ export declare const bind: {
|
|
|
4337
4373
|
}>;
|
|
4338
4374
|
};
|
|
4339
4375
|
/**
|
|
4340
|
-
*
|
|
4376
|
+
* Provides an `Option` containing an empty record `{}`, used as the starting point for
|
|
4341
4377
|
* do notation chains.
|
|
4342
4378
|
*
|
|
4343
4379
|
* **When to use**
|
|
4344
4380
|
*
|
|
4345
|
-
*
|
|
4381
|
+
* Use when starting a do notation pipeline before adding bindings
|
|
4346
4382
|
*
|
|
4347
4383
|
* **Example** (Do notation pipeline)
|
|
4348
4384
|
*
|
|
@@ -4369,12 +4405,12 @@ export declare const bind: {
|
|
|
4369
4405
|
*/
|
|
4370
4406
|
export declare const Do: Option<{}>;
|
|
4371
4407
|
/**
|
|
4372
|
-
*
|
|
4408
|
+
* Provides generator-based syntax for `Option`, similar to `async`/`await` but for
|
|
4373
4409
|
* optional values. Yielding a `None` short-circuits the generator to `None`.
|
|
4374
4410
|
*
|
|
4375
4411
|
* **When to use**
|
|
4376
4412
|
*
|
|
4377
|
-
*
|
|
4413
|
+
* Use when writing imperative-style code that chains multiple `Option`s
|
|
4378
4414
|
* - Readability when many sequential optional steps are involved
|
|
4379
4415
|
*
|
|
4380
4416
|
* **Details**
|
|
@@ -4414,7 +4450,7 @@ export declare const gen: Gen.Gen<OptionTypeLambda>;
|
|
|
4414
4450
|
*
|
|
4415
4451
|
* **When to use**
|
|
4416
4452
|
*
|
|
4417
|
-
*
|
|
4453
|
+
* Use to build a reducer that falls back to the first available value
|
|
4418
4454
|
* - Combining optional values where either side may be absent
|
|
4419
4455
|
*
|
|
4420
4456
|
* **Details**
|
|
@@ -4447,7 +4483,7 @@ export declare function makeReducer<A>(combiner: Combiner.Combiner<A>): Reducer.
|
|
|
4447
4483
|
*
|
|
4448
4484
|
* **When to use**
|
|
4449
4485
|
*
|
|
4450
|
-
*
|
|
4486
|
+
* Use when operations that require both values to be present
|
|
4451
4487
|
*
|
|
4452
4488
|
* **Details**
|
|
4453
4489
|
*
|
|
@@ -4480,7 +4516,7 @@ export declare function makeCombinerFailFast<A>(combiner: Combiner.Combiner<A>):
|
|
|
4480
4516
|
*
|
|
4481
4517
|
* **When to use**
|
|
4482
4518
|
*
|
|
4483
|
-
*
|
|
4519
|
+
* Use to wrap an existing `Reducer` to work with `Option` values
|
|
4484
4520
|
* - Reductions where any `None` should abort the entire result
|
|
4485
4521
|
*
|
|
4486
4522
|
* **Details**
|