effect 4.0.0-beta.69 → 4.0.0-beta.70
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 +454 -0
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +152 -0
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +87 -33
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +37 -11
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +71 -14
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +35 -10
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +4 -0
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +4 -0
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +16 -11
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +16 -11
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +13 -1
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +8 -0
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +95 -3
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +56 -2
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +312 -0
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +126 -0
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +20 -0
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js +12 -0
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +59 -22
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +29 -10
- package/dist/Chunk.js.map +1 -1
- package/dist/Combiner.d.ts +75 -71
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +67 -62
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +167 -46
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +108 -28
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +235 -158
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +144 -93
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +21 -79
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +20 -75
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +4 -4
- package/dist/Context.js +2 -2
- package/dist/Cron.d.ts +42 -16
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +33 -13
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +6 -0
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +132 -70
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +44 -29
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +227 -14
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +115 -6
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +94 -27
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +33 -8
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +2 -0
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Duration.d.ts +64 -6
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +26 -2
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +907 -603
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +360 -233
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +3 -1
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +3 -1
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +16 -0
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +16 -0
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +52 -40
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +32 -26
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +190 -153
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +129 -104
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +35 -14
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +18 -6
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +10 -3
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +4 -3
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +212 -6
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +139 -2
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +8 -0
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +4 -0
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +46 -23
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +27 -11
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +43 -4
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +27 -4
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts +21 -6
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +17 -6
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +64 -0
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +26 -0
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +53 -21
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +20 -9
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts +21 -22
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +12 -12
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +67 -75
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +29 -19
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +51 -13
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +19 -3
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +22 -21
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +33 -10
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +27 -10
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +50 -9
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +17 -3
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +4 -0
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +2 -0
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +2 -0
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +15 -2
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +11 -2
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +104 -22
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +46 -12
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +61 -80
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +35 -42
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +16 -20
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +16 -20
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts +123 -73
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +95 -53
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +28 -2
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +22 -2
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +781 -335
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +324 -129
- package/dist/Layer.js.map +1 -1
- package/dist/LogLevel.d.ts +86 -13
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +30 -4
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +63 -51
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +61 -51
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +12 -0
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +1 -0
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +83 -1
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +31 -1
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +89 -12
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +53 -8
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +14 -0
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +4 -0
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +2 -0
- package/dist/MutableHashSet.d.ts.map +1 -1
- 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 +22 -6
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +2 -0
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +69 -30
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +52 -22
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +6 -0
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +2 -0
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +16 -30
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +6 -12
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +90 -40
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +48 -24
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +121 -111
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +56 -54
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +169 -167
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +135 -135
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +4 -0
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +2 -0
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +7 -5
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +5 -5
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +8 -0
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +4 -0
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +10 -0
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +8 -0
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +12 -0
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +10 -0
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +30 -16
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +30 -16
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +520 -352
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +271 -184
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +4 -0
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +2 -0
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +22 -4
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +17 -3
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +16 -0
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +10 -0
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +44 -0
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +28 -0
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +25 -6
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +11 -2
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +10 -6
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +2 -2
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +3 -1
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +24 -3
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +12 -3
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +54 -41
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +42 -32
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +10 -0
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +6 -0
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +20 -11
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +10 -6
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +45 -24
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +41 -21
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +18 -1
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +17 -1
- package/dist/References.js.map +1 -1
- package/dist/Request.d.ts +3 -3
- package/dist/Request.js +2 -2
- package/dist/RequestResolver.d.ts +7 -17
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +3 -5
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +2 -0
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +2 -0
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +188 -6
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +84 -2
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +14 -11
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +11 -9
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +27 -3
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +21 -2
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +22 -19
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +14 -12
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +547 -130
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +409 -121
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +123 -65
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +90 -39
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +269 -234
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +245 -215
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +48 -46
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +34 -34
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +58 -0
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +58 -0
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +198 -96
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +107 -45
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +272 -203
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +249 -187
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts +2 -0
- package/dist/SchemaUtils.d.ts.map +1 -1
- package/dist/SchemaUtils.js +2 -0
- package/dist/SchemaUtils.js.map +1 -1
- package/dist/Scope.d.ts +18 -0
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +12 -0
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +44 -0
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +18 -0
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +9 -3
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +3 -1
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +6 -0
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +4 -0
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +108 -0
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +54 -0
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +7 -3
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +2 -0
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +416 -16
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +164 -8
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +14 -0
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +6 -0
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +371 -191
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +144 -77
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +7 -1
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +5 -1
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +2 -0
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +2 -0
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Tracer.d.ts +17 -27
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +8 -12
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +23 -9
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +13 -3
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +287 -144
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +135 -66
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +182 -93
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +68 -35
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +3 -4
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +163 -86
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +57 -30
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +24 -27
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +9 -6
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +2 -0
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +36 -35
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +22 -21
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +77 -114
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +45 -62
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxRef.d.ts +4 -0
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +2 -0
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +66 -27
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +38 -15
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/Types.d.ts +202 -75
- package/dist/Types.d.ts.map +1 -1
- package/dist/UndefinedOr.d.ts +31 -29
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +27 -21
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +28 -0
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +2 -0
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +29 -35
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +11 -13
- package/dist/Utils.js.map +1 -1
- package/dist/index.d.ts +18 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/testing/TestClock.d.ts +17 -17
- package/dist/testing/TestClock.js +1 -1
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +2 -0
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +43 -55
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +43 -55
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +62 -11
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +58 -11
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +4 -4
- package/dist/unstable/ai/AnthropicStructuredOutput.js +4 -4
- package/dist/unstable/ai/Chat.d.ts +29 -1
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +15 -1
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +10 -0
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +8 -0
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +32 -46
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +5 -14
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +84 -32
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +73 -28
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +8 -0
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +6 -0
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +9 -5
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +4 -0
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +3 -2
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +3 -2
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +62 -35
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +16 -15
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +40 -21
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +10 -0
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.d.ts +8 -0
- package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +4 -0
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +30 -5
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +7 -1
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +6 -0
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +4 -0
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +68 -0
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +36 -0
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +12 -0
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +6 -0
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/cli/Argument.d.ts +14 -4
- package/dist/unstable/cli/Argument.d.ts.map +1 -1
- package/dist/unstable/cli/Argument.js +4 -0
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/CliError.d.ts +6 -0
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.js +4 -0
- package/dist/unstable/cli/CliError.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +123 -12
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +57 -4
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Flag.d.ts +31 -14
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +23 -10
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +10 -0
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +46 -5
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +10 -0
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +10 -0
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +47 -40
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +25 -20
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/internal/command.d.ts +1 -0
- package/dist/unstable/cli/internal/command.d.ts.map +1 -1
- package/dist/unstable/cli/internal/command.js +10 -2
- package/dist/unstable/cli/internal/command.js.map +1 -1
- package/dist/unstable/cli/internal/completions/descriptor.js +3 -0
- package/dist/unstable/cli/internal/completions/descriptor.js.map +1 -1
- package/dist/unstable/cli/internal/parser.js +8 -1
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +10 -1
- package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterCron.js +2 -0
- package/dist/unstable/cluster/ClusterCron.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +8 -0
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +8 -0
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +4 -0
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +4 -0
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts +3 -4
- package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +24 -0
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +12 -0
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityProxy.d.ts +10 -4
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts +6 -0
- package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js +4 -0
- package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +10 -0
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +8 -0
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +16 -0
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +10 -0
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +16 -0
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +16 -0
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.d.ts +8 -0
- package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +8 -0
- package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +24 -0
- package/dist/unstable/cluster/Message.d.ts.map +1 -1
- package/dist/unstable/cluster/Message.js +18 -0
- package/dist/unstable/cluster/Message.js.map +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +64 -20
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +8 -0
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +6 -6
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +4 -3
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +2 -0
- package/dist/unstable/cluster/Runner.d.ts.map +1 -1
- package/dist/unstable/cluster/Runner.js +2 -0
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +13 -2
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +13 -2
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +8 -8
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +8 -8
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.d.ts +2 -0
- package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.js +2 -0
- package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +4 -0
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +4 -0
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +2 -0
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +2 -0
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +3 -2
- package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/TestRunner.js +3 -2
- package/dist/unstable/cluster/TestRunner.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.d.ts +34 -2
- package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js +14 -0
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.d.ts +4 -0
- package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.js +2 -0
- package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts +24 -0
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +18 -0
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts +46 -2
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js +30 -2
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +24 -17
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js +20 -11
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts +16 -0
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +4 -0
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.js +2 -0
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +20 -0
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +18 -0
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +22 -0
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +18 -0
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +10 -0
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +10 -0
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +4 -0
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +4 -0
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts +4 -0
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js +4 -0
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +6 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +6 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +8 -0
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +8 -0
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +11 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +11 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +2 -0
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +34 -0
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +18 -0
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +4 -0
- package/dist/unstable/http/Etag.d.ts.map +1 -1
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +4 -0
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +4 -0
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +60 -0
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +24 -0
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +32 -0
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +22 -0
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +44 -0
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +14 -0
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +2 -0
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +2 -0
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +6 -0
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js +6 -0
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +4 -0
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js +4 -0
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +2 -0
- package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
- package/dist/unstable/http/HttpPlatform.js +2 -0
- package/dist/unstable/http/HttpPlatform.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +54 -16
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +26 -1
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +35 -1
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +17 -1
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +17 -3
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +16 -0
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +30 -0
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +28 -0
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.d.ts +8 -0
- package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +6 -0
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +96 -0
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +50 -0
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpTraceContext.d.ts +12 -0
- package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js +10 -0
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +49 -2
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +35 -2
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Template.d.ts +14 -0
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js +4 -0
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +64 -0
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +28 -0
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts +10 -4
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js +4 -0
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +9 -4
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +5 -4
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +2 -0
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +2 -0
- package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts +23 -14
- package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.js +6 -3
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +14 -0
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +6 -0
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +38 -15
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js +4 -0
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +14 -3
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +10 -0
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +17 -11
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +17 -11
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts +2 -4
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +2 -4
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts +2 -0
- package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +2 -0
- package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts +2 -0
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +2 -0
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/Otlp.d.ts +2 -0
- package/dist/unstable/observability/Otlp.d.ts.map +1 -1
- package/dist/unstable/observability/Otlp.js +2 -0
- package/dist/unstable/observability/Otlp.js.map +1 -1
- package/dist/unstable/observability/OtlpExporter.d.ts +2 -0
- package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +2 -0
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts +4 -0
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +4 -0
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts +8 -9
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js +3 -3
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts +8 -0
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +8 -0
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.d.ts +3 -2
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +3 -2
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +6 -2
- package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js +6 -2
- package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +10 -0
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +8 -0
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +2 -0
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js +2 -0
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +2 -0
- package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +2 -0
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +21 -6
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +10 -0
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/Persistence.d.ts +14 -0
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.js +14 -0
- package/dist/unstable/persistence/Persistence.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +6 -3
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +4 -0
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts +6 -0
- package/dist/unstable/persistence/Redis.d.ts.map +1 -1
- package/dist/unstable/persistence/Redis.js +4 -0
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +70 -19
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js +10 -0
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +20 -4
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +105 -14
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +53 -8
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +4 -0
- package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.js +2 -0
- package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts +8 -0
- package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRef.js +2 -0
- package/dist/unstable/reactivity/AtomRef.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +32 -0
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +12 -0
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts +8 -6
- package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.js +4 -3
- package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +6 -0
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +4 -0
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +27 -3
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +15 -3
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +38 -2
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js +12 -2
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +6 -0
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +6 -0
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +5 -3
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +5 -3
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +43 -12
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +41 -12
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.d.ts +6 -4
- package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.js +6 -4
- package/dist/unstable/sql/SqlResolver.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +8 -4
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +3 -0
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +3 -0
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +42 -34
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +18 -19
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +454 -0
- package/src/BigDecimal.ts +87 -33
- package/src/BigInt.ts +71 -14
- package/src/Boolean.ts +4 -0
- package/src/Brand.ts +16 -11
- package/src/Cache.ts +17 -1
- package/src/Cause.ts +95 -3
- package/src/Channel.ts +326 -0
- package/src/ChannelSchema.ts +24 -0
- package/src/Chunk.ts +59 -22
- package/src/Combiner.ts +75 -71
- package/src/Config.ts +167 -46
- package/src/ConfigProvider.ts +235 -158
- package/src/Console.ts +25 -99
- package/src/Context.ts +4 -4
- package/src/Cron.ts +42 -16
- package/src/Crypto.ts +6 -0
- package/src/Data.ts +132 -70
- package/src/DateTime.ts +227 -14
- package/src/Deferred.ts +94 -27
- package/src/Differ.ts +2 -0
- package/src/Duration.ts +64 -6
- package/src/Effect.ts +909 -605
- package/src/Effectable.ts +3 -1
- package/src/Encoding.ts +16 -0
- package/src/Equal.ts +52 -40
- package/src/Equivalence.ts +190 -153
- package/src/ErrorReporter.ts +35 -14
- package/src/ExecutionPlan.ts +10 -3
- package/src/Exit.ts +212 -6
- package/src/Fiber.ts +8 -0
- package/src/FiberHandle.ts +46 -23
- package/src/FiberMap.ts +43 -4
- package/src/FiberSet.ts +21 -6
- package/src/FileSystem.ts +64 -0
- package/src/Filter.ts +53 -21
- package/src/Formatter.ts +21 -22
- package/src/Function.ts +67 -75
- package/src/Graph.ts +51 -13
- package/src/HKT.ts +22 -21
- package/src/Hash.ts +33 -10
- package/src/HashMap.ts +50 -9
- package/src/HashRing.ts +4 -0
- package/src/HashSet.ts +2 -0
- package/src/Inspectable.ts +15 -2
- package/src/Iterable.ts +104 -22
- package/src/JsonPatch.ts +61 -80
- package/src/JsonPointer.ts +16 -20
- package/src/JsonSchema.ts +123 -73
- package/src/Latch.ts +28 -2
- package/src/Layer.ts +781 -335
- package/src/LogLevel.ts +86 -13
- package/src/Logger.ts +71 -51
- package/src/ManagedRuntime.ts +12 -0
- package/src/Match.ts +83 -1
- package/src/Metric.ts +105 -12
- package/src/MutableHashMap.ts +18 -0
- package/src/MutableHashSet.ts +2 -0
- package/src/MutableList.ts +24 -6
- package/src/MutableRef.ts +2 -0
- package/src/Newtype.ts +69 -30
- package/src/NonEmptyIterable.ts +6 -0
- package/src/Number.ts +16 -30
- package/src/Optic.ts +90 -40
- package/src/Option.ts +121 -111
- package/src/Order.ts +169 -167
- package/src/Ordering.ts +4 -0
- package/src/PartitionedSemaphore.ts +7 -5
- package/src/Path.ts +8 -0
- package/src/Pipeable.ts +10 -0
- package/src/PlatformError.ts +12 -0
- package/src/Pool.ts +30 -16
- package/src/Predicate.ts +520 -352
- package/src/PrimaryKey.ts +4 -0
- package/src/PubSub.ts +23 -5
- package/src/Pull.ts +16 -0
- package/src/Queue.ts +44 -0
- package/src/Random.ts +25 -6
- package/src/RcMap.ts +10 -6
- package/src/RcRef.ts +3 -1
- package/src/Record.ts +24 -3
- package/src/Redactable.ts +54 -41
- package/src/Redacted.ts +10 -0
- package/src/Reducer.ts +20 -11
- package/src/Ref.ts +95 -58
- package/src/References.ts +18 -1
- package/src/Request.ts +3 -3
- package/src/RequestResolver.ts +8 -22
- package/src/Resource.ts +2 -0
- package/src/Result.ts +192 -6
- package/src/Runtime.ts +14 -11
- package/src/Schedule.ts +35 -3
- package/src/Scheduler.ts +22 -19
- package/src/Schema.ts +547 -130
- package/src/SchemaAST.ts +123 -65
- package/src/SchemaGetter.ts +269 -234
- package/src/SchemaIssue.ts +48 -46
- package/src/SchemaParser.ts +58 -0
- package/src/SchemaRepresentation.ts +198 -96
- package/src/SchemaTransformation.ts +272 -203
- package/src/SchemaUtils.ts +2 -0
- package/src/Scope.ts +19 -1
- package/src/ScopedCache.ts +56 -0
- package/src/ScopedRef.ts +9 -3
- package/src/Semaphore.ts +6 -0
- package/src/Sink.ts +108 -0
- package/src/Stdio.ts +7 -3
- package/src/Stream.ts +464 -16
- package/src/String.ts +14 -0
- package/src/Struct.ts +371 -191
- package/src/SubscriptionRef.ts +7 -1
- package/src/SynchronizedRef.ts +2 -0
- package/src/Tracer.ts +17 -27
- package/src/Trie.ts +23 -9
- package/src/Tuple.ts +287 -144
- package/src/TxChunk.ts +182 -93
- package/src/TxDeferred.ts +3 -4
- package/src/TxHashMap.ts +171 -90
- package/src/TxHashSet.ts +36 -35
- package/src/TxPriorityQueue.ts +2 -0
- package/src/TxPubSub.ts +36 -35
- package/src/TxQueue.ts +77 -114
- package/src/TxRef.ts +4 -0
- package/src/TxSemaphore.ts +66 -27
- package/src/Types.ts +202 -75
- package/src/UndefinedOr.ts +31 -29
- package/src/Unify.ts +28 -0
- package/src/Utils.ts +29 -35
- package/src/index.ts +18 -7
- package/src/testing/TestClock.ts +16 -16
- package/src/testing/TestConsole.ts +2 -0
- package/src/testing/TestSchema.ts +43 -55
- package/src/unstable/ai/AiError.ts +62 -11
- package/src/unstable/ai/AnthropicStructuredOutput.ts +4 -4
- package/src/unstable/ai/Chat.ts +29 -1
- package/src/unstable/ai/IdGenerator.ts +10 -0
- package/src/unstable/ai/LanguageModel.ts +32 -46
- package/src/unstable/ai/McpSchema.ts +84 -32
- package/src/unstable/ai/McpServer.ts +8 -0
- package/src/unstable/ai/Model.ts +9 -5
- package/src/unstable/ai/OpenAiStructuredOutput.ts +3 -2
- package/src/unstable/ai/Prompt.ts +62 -35
- package/src/unstable/ai/Response.ts +40 -21
- package/src/unstable/ai/ResponseIdTracker.ts +8 -0
- package/src/unstable/ai/Telemetry.ts +30 -5
- package/src/unstable/ai/Tokenizer.ts +6 -0
- package/src/unstable/ai/Tool.ts +68 -0
- package/src/unstable/ai/Toolkit.ts +12 -0
- package/src/unstable/cli/Argument.ts +14 -4
- package/src/unstable/cli/CliError.ts +6 -0
- package/src/unstable/cli/Command.ts +128 -12
- package/src/unstable/cli/Flag.ts +31 -14
- package/src/unstable/cli/Param.ts +96 -9
- package/src/unstable/cli/Primitive.ts +10 -0
- package/src/unstable/cli/Prompt.ts +47 -40
- package/src/unstable/cli/internal/command.ts +11 -2
- package/src/unstable/cli/internal/completions/descriptor.ts +3 -0
- package/src/unstable/cli/internal/parser.ts +8 -1
- package/src/unstable/cluster/ClusterCron.ts +10 -1
- package/src/unstable/cluster/ClusterSchema.ts +8 -0
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +4 -0
- package/src/unstable/cluster/DeliverAt.ts +3 -4
- package/src/unstable/cluster/Entity.ts +24 -0
- package/src/unstable/cluster/EntityProxy.ts +10 -4
- package/src/unstable/cluster/EntityProxyServer.ts +6 -0
- package/src/unstable/cluster/EntityResource.ts +10 -0
- package/src/unstable/cluster/Envelope.ts +16 -0
- package/src/unstable/cluster/HttpRunner.ts +16 -0
- package/src/unstable/cluster/K8sHttpClient.ts +8 -0
- package/src/unstable/cluster/Message.ts +24 -0
- package/src/unstable/cluster/MessageStorage.ts +44 -10
- package/src/unstable/cluster/Reply.ts +6 -6
- package/src/unstable/cluster/Runner.ts +2 -0
- package/src/unstable/cluster/RunnerHealth.ts +13 -2
- package/src/unstable/cluster/RunnerServer.ts +8 -8
- package/src/unstable/cluster/RunnerStorage.ts +2 -0
- package/src/unstable/cluster/ShardId.ts +4 -0
- package/src/unstable/cluster/Snowflake.ts +2 -0
- package/src/unstable/cluster/TestRunner.ts +3 -2
- package/src/unstable/devtools/DevToolsSchema.ts +34 -2
- package/src/unstable/devtools/DevToolsServer.ts +4 -0
- package/src/unstable/encoding/Msgpack.ts +24 -0
- package/src/unstable/encoding/Ndjson.ts +46 -2
- package/src/unstable/encoding/Sse.ts +24 -17
- package/src/unstable/eventlog/Event.ts +16 -0
- package/src/unstable/eventlog/EventGroup.ts +4 -0
- package/src/unstable/eventlog/EventJournal.ts +20 -0
- package/src/unstable/eventlog/EventLog.ts +22 -0
- package/src/unstable/eventlog/EventLogMessage.ts +10 -0
- package/src/unstable/eventlog/EventLogRemote.ts +4 -0
- package/src/unstable/eventlog/EventLogServer.ts +4 -0
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +6 -0
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +8 -0
- package/src/unstable/eventlog/EventLogSessionAuth.ts +11 -1
- package/src/unstable/eventlog/SqlEventJournal.ts +2 -0
- package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +2 -0
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +2 -0
- package/src/unstable/http/Cookies.ts +34 -0
- package/src/unstable/http/Etag.ts +4 -0
- package/src/unstable/http/FetchHttpClient.ts +4 -0
- package/src/unstable/http/Headers.ts +88 -0
- package/src/unstable/http/HttpBody.ts +32 -0
- package/src/unstable/http/HttpClient.ts +44 -0
- package/src/unstable/http/HttpClientRequest.ts +2 -0
- package/src/unstable/http/HttpClientResponse.ts +6 -0
- package/src/unstable/http/HttpEffect.ts +4 -0
- package/src/unstable/http/HttpPlatform.ts +2 -0
- package/src/unstable/http/HttpRouter.ts +54 -16
- package/src/unstable/http/HttpServer.ts +35 -1
- package/src/unstable/http/HttpServerError.ts +17 -3
- package/src/unstable/http/HttpServerRequest.ts +30 -0
- package/src/unstable/http/HttpServerRespondable.ts +8 -0
- package/src/unstable/http/HttpServerResponse.ts +96 -0
- package/src/unstable/http/HttpTraceContext.ts +12 -0
- package/src/unstable/http/Multipart.ts +49 -2
- package/src/unstable/http/Template.ts +14 -0
- package/src/unstable/http/UrlParams.ts +64 -0
- package/src/unstable/httpapi/HttpApi.ts +10 -4
- package/src/unstable/httpapi/HttpApiBuilder.ts +9 -4
- package/src/unstable/httpapi/HttpApiEndpoint.ts +2 -0
- package/src/unstable/httpapi/HttpApiGroup.ts +23 -14
- package/src/unstable/httpapi/HttpApiMiddleware.ts +14 -0
- package/src/unstable/httpapi/HttpApiScalar.ts +38 -15
- package/src/unstable/httpapi/HttpApiSchema.ts +14 -3
- package/src/unstable/httpapi/HttpApiSecurity.ts +17 -11
- package/src/unstable/httpapi/HttpApiSwagger.ts +2 -4
- package/src/unstable/httpapi/HttpApiTest.ts +2 -0
- package/src/unstable/httpapi/OpenApi.ts +2 -0
- package/src/unstable/observability/Otlp.ts +2 -0
- package/src/unstable/observability/OtlpExporter.ts +2 -0
- package/src/unstable/observability/OtlpLogger.ts +4 -0
- package/src/unstable/observability/OtlpMetrics.ts +8 -9
- package/src/unstable/observability/OtlpResource.ts +8 -0
- package/src/unstable/observability/OtlpTracer.ts +3 -2
- package/src/unstable/observability/PrometheusMetrics.ts +6 -2
- package/src/unstable/persistence/KeyValueStore.ts +10 -0
- package/src/unstable/persistence/Persistable.ts +2 -0
- package/src/unstable/persistence/PersistedCache.ts +2 -0
- package/src/unstable/persistence/PersistedQueue.ts +21 -6
- package/src/unstable/persistence/Persistence.ts +14 -0
- package/src/unstable/persistence/RateLimiter.ts +6 -3
- package/src/unstable/persistence/Redis.ts +6 -0
- package/src/unstable/process/ChildProcess.ts +70 -19
- package/src/unstable/process/ChildProcessSpawner.ts +20 -4
- package/src/unstable/reactivity/Atom.ts +119 -14
- package/src/unstable/reactivity/AtomHttpApi.ts +4 -0
- package/src/unstable/reactivity/AtomRef.ts +8 -0
- package/src/unstable/reactivity/AtomRegistry.ts +34 -0
- package/src/unstable/reactivity/AtomRpc.ts +8 -6
- package/src/unstable/reactivity/Hydration.ts +6 -0
- package/src/unstable/reactivity/Reactivity.ts +27 -3
- package/src/unstable/rpc/Rpc.ts +38 -2
- package/src/unstable/rpc/RpcSerialization.ts +6 -0
- package/src/unstable/rpc/RpcServer.ts +5 -3
- package/src/unstable/schema/Model.ts +43 -12
- package/src/unstable/sql/SqlClient.ts +1 -1
- package/src/unstable/sql/SqlResolver.ts +6 -4
- package/src/unstable/sql/Statement.ts +8 -4
- package/src/unstable/workflow/DurableClock.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +3 -0
- package/src/unstable/workflow/Workflow.ts +42 -34
package/dist/Option.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ export type Option<A> = None<A> | Some<A>;
|
|
|
111
111
|
*
|
|
112
112
|
* - Use as a type guard target when narrowing via {@link isNone}
|
|
113
113
|
*
|
|
114
|
-
* **
|
|
114
|
+
* **Details**
|
|
115
115
|
*
|
|
116
116
|
* - `_tag` is always `"None"`
|
|
117
117
|
* - Implements `Pipeable`, `Inspectable`, and structural equality
|
|
@@ -152,7 +152,7 @@ export interface OptionIterator<T extends Option<any>> {
|
|
|
152
152
|
* - Use as a type guard target when narrowing via {@link isSome}
|
|
153
153
|
* - Access the inner value via `.value`
|
|
154
154
|
*
|
|
155
|
-
* **
|
|
155
|
+
* **Details**
|
|
156
156
|
*
|
|
157
157
|
* - `_tag` is always `"Some"`
|
|
158
158
|
* - `.value` holds the contained value of type `A`
|
|
@@ -180,6 +180,8 @@ export interface Some<out A> extends Pipeable, Inspectable {
|
|
|
180
180
|
/**
|
|
181
181
|
* Type-level unification support for `Option` values.
|
|
182
182
|
*
|
|
183
|
+
* **Details**
|
|
184
|
+
*
|
|
183
185
|
* This is used by Effect's `Unify` machinery to preserve the contained value
|
|
184
186
|
* type when generic code returns or combines `Option` values. Users normally
|
|
185
187
|
* do not need to reference this interface directly.
|
|
@@ -221,6 +223,8 @@ export declare namespace Option {
|
|
|
221
223
|
/**
|
|
222
224
|
* Marker interface used by Effect's `Unify` machinery for `Option` values.
|
|
223
225
|
*
|
|
226
|
+
* **Details**
|
|
227
|
+
*
|
|
224
228
|
* This supports type-level unification behavior for `Option`. Users normally
|
|
225
229
|
* do not need to reference this interface directly.
|
|
226
230
|
*
|
|
@@ -246,7 +250,7 @@ export interface OptionTypeLambda extends TypeLambda {
|
|
|
246
250
|
* - Representing a missing or uninitialized value
|
|
247
251
|
* - Returning "no result" from a function
|
|
248
252
|
*
|
|
249
|
-
* **
|
|
253
|
+
* **Details**
|
|
250
254
|
*
|
|
251
255
|
* - Returns `Option<never>`, which is a subtype of `Option<A>` for any `A`
|
|
252
256
|
* - Always returns the same singleton instance
|
|
@@ -278,7 +282,7 @@ export declare const none: <A = never>() => Option<A>;
|
|
|
278
282
|
* - Wrapping a known-present value as `Option`
|
|
279
283
|
* - Returning a successful result from a partial function
|
|
280
284
|
*
|
|
281
|
-
* **
|
|
285
|
+
* **Details**
|
|
282
286
|
*
|
|
283
287
|
* - Always returns `Some<A>`
|
|
284
288
|
* - Does not filter `null` or `undefined`; use {@link fromNullishOr} for that
|
|
@@ -310,7 +314,7 @@ export declare const some: <A>(value: A) => Option<A>;
|
|
|
310
314
|
* - Validating unknown values at runtime boundaries
|
|
311
315
|
* - Type-narrowing in union types
|
|
312
316
|
*
|
|
313
|
-
* **
|
|
317
|
+
* **Details**
|
|
314
318
|
*
|
|
315
319
|
* - Returns `true` for both `Some` and `None` instances
|
|
316
320
|
* - Acts as a type guard, narrowing the input to `Option<unknown>`
|
|
@@ -344,7 +348,7 @@ export declare const isOption: (input: unknown) => input is Option<unknown>;
|
|
|
344
348
|
*
|
|
345
349
|
* - Branching on absence before accessing `.value`
|
|
346
350
|
*
|
|
347
|
-
* **
|
|
351
|
+
* **Details**
|
|
348
352
|
*
|
|
349
353
|
* - Acts as a type guard, narrowing to `None<A>`
|
|
350
354
|
*
|
|
@@ -373,7 +377,7 @@ export declare const isNone: <A>(self: Option<A>) => self is None<A>;
|
|
|
373
377
|
*
|
|
374
378
|
* - Branching on presence before accessing `.value`
|
|
375
379
|
*
|
|
376
|
-
* **
|
|
380
|
+
* **Details**
|
|
377
381
|
*
|
|
378
382
|
* - Acts as a type guard, narrowing to `Some<A>`
|
|
379
383
|
*
|
|
@@ -403,7 +407,7 @@ export declare const isSome: <A>(self: Option<A>) => self is Some<A>;
|
|
|
403
407
|
* - Exhaustively handling both branches in one expression
|
|
404
408
|
* - Transforming an `Option` into a plain value
|
|
405
409
|
*
|
|
406
|
-
* **
|
|
410
|
+
* **Details**
|
|
407
411
|
*
|
|
408
412
|
* - If `None`, calls `onNone` and returns its result
|
|
409
413
|
* - If `Some`, calls `onSome` with the value and returns its result
|
|
@@ -437,7 +441,7 @@ export declare const match: {
|
|
|
437
441
|
* - Exhaustively handling both branches in one expression
|
|
438
442
|
* - Transforming an `Option` into a plain value
|
|
439
443
|
*
|
|
440
|
-
* **
|
|
444
|
+
* **Details**
|
|
441
445
|
*
|
|
442
446
|
* - If `None`, calls `onNone` and returns its result
|
|
443
447
|
* - If `Some`, calls `onSome` with the value and returns its result
|
|
@@ -474,7 +478,7 @@ export declare const match: {
|
|
|
474
478
|
* - Exhaustively handling both branches in one expression
|
|
475
479
|
* - Transforming an `Option` into a plain value
|
|
476
480
|
*
|
|
477
|
-
* **
|
|
481
|
+
* **Details**
|
|
478
482
|
*
|
|
479
483
|
* - If `None`, calls `onNone` and returns its result
|
|
480
484
|
* - If `Some`, calls `onSome` with the value and returns its result
|
|
@@ -512,7 +516,7 @@ export declare const match: {
|
|
|
512
516
|
* - Turning a parsing function into a type-narrowing predicate
|
|
513
517
|
* - Filtering arrays with `Array.prototype.filter`
|
|
514
518
|
*
|
|
515
|
-
* **
|
|
519
|
+
* **Details**
|
|
516
520
|
*
|
|
517
521
|
* - Returns `true` when the original function returns `Some`
|
|
518
522
|
* - Returns `false` when the original function returns `None`
|
|
@@ -554,7 +558,7 @@ export declare const toRefinement: <A, B extends A>(f: (a: A) => Option<B>) => (
|
|
|
554
558
|
* - Safely extracting the head of a collection
|
|
555
559
|
* - Working with generators or lazy iterables
|
|
556
560
|
*
|
|
557
|
-
* **
|
|
561
|
+
* **Details**
|
|
558
562
|
*
|
|
559
563
|
* - Only consumes the first element; does not iterate the rest
|
|
560
564
|
* - Returns `None` for empty iterables
|
|
@@ -580,7 +584,7 @@ export declare const fromIterable: <A>(collection: Iterable<A>) => Option<A>;
|
|
|
580
584
|
/**
|
|
581
585
|
* Converts a `Result` into an `Option`, keeping only the success value.
|
|
582
586
|
*
|
|
583
|
-
* **When to
|
|
587
|
+
* **When to use**
|
|
584
588
|
*
|
|
585
589
|
* - Discarding the failure channel when you only care about success
|
|
586
590
|
*
|
|
@@ -610,7 +614,7 @@ export declare const getSuccess: <A, E>(self: Result<A, E>) => Option<A>;
|
|
|
610
614
|
/**
|
|
611
615
|
* Converts a `Result` into an `Option`, keeping only the failure value.
|
|
612
616
|
*
|
|
613
|
-
* **When to
|
|
617
|
+
* **When to use**
|
|
614
618
|
*
|
|
615
619
|
* - Extracting the failure when you do not need the success value
|
|
616
620
|
*
|
|
@@ -645,7 +649,7 @@ export declare const getFailure: <A, E>(self: Result<A, E>) => Option<E>;
|
|
|
645
649
|
* - Providing a default value for an absent `Option`
|
|
646
650
|
* - Unwrapping with lazy evaluation of the fallback
|
|
647
651
|
*
|
|
648
|
-
* **
|
|
652
|
+
* **Details**
|
|
649
653
|
*
|
|
650
654
|
* - `Some` → returns the inner value
|
|
651
655
|
* - `None` → calls `onNone()` and returns its result
|
|
@@ -679,7 +683,7 @@ export declare const getOrElse: {
|
|
|
679
683
|
* - Providing a default value for an absent `Option`
|
|
680
684
|
* - Unwrapping with lazy evaluation of the fallback
|
|
681
685
|
*
|
|
682
|
-
* **
|
|
686
|
+
* **Details**
|
|
683
687
|
*
|
|
684
688
|
* - `Some` → returns the inner value
|
|
685
689
|
* - `None` → calls `onNone()` and returns its result
|
|
@@ -713,7 +717,7 @@ export declare const getOrElse: {
|
|
|
713
717
|
* - Providing a default value for an absent `Option`
|
|
714
718
|
* - Unwrapping with lazy evaluation of the fallback
|
|
715
719
|
*
|
|
716
|
-
* **
|
|
720
|
+
* **Details**
|
|
717
721
|
*
|
|
718
722
|
* - `Some` → returns the inner value
|
|
719
723
|
* - `None` → calls `onNone()` and returns its result
|
|
@@ -748,7 +752,7 @@ export declare const getOrElse: {
|
|
|
748
752
|
* - Chaining fallback `Option` computations
|
|
749
753
|
* - Building priority chains of optional values
|
|
750
754
|
*
|
|
751
|
-
* **
|
|
755
|
+
* **Details**
|
|
752
756
|
*
|
|
753
757
|
* - `Some` → returns `self` unchanged
|
|
754
758
|
* - `None` → evaluates and returns `that()`
|
|
@@ -781,7 +785,7 @@ export declare const orElse: {
|
|
|
781
785
|
* - Chaining fallback `Option` computations
|
|
782
786
|
* - Building priority chains of optional values
|
|
783
787
|
*
|
|
784
|
-
* **
|
|
788
|
+
* **Details**
|
|
785
789
|
*
|
|
786
790
|
* - `Some` → returns `self` unchanged
|
|
787
791
|
* - `None` → evaluates and returns `that()`
|
|
@@ -814,7 +818,7 @@ export declare const orElse: {
|
|
|
814
818
|
* - Chaining fallback `Option` computations
|
|
815
819
|
* - Building priority chains of optional values
|
|
816
820
|
*
|
|
817
|
-
* **
|
|
821
|
+
* **Details**
|
|
818
822
|
*
|
|
819
823
|
* - `Some` → returns `self` unchanged
|
|
820
824
|
* - `None` → evaluates and returns `that()`
|
|
@@ -848,7 +852,7 @@ export declare const orElse: {
|
|
|
848
852
|
*
|
|
849
853
|
* - Providing a default plain value (not an `Option`) as fallback
|
|
850
854
|
*
|
|
851
|
-
* **
|
|
855
|
+
* **Details**
|
|
852
856
|
*
|
|
853
857
|
* - `Some` → returns `self` unchanged
|
|
854
858
|
* - `None` → calls `onNone()`, wraps result in `Some`, and returns it
|
|
@@ -879,7 +883,7 @@ export declare const orElseSome: {
|
|
|
879
883
|
*
|
|
880
884
|
* - Providing a default plain value (not an `Option`) as fallback
|
|
881
885
|
*
|
|
882
|
-
* **
|
|
886
|
+
* **Details**
|
|
883
887
|
*
|
|
884
888
|
* - `Some` → returns `self` unchanged
|
|
885
889
|
* - `None` → calls `onNone()`, wraps result in `Some`, and returns it
|
|
@@ -910,7 +914,7 @@ export declare const orElseSome: {
|
|
|
910
914
|
*
|
|
911
915
|
* - Providing a default plain value (not an `Option`) as fallback
|
|
912
916
|
*
|
|
913
|
-
* **
|
|
917
|
+
* **Details**
|
|
914
918
|
*
|
|
915
919
|
* - `Some` → returns `self` unchanged
|
|
916
920
|
* - `None` → calls `onNone()`, wraps result in `Some`, and returns it
|
|
@@ -942,7 +946,7 @@ export declare const orElseSome: {
|
|
|
942
946
|
*
|
|
943
947
|
* - Distinguishing whether a value came from the primary or fallback `Option`
|
|
944
948
|
*
|
|
945
|
-
* **
|
|
949
|
+
* **Details**
|
|
946
950
|
*
|
|
947
951
|
* - `self` is `Some` → `Some(Result.fail(value))` (value from primary)
|
|
948
952
|
* - `self` is `None`, `that()` is `Some` → `Some(Result.succeed(value))` (value from fallback)
|
|
@@ -974,7 +978,7 @@ export declare const orElseResult: {
|
|
|
974
978
|
*
|
|
975
979
|
* - Distinguishing whether a value came from the primary or fallback `Option`
|
|
976
980
|
*
|
|
977
|
-
* **
|
|
981
|
+
* **Details**
|
|
978
982
|
*
|
|
979
983
|
* - `self` is `Some` → `Some(Result.fail(value))` (value from primary)
|
|
980
984
|
* - `self` is `None`, `that()` is `Some` → `Some(Result.succeed(value))` (value from fallback)
|
|
@@ -1006,7 +1010,7 @@ export declare const orElseResult: {
|
|
|
1006
1010
|
*
|
|
1007
1011
|
* - Distinguishing whether a value came from the primary or fallback `Option`
|
|
1008
1012
|
*
|
|
1009
|
-
* **
|
|
1013
|
+
* **Details**
|
|
1010
1014
|
*
|
|
1011
1015
|
* - `self` is `Some` → `Some(Result.fail(value))` (value from primary)
|
|
1012
1016
|
* - `self` is `None`, `that()` is `Some` → `Some(Result.succeed(value))` (value from fallback)
|
|
@@ -1039,7 +1043,7 @@ export declare const orElseResult: {
|
|
|
1039
1043
|
*
|
|
1040
1044
|
* - Searching for the first available value in a priority list
|
|
1041
1045
|
*
|
|
1042
|
-
* **
|
|
1046
|
+
* **Details**
|
|
1043
1047
|
*
|
|
1044
1048
|
* - Short-circuits on the first `Some`
|
|
1045
1049
|
* - Returns `None` only when every element is `None`
|
|
@@ -1071,7 +1075,7 @@ export declare const firstSomeOf: <T, C extends Iterable<Option<T>> = Iterable<O
|
|
|
1071
1075
|
* - Bridging from nullable APIs to `Option`
|
|
1072
1076
|
* - Wrapping values that may be `null` or `undefined`
|
|
1073
1077
|
*
|
|
1074
|
-
* **
|
|
1078
|
+
* **Details**
|
|
1075
1079
|
*
|
|
1076
1080
|
* - `null` or `undefined` → `None`
|
|
1077
1081
|
* - Any other value → `Some` (typed as `NonNullable<A>`)
|
|
@@ -1107,7 +1111,7 @@ export declare const fromNullishOr: <A>(a: A) => Option<NonNullable<A>>;
|
|
|
1107
1111
|
*
|
|
1108
1112
|
* - When `null` is a meaningful value but `undefined` means absent
|
|
1109
1113
|
*
|
|
1110
|
-
* **
|
|
1114
|
+
* **Details**
|
|
1111
1115
|
*
|
|
1112
1116
|
* - `undefined` → `None`
|
|
1113
1117
|
* - Any other value (including `null`) → `Some`
|
|
@@ -1142,7 +1146,7 @@ export declare const fromUndefinedOr: <A>(a: A) => Option<Exclude<A, undefined>>
|
|
|
1142
1146
|
*
|
|
1143
1147
|
* - When `undefined` is a meaningful value but `null` means absent
|
|
1144
1148
|
*
|
|
1145
|
-
* **
|
|
1149
|
+
* **Details**
|
|
1146
1150
|
*
|
|
1147
1151
|
* - `null` → `None`
|
|
1148
1152
|
* - Any other value (including `undefined`) → `Some`
|
|
@@ -1177,7 +1181,7 @@ export declare const fromNullOr: <A>(a: A) => Option<Exclude<A, null>>;
|
|
|
1177
1181
|
*
|
|
1178
1182
|
* - Wrapping existing nullable-returning functions for use in `Option` pipelines
|
|
1179
1183
|
*
|
|
1180
|
-
* **
|
|
1184
|
+
* **Details**
|
|
1181
1185
|
*
|
|
1182
1186
|
* - Calls the original function with the given arguments
|
|
1183
1187
|
* - Wraps the result via {@link fromNullishOr}
|
|
@@ -1215,7 +1219,7 @@ export declare const liftNullishOr: <A extends ReadonlyArray<unknown>, B>(f: (..
|
|
|
1215
1219
|
*
|
|
1216
1220
|
* - Interoping with APIs that use `null` for missing values
|
|
1217
1221
|
*
|
|
1218
|
-
* **
|
|
1222
|
+
* **Details**
|
|
1219
1223
|
*
|
|
1220
1224
|
* - `Some` → the inner value
|
|
1221
1225
|
* - `None` → `null`
|
|
@@ -1246,7 +1250,7 @@ export declare const getOrNull: <A>(self: Option<A>) => A | null;
|
|
|
1246
1250
|
*
|
|
1247
1251
|
* - Interoping with APIs that use `undefined` for missing values
|
|
1248
1252
|
*
|
|
1249
|
-
* **
|
|
1253
|
+
* **Details**
|
|
1250
1254
|
*
|
|
1251
1255
|
* - `Some` → the inner value
|
|
1252
1256
|
* - `None` → `undefined`
|
|
@@ -1277,7 +1281,7 @@ export declare const getOrUndefined: <A>(self: Option<A>) => A | undefined;
|
|
|
1277
1281
|
*
|
|
1278
1282
|
* - Wrapping exception-throwing APIs (e.g. `JSON.parse`) for safe usage
|
|
1279
1283
|
*
|
|
1280
|
-
* **
|
|
1284
|
+
* **Details**
|
|
1281
1285
|
*
|
|
1282
1286
|
* - If the function returns normally → `Some` with the result
|
|
1283
1287
|
* - If the function throws → `None` (exception is swallowed)
|
|
@@ -1310,7 +1314,7 @@ export declare const liftThrowable: <A extends ReadonlyArray<unknown>, B>(f: (..
|
|
|
1310
1314
|
* - Fail-fast unwrapping when absence is unexpected
|
|
1311
1315
|
* - Providing a descriptive error for debugging
|
|
1312
1316
|
*
|
|
1313
|
-
* **
|
|
1317
|
+
* **Details**
|
|
1314
1318
|
*
|
|
1315
1319
|
* - `Some` → returns the inner value
|
|
1316
1320
|
* - `None` → throws the value returned by `onNone()`
|
|
@@ -1342,7 +1346,7 @@ export declare const getOrThrowWith: {
|
|
|
1342
1346
|
* - Fail-fast unwrapping when absence is unexpected
|
|
1343
1347
|
* - Providing a descriptive error for debugging
|
|
1344
1348
|
*
|
|
1345
|
-
* **
|
|
1349
|
+
* **Details**
|
|
1346
1350
|
*
|
|
1347
1351
|
* - `Some` → returns the inner value
|
|
1348
1352
|
* - `None` → throws the value returned by `onNone()`
|
|
@@ -1374,7 +1378,7 @@ export declare const getOrThrowWith: {
|
|
|
1374
1378
|
* - Fail-fast unwrapping when absence is unexpected
|
|
1375
1379
|
* - Providing a descriptive error for debugging
|
|
1376
1380
|
*
|
|
1377
|
-
* **
|
|
1381
|
+
* **Details**
|
|
1378
1382
|
*
|
|
1379
1383
|
* - `Some` → returns the inner value
|
|
1380
1384
|
* - `None` → throws the value returned by `onNone()`
|
|
@@ -1406,7 +1410,7 @@ export declare const getOrThrowWith: {
|
|
|
1406
1410
|
*
|
|
1407
1411
|
* - Quick fail-fast unwrapping when a generic error is acceptable
|
|
1408
1412
|
*
|
|
1409
|
-
* **
|
|
1413
|
+
* **Details**
|
|
1410
1414
|
*
|
|
1411
1415
|
* - `Some` → returns the inner value
|
|
1412
1416
|
* - `None` → throws `new Error("getOrThrow called on a None")`
|
|
@@ -1439,7 +1443,7 @@ export declare const getOrThrow: <A>(self: Option<A>) => A;
|
|
|
1439
1443
|
* - Applying a pure transformation to an optional value
|
|
1440
1444
|
* - Chaining transformations in a pipeline
|
|
1441
1445
|
*
|
|
1442
|
-
* **
|
|
1446
|
+
* **Details**
|
|
1443
1447
|
*
|
|
1444
1448
|
* - `Some` → applies `f` and wraps the result in a new `Some`
|
|
1445
1449
|
* - `None` → returns `None` unchanged
|
|
@@ -1473,7 +1477,7 @@ export declare const map: {
|
|
|
1473
1477
|
* - Applying a pure transformation to an optional value
|
|
1474
1478
|
* - Chaining transformations in a pipeline
|
|
1475
1479
|
*
|
|
1476
|
-
* **
|
|
1480
|
+
* **Details**
|
|
1477
1481
|
*
|
|
1478
1482
|
* - `Some` → applies `f` and wraps the result in a new `Some`
|
|
1479
1483
|
* - `None` → returns `None` unchanged
|
|
@@ -1507,7 +1511,7 @@ export declare const map: {
|
|
|
1507
1511
|
* - Applying a pure transformation to an optional value
|
|
1508
1512
|
* - Chaining transformations in a pipeline
|
|
1509
1513
|
*
|
|
1510
|
-
* **
|
|
1514
|
+
* **Details**
|
|
1511
1515
|
*
|
|
1512
1516
|
* - `Some` → applies `f` and wraps the result in a new `Some`
|
|
1513
1517
|
* - `None` → returns `None` unchanged
|
|
@@ -1540,7 +1544,7 @@ export declare const map: {
|
|
|
1540
1544
|
*
|
|
1541
1545
|
* - Preserving presence/absence while discarding the original value
|
|
1542
1546
|
*
|
|
1543
|
-
* **
|
|
1547
|
+
* **Details**
|
|
1544
1548
|
*
|
|
1545
1549
|
* - `Some` → `Some(b)`
|
|
1546
1550
|
* - `None` → `None`
|
|
@@ -1571,7 +1575,7 @@ export declare const as: {
|
|
|
1571
1575
|
*
|
|
1572
1576
|
* - Preserving presence/absence while discarding the original value
|
|
1573
1577
|
*
|
|
1574
|
-
* **
|
|
1578
|
+
* **Details**
|
|
1575
1579
|
*
|
|
1576
1580
|
* - `Some` → `Some(b)`
|
|
1577
1581
|
* - `None` → `None`
|
|
@@ -1602,7 +1606,7 @@ export declare const as: {
|
|
|
1602
1606
|
*
|
|
1603
1607
|
* - Preserving presence/absence while discarding the original value
|
|
1604
1608
|
*
|
|
1605
|
-
* **
|
|
1609
|
+
* **Details**
|
|
1606
1610
|
*
|
|
1607
1611
|
* - `Some` → `Some(b)`
|
|
1608
1612
|
* - `None` → `None`
|
|
@@ -1635,7 +1639,7 @@ export declare const as: {
|
|
|
1635
1639
|
*
|
|
1636
1640
|
* - Discarding the value while preserving presence/absence
|
|
1637
1641
|
*
|
|
1638
|
-
* **
|
|
1642
|
+
* **Details**
|
|
1639
1643
|
*
|
|
1640
1644
|
* - `Some` → `Some(undefined)`
|
|
1641
1645
|
* - `None` → `None`
|
|
@@ -1691,7 +1695,7 @@ void_ as void };
|
|
|
1691
1695
|
* - Chaining computations that each may fail (return `None`)
|
|
1692
1696
|
* - Sequencing dependent optional operations
|
|
1693
1697
|
*
|
|
1694
|
-
* **
|
|
1698
|
+
* **Details**
|
|
1695
1699
|
*
|
|
1696
1700
|
* - `Some` → applies `f` to the value and returns its `Option` result
|
|
1697
1701
|
* - `None` → returns `None` without calling `f`
|
|
@@ -1737,7 +1741,7 @@ export declare const flatMap: {
|
|
|
1737
1741
|
* - Chaining computations that each may fail (return `None`)
|
|
1738
1742
|
* - Sequencing dependent optional operations
|
|
1739
1743
|
*
|
|
1740
|
-
* **
|
|
1744
|
+
* **Details**
|
|
1741
1745
|
*
|
|
1742
1746
|
* - `Some` → applies `f` to the value and returns its `Option` result
|
|
1743
1747
|
* - `None` → returns `None` without calling `f`
|
|
@@ -1783,7 +1787,7 @@ export declare const flatMap: {
|
|
|
1783
1787
|
* - Chaining computations that each may fail (return `None`)
|
|
1784
1788
|
* - Sequencing dependent optional operations
|
|
1785
1789
|
*
|
|
1786
|
-
* **
|
|
1790
|
+
* **Details**
|
|
1787
1791
|
*
|
|
1788
1792
|
* - `Some` → applies `f` to the value and returns its `Option` result
|
|
1789
1793
|
* - `None` → returns `None` without calling `f`
|
|
@@ -1830,7 +1834,7 @@ export declare const flatMap: {
|
|
|
1830
1834
|
* - Flexible chaining where the next step may return `Option`, a plain value,
|
|
1831
1835
|
* or a function
|
|
1832
1836
|
*
|
|
1833
|
-
* **
|
|
1837
|
+
* **Details**
|
|
1834
1838
|
*
|
|
1835
1839
|
* - If `self` is `None`, returns `None` immediately
|
|
1836
1840
|
* - If `f` is a function, calls it with the `Some` value
|
|
@@ -1871,7 +1875,7 @@ export declare const andThen: {
|
|
|
1871
1875
|
* - Flexible chaining where the next step may return `Option`, a plain value,
|
|
1872
1876
|
* or a function
|
|
1873
1877
|
*
|
|
1874
|
-
* **
|
|
1878
|
+
* **Details**
|
|
1875
1879
|
*
|
|
1876
1880
|
* - If `self` is `None`, returns `None` immediately
|
|
1877
1881
|
* - If `f` is a function, calls it with the `Some` value
|
|
@@ -1912,7 +1916,7 @@ export declare const andThen: {
|
|
|
1912
1916
|
* - Flexible chaining where the next step may return `Option`, a plain value,
|
|
1913
1917
|
* or a function
|
|
1914
1918
|
*
|
|
1915
|
-
* **
|
|
1919
|
+
* **Details**
|
|
1916
1920
|
*
|
|
1917
1921
|
* - If `self` is `None`, returns `None` immediately
|
|
1918
1922
|
* - If `f` is a function, calls it with the `Some` value
|
|
@@ -1953,7 +1957,7 @@ export declare const andThen: {
|
|
|
1953
1957
|
* - Flexible chaining where the next step may return `Option`, a plain value,
|
|
1954
1958
|
* or a function
|
|
1955
1959
|
*
|
|
1956
|
-
* **
|
|
1960
|
+
* **Details**
|
|
1957
1961
|
*
|
|
1958
1962
|
* - If `self` is `None`, returns `None` immediately
|
|
1959
1963
|
* - If `f` is a function, calls it with the `Some` value
|
|
@@ -1994,7 +1998,7 @@ export declare const andThen: {
|
|
|
1994
1998
|
* - Flexible chaining where the next step may return `Option`, a plain value,
|
|
1995
1999
|
* or a function
|
|
1996
2000
|
*
|
|
1997
|
-
* **
|
|
2001
|
+
* **Details**
|
|
1998
2002
|
*
|
|
1999
2003
|
* - If `self` is `None`, returns `None` immediately
|
|
2000
2004
|
* - If `f` is a function, calls it with the `Some` value
|
|
@@ -2035,7 +2039,7 @@ export declare const andThen: {
|
|
|
2035
2039
|
* - Flexible chaining where the next step may return `Option`, a plain value,
|
|
2036
2040
|
* or a function
|
|
2037
2041
|
*
|
|
2038
|
-
* **
|
|
2042
|
+
* **Details**
|
|
2039
2043
|
*
|
|
2040
2044
|
* - If `self` is `None`, returns `None` immediately
|
|
2041
2045
|
* - If `f` is a function, calls it with the `Some` value
|
|
@@ -2076,7 +2080,7 @@ export declare const andThen: {
|
|
|
2076
2080
|
* - Flexible chaining where the next step may return `Option`, a plain value,
|
|
2077
2081
|
* or a function
|
|
2078
2082
|
*
|
|
2079
|
-
* **
|
|
2083
|
+
* **Details**
|
|
2080
2084
|
*
|
|
2081
2085
|
* - If `self` is `None`, returns `None` immediately
|
|
2082
2086
|
* - If `f` is a function, calls it with the `Some` value
|
|
@@ -2117,7 +2121,7 @@ export declare const andThen: {
|
|
|
2117
2121
|
* - Flexible chaining where the next step may return `Option`, a plain value,
|
|
2118
2122
|
* or a function
|
|
2119
2123
|
*
|
|
2120
|
-
* **
|
|
2124
|
+
* **Details**
|
|
2121
2125
|
*
|
|
2122
2126
|
* - If `self` is `None`, returns `None` immediately
|
|
2123
2127
|
* - If `f` is a function, calls it with the `Some` value
|
|
@@ -2158,7 +2162,7 @@ export declare const andThen: {
|
|
|
2158
2162
|
* - Flexible chaining where the next step may return `Option`, a plain value,
|
|
2159
2163
|
* or a function
|
|
2160
2164
|
*
|
|
2161
|
-
* **
|
|
2165
|
+
* **Details**
|
|
2162
2166
|
*
|
|
2163
2167
|
* - If `self` is `None`, returns `None` immediately
|
|
2164
2168
|
* - If `f` is a function, calls it with the `Some` value
|
|
@@ -2200,7 +2204,7 @@ export declare const andThen: {
|
|
|
2200
2204
|
* - Chaining with functions that use `null`/`undefined` instead of `Option`
|
|
2201
2205
|
* - Navigating deeply nested optional properties
|
|
2202
2206
|
*
|
|
2203
|
-
* **
|
|
2207
|
+
* **Details**
|
|
2204
2208
|
*
|
|
2205
2209
|
* - `None` → `None`
|
|
2206
2210
|
* - `Some` → applies `f`, then wraps via {@link fromNullishOr}
|
|
@@ -2242,7 +2246,7 @@ export declare const flatMapNullishOr: {
|
|
|
2242
2246
|
* - Chaining with functions that use `null`/`undefined` instead of `Option`
|
|
2243
2247
|
* - Navigating deeply nested optional properties
|
|
2244
2248
|
*
|
|
2245
|
-
* **
|
|
2249
|
+
* **Details**
|
|
2246
2250
|
*
|
|
2247
2251
|
* - `None` → `None`
|
|
2248
2252
|
* - `Some` → applies `f`, then wraps via {@link fromNullishOr}
|
|
@@ -2284,7 +2288,7 @@ export declare const flatMapNullishOr: {
|
|
|
2284
2288
|
* - Chaining with functions that use `null`/`undefined` instead of `Option`
|
|
2285
2289
|
* - Navigating deeply nested optional properties
|
|
2286
2290
|
*
|
|
2287
|
-
* **
|
|
2291
|
+
* **Details**
|
|
2288
2292
|
*
|
|
2289
2293
|
* - `None` → `None`
|
|
2290
2294
|
* - `Some` → applies `f`, then wraps via {@link fromNullishOr}
|
|
@@ -2325,7 +2329,7 @@ export declare const flatMapNullishOr: {
|
|
|
2325
2329
|
*
|
|
2326
2330
|
* - Removing one layer of `Option` nesting
|
|
2327
2331
|
*
|
|
2328
|
-
* **
|
|
2332
|
+
* **Details**
|
|
2329
2333
|
*
|
|
2330
2334
|
* - `Some(Some(value))` → `Some(value)`
|
|
2331
2335
|
* - `Some(None)` → `None`
|
|
@@ -2356,7 +2360,7 @@ export declare const flatten: <A>(self: Option<Option<A>>) => Option<A>;
|
|
|
2356
2360
|
*
|
|
2357
2361
|
* - Running a side-condition that must succeed, then using the second value
|
|
2358
2362
|
*
|
|
2359
|
-
* **
|
|
2363
|
+
* **Details**
|
|
2360
2364
|
*
|
|
2361
2365
|
* - Both `Some` → returns `that`
|
|
2362
2366
|
* - Either `None` → returns `None`
|
|
@@ -2387,7 +2391,7 @@ export declare const zipRight: {
|
|
|
2387
2391
|
*
|
|
2388
2392
|
* - Running a side-condition that must succeed, then using the second value
|
|
2389
2393
|
*
|
|
2390
|
-
* **
|
|
2394
|
+
* **Details**
|
|
2391
2395
|
*
|
|
2392
2396
|
* - Both `Some` → returns `that`
|
|
2393
2397
|
* - Either `None` → returns `None`
|
|
@@ -2418,7 +2422,7 @@ export declare const zipRight: {
|
|
|
2418
2422
|
*
|
|
2419
2423
|
* - Running a side-condition that must succeed, then using the second value
|
|
2420
2424
|
*
|
|
2421
|
-
* **
|
|
2425
|
+
* **Details**
|
|
2422
2426
|
*
|
|
2423
2427
|
* - Both `Some` → returns `that`
|
|
2424
2428
|
* - Either `None` → returns `None`
|
|
@@ -2450,7 +2454,7 @@ export declare const zipRight: {
|
|
|
2450
2454
|
*
|
|
2451
2455
|
* - Running a validation that must succeed, but keeping the original value
|
|
2452
2456
|
*
|
|
2453
|
-
* **
|
|
2457
|
+
* **Details**
|
|
2454
2458
|
*
|
|
2455
2459
|
* - Both `Some` → returns `self`
|
|
2456
2460
|
* - Either `None` → returns `None`
|
|
@@ -2481,7 +2485,7 @@ export declare const zipLeft: {
|
|
|
2481
2485
|
*
|
|
2482
2486
|
* - Running a validation that must succeed, but keeping the original value
|
|
2483
2487
|
*
|
|
2484
|
-
* **
|
|
2488
|
+
* **Details**
|
|
2485
2489
|
*
|
|
2486
2490
|
* - Both `Some` → returns `self`
|
|
2487
2491
|
* - Either `None` → returns `None`
|
|
@@ -2512,7 +2516,7 @@ export declare const zipLeft: {
|
|
|
2512
2516
|
*
|
|
2513
2517
|
* - Running a validation that must succeed, but keeping the original value
|
|
2514
2518
|
*
|
|
2515
|
-
* **
|
|
2519
|
+
* **Details**
|
|
2516
2520
|
*
|
|
2517
2521
|
* - Both `Some` → returns `self`
|
|
2518
2522
|
* - Either `None` → returns `None`
|
|
@@ -2545,7 +2549,7 @@ export declare const zipLeft: {
|
|
|
2545
2549
|
*
|
|
2546
2550
|
* - Building pipelines of partial functions (Kleisli composition)
|
|
2547
2551
|
*
|
|
2548
|
-
* **
|
|
2552
|
+
* **Details**
|
|
2549
2553
|
*
|
|
2550
2554
|
* - Calls `afb(a)`, then if `Some`, calls `bfc` with its value
|
|
2551
2555
|
* - Short-circuits to `None` if either function returns `None`
|
|
@@ -2584,7 +2588,7 @@ export declare const composeK: {
|
|
|
2584
2588
|
*
|
|
2585
2589
|
* - Building pipelines of partial functions (Kleisli composition)
|
|
2586
2590
|
*
|
|
2587
|
-
* **
|
|
2591
|
+
* **Details**
|
|
2588
2592
|
*
|
|
2589
2593
|
* - Calls `afb(a)`, then if `Some`, calls `bfc` with its value
|
|
2590
2594
|
* - Short-circuits to `None` if either function returns `None`
|
|
@@ -2623,7 +2627,7 @@ export declare const composeK: {
|
|
|
2623
2627
|
*
|
|
2624
2628
|
* - Building pipelines of partial functions (Kleisli composition)
|
|
2625
2629
|
*
|
|
2626
|
-
* **
|
|
2630
|
+
* **Details**
|
|
2627
2631
|
*
|
|
2628
2632
|
* - Calls `afb(a)`, then if `Some`, calls `bfc` with its value
|
|
2629
2633
|
* - Short-circuits to `None` if either function returns `None`
|
|
@@ -2665,7 +2669,7 @@ export declare const composeK: {
|
|
|
2665
2669
|
* - Validating a value without transforming it
|
|
2666
2670
|
* - Adding a side-condition check in a pipeline
|
|
2667
2671
|
*
|
|
2668
|
-
* **
|
|
2672
|
+
* **Details**
|
|
2669
2673
|
*
|
|
2670
2674
|
* - `None` → `None`
|
|
2671
2675
|
* - `Some` → calls `f(value)`; if result is `Some`, returns original `self`; if `None`, returns `None`
|
|
@@ -2702,7 +2706,7 @@ export declare const tap: {
|
|
|
2702
2706
|
* - Validating a value without transforming it
|
|
2703
2707
|
* - Adding a side-condition check in a pipeline
|
|
2704
2708
|
*
|
|
2705
|
-
* **
|
|
2709
|
+
* **Details**
|
|
2706
2710
|
*
|
|
2707
2711
|
* - `None` → `None`
|
|
2708
2712
|
* - `Some` → calls `f(value)`; if result is `Some`, returns original `self`; if `None`, returns `None`
|
|
@@ -2739,7 +2743,7 @@ export declare const tap: {
|
|
|
2739
2743
|
* - Validating a value without transforming it
|
|
2740
2744
|
* - Adding a side-condition check in a pipeline
|
|
2741
2745
|
*
|
|
2742
|
-
* **
|
|
2746
|
+
* **Details**
|
|
2743
2747
|
*
|
|
2744
2748
|
* - `None` → `None`
|
|
2745
2749
|
* - `Some` → calls `f(value)`; if result is `Some`, returns original `self`; if `None`, returns `None`
|
|
@@ -2775,7 +2779,7 @@ export declare const tap: {
|
|
|
2775
2779
|
*
|
|
2776
2780
|
* - Pairing two optional values together
|
|
2777
2781
|
*
|
|
2778
|
-
* **
|
|
2782
|
+
* **Details**
|
|
2779
2783
|
*
|
|
2780
2784
|
* - Both `Some` → `Some([a, b])`
|
|
2781
2785
|
* - Either `None` → `None`
|
|
@@ -2807,7 +2811,7 @@ export declare const product: <A, B>(self: Option<A>, that: Option<B>) => Option
|
|
|
2807
2811
|
*
|
|
2808
2812
|
* - Collecting several `Option`s of the same type into a non-empty tuple
|
|
2809
2813
|
*
|
|
2810
|
-
* **
|
|
2814
|
+
* **Details**
|
|
2811
2815
|
*
|
|
2812
2816
|
* - All `Some` → `Some([self.value, ...rest])`
|
|
2813
2817
|
* - Any `None` → `None`
|
|
@@ -2843,7 +2847,7 @@ export declare const productMany: <A>(self: Option<A>, collection: Iterable<Opti
|
|
|
2843
2847
|
* - Collecting multiple `Option`s into one, preserving the input shape
|
|
2844
2848
|
* - "All or nothing" combination — any `None` makes the result `None`
|
|
2845
2849
|
*
|
|
2846
|
-
* **
|
|
2850
|
+
* **Details**
|
|
2847
2851
|
*
|
|
2848
2852
|
* - Tuple input → `Option` of a tuple with the same length
|
|
2849
2853
|
* - Struct input → `Option` of a struct with the same keys
|
|
@@ -2891,7 +2895,7 @@ export declare const all: <const I extends Iterable<Option<any>> | Record<string
|
|
|
2891
2895
|
*
|
|
2892
2896
|
* - Merging two optional values into a computed result
|
|
2893
2897
|
*
|
|
2894
|
-
* **
|
|
2898
|
+
* **Details**
|
|
2895
2899
|
*
|
|
2896
2900
|
* - Both `Some` → applies `f(a, b)` and wraps in `Some`
|
|
2897
2901
|
* - Either `None` → `None`
|
|
@@ -2926,7 +2930,7 @@ export declare const zipWith: {
|
|
|
2926
2930
|
*
|
|
2927
2931
|
* - Merging two optional values into a computed result
|
|
2928
2932
|
*
|
|
2929
|
-
* **
|
|
2933
|
+
* **Details**
|
|
2930
2934
|
*
|
|
2931
2935
|
* - Both `Some` → applies `f(a, b)` and wraps in `Some`
|
|
2932
2936
|
* - Either `None` → `None`
|
|
@@ -2961,7 +2965,7 @@ export declare const zipWith: {
|
|
|
2961
2965
|
*
|
|
2962
2966
|
* - Merging two optional values into a computed result
|
|
2963
2967
|
*
|
|
2964
|
-
* **
|
|
2968
|
+
* **Details**
|
|
2965
2969
|
*
|
|
2966
2970
|
* - Both `Some` → applies `f(a, b)` and wraps in `Some`
|
|
2967
2971
|
* - Either `None` → `None`
|
|
@@ -2997,7 +3001,7 @@ export declare const zipWith: {
|
|
|
2997
3001
|
*
|
|
2998
3002
|
* - Aggregating values from a collection where some may be absent
|
|
2999
3003
|
*
|
|
3000
|
-
* **
|
|
3004
|
+
* **Details**
|
|
3001
3005
|
*
|
|
3002
3006
|
* - Iterates through the collection, applying `f` only to `Some` values
|
|
3003
3007
|
* - `None` values are skipped entirely
|
|
@@ -3025,7 +3029,7 @@ export declare const reduceCompact: {
|
|
|
3025
3029
|
*
|
|
3026
3030
|
* - Aggregating values from a collection where some may be absent
|
|
3027
3031
|
*
|
|
3028
|
-
* **
|
|
3032
|
+
* **Details**
|
|
3029
3033
|
*
|
|
3030
3034
|
* - Iterates through the collection, applying `f` only to `Some` values
|
|
3031
3035
|
* - `None` values are skipped entirely
|
|
@@ -3053,7 +3057,7 @@ export declare const reduceCompact: {
|
|
|
3053
3057
|
*
|
|
3054
3058
|
* - Aggregating values from a collection where some may be absent
|
|
3055
3059
|
*
|
|
3056
|
-
* **
|
|
3060
|
+
* **Details**
|
|
3057
3061
|
*
|
|
3058
3062
|
* - Iterates through the collection, applying `f` only to `Some` values
|
|
3059
3063
|
* - `None` values are skipped entirely
|
|
@@ -3083,7 +3087,7 @@ export declare const reduceCompact: {
|
|
|
3083
3087
|
* - Interfacing with array-based APIs
|
|
3084
3088
|
* - Spreading optional values into collections
|
|
3085
3089
|
*
|
|
3086
|
-
* **
|
|
3090
|
+
* **Details**
|
|
3087
3091
|
*
|
|
3088
3092
|
* - `Some` → single-element array `[value]`
|
|
3089
3093
|
* - `None` → empty array `[]`
|
|
@@ -3113,7 +3117,7 @@ export declare const toArray: <A>(self: Option<A>) => Array<A>;
|
|
|
3113
3117
|
*
|
|
3114
3118
|
* - Categorizing an optional value into "left" (failure) and "right" (success) channels
|
|
3115
3119
|
*
|
|
3116
|
-
* **
|
|
3120
|
+
* **Details**
|
|
3117
3121
|
*
|
|
3118
3122
|
* - `None` → `[None, None]`
|
|
3119
3123
|
* - `Some` where `f` returns `Err` → `[Some(error), None]`
|
|
@@ -3152,7 +3156,7 @@ export declare const partitionMap: {
|
|
|
3152
3156
|
*
|
|
3153
3157
|
* - Categorizing an optional value into "left" (failure) and "right" (success) channels
|
|
3154
3158
|
*
|
|
3155
|
-
* **
|
|
3159
|
+
* **Details**
|
|
3156
3160
|
*
|
|
3157
3161
|
* - `None` → `[None, None]`
|
|
3158
3162
|
* - `Some` where `f` returns `Err` → `[Some(error), None]`
|
|
@@ -3191,7 +3195,7 @@ export declare const partitionMap: {
|
|
|
3191
3195
|
*
|
|
3192
3196
|
* - Categorizing an optional value into "left" (failure) and "right" (success) channels
|
|
3193
3197
|
*
|
|
3194
|
-
* **
|
|
3198
|
+
* **Details**
|
|
3195
3199
|
*
|
|
3196
3200
|
* - `None` → `[None, None]`
|
|
3197
3201
|
* - `Some` where `f` returns `Err` → `[Some(error), None]`
|
|
@@ -3227,6 +3231,8 @@ export declare const partitionMap: {
|
|
|
3227
3231
|
/**
|
|
3228
3232
|
* Transforms and filters an `Option` using a `Filter` callback.
|
|
3229
3233
|
*
|
|
3234
|
+
* **Details**
|
|
3235
|
+
*
|
|
3230
3236
|
* The callback returns a `Result`: `Result.succeed` keeps and transforms the
|
|
3231
3237
|
* value, while `Result.fail` discards it.
|
|
3232
3238
|
*
|
|
@@ -3251,6 +3257,8 @@ export declare const filterMap: {
|
|
|
3251
3257
|
/**
|
|
3252
3258
|
* Transforms and filters an `Option` using a `Filter` callback.
|
|
3253
3259
|
*
|
|
3260
|
+
* **Details**
|
|
3261
|
+
*
|
|
3254
3262
|
* The callback returns a `Result`: `Result.succeed` keeps and transforms the
|
|
3255
3263
|
* value, while `Result.fail` discards it.
|
|
3256
3264
|
*
|
|
@@ -3275,6 +3283,8 @@ export declare const filterMap: {
|
|
|
3275
3283
|
/**
|
|
3276
3284
|
* Transforms and filters an `Option` using a `Filter` callback.
|
|
3277
3285
|
*
|
|
3286
|
+
* **Details**
|
|
3287
|
+
*
|
|
3278
3288
|
* The callback returns a `Result`: `Result.succeed` keeps and transforms the
|
|
3279
3289
|
* value, while `Result.fail` discards it.
|
|
3280
3290
|
*
|
|
@@ -3306,7 +3316,7 @@ export declare const filterMap: {
|
|
|
3306
3316
|
* - Discarding values that don't meet a condition
|
|
3307
3317
|
* - Narrowing the type via a refinement predicate
|
|
3308
3318
|
*
|
|
3309
|
-
* **
|
|
3319
|
+
* **Details**
|
|
3310
3320
|
*
|
|
3311
3321
|
* - `None` → `None`
|
|
3312
3322
|
* - `Some` where `predicate(value)` is `true` → `Some(value)`
|
|
@@ -3347,7 +3357,7 @@ export declare const filter: {
|
|
|
3347
3357
|
* - Discarding values that don't meet a condition
|
|
3348
3358
|
* - Narrowing the type via a refinement predicate
|
|
3349
3359
|
*
|
|
3350
|
-
* **
|
|
3360
|
+
* **Details**
|
|
3351
3361
|
*
|
|
3352
3362
|
* - `None` → `None`
|
|
3353
3363
|
* - `Some` where `predicate(value)` is `true` → `Some(value)`
|
|
@@ -3388,7 +3398,7 @@ export declare const filter: {
|
|
|
3388
3398
|
* - Discarding values that don't meet a condition
|
|
3389
3399
|
* - Narrowing the type via a refinement predicate
|
|
3390
3400
|
*
|
|
3391
|
-
* **
|
|
3401
|
+
* **Details**
|
|
3392
3402
|
*
|
|
3393
3403
|
* - `None` → `None`
|
|
3394
3404
|
* - `Some` where `predicate(value)` is `true` → `Some(value)`
|
|
@@ -3429,7 +3439,7 @@ export declare const filter: {
|
|
|
3429
3439
|
* - Discarding values that don't meet a condition
|
|
3430
3440
|
* - Narrowing the type via a refinement predicate
|
|
3431
3441
|
*
|
|
3432
|
-
* **
|
|
3442
|
+
* **Details**
|
|
3433
3443
|
*
|
|
3434
3444
|
* - `None` → `None`
|
|
3435
3445
|
* - `Some` where `predicate(value)` is `true` → `Some(value)`
|
|
@@ -3470,7 +3480,7 @@ export declare const filter: {
|
|
|
3470
3480
|
* - Discarding values that don't meet a condition
|
|
3471
3481
|
* - Narrowing the type via a refinement predicate
|
|
3472
3482
|
*
|
|
3473
|
-
* **
|
|
3483
|
+
* **Details**
|
|
3474
3484
|
*
|
|
3475
3485
|
* - `None` → `None`
|
|
3476
3486
|
* - `Some` where `predicate(value)` is `true` → `Some(value)`
|
|
@@ -3510,7 +3520,7 @@ export declare const filter: {
|
|
|
3510
3520
|
*
|
|
3511
3521
|
* - Comparing two `Option` values for structural equality
|
|
3512
3522
|
*
|
|
3513
|
-
* **
|
|
3523
|
+
* **Details**
|
|
3514
3524
|
*
|
|
3515
3525
|
* - `None` vs `None` → `true`
|
|
3516
3526
|
* - `Some` vs `None` (or vice versa) → `false`
|
|
@@ -3544,7 +3554,7 @@ export declare const makeEquivalence: <A>(isEquivalent: Equivalence.Equivalence<
|
|
|
3544
3554
|
*
|
|
3545
3555
|
* - Sorting collections of `Option` values
|
|
3546
3556
|
*
|
|
3547
|
-
* **
|
|
3557
|
+
* **Details**
|
|
3548
3558
|
*
|
|
3549
3559
|
* - `None` is considered less than any `Some`
|
|
3550
3560
|
* - Two `Some` values are compared using the provided `Order`
|
|
@@ -3578,7 +3588,7 @@ export declare const makeOrder: <A>(O: Order<A>) => Order<Option<A>>;
|
|
|
3578
3588
|
*
|
|
3579
3589
|
* - Reusing an existing binary function in an `Option` context
|
|
3580
3590
|
*
|
|
3581
|
-
* **
|
|
3591
|
+
* **Details**
|
|
3582
3592
|
*
|
|
3583
3593
|
* - Both `Some` → applies `f` and wraps in `Some`
|
|
3584
3594
|
* - Either `None` → `None`
|
|
@@ -3615,7 +3625,7 @@ export declare const lift2: <A, B, C>(f: (a: A, b: B) => C) => {
|
|
|
3615
3625
|
* - Converting a boolean check into an `Option`-returning function
|
|
3616
3626
|
* - Validating input and wrapping it in `Option`
|
|
3617
3627
|
*
|
|
3618
|
-
* **
|
|
3628
|
+
* **Details**
|
|
3619
3629
|
*
|
|
3620
3630
|
* - `predicate(value)` is `true` → `Some(value)`
|
|
3621
3631
|
* - `predicate(value)` is `false` → `None`
|
|
@@ -3652,7 +3662,7 @@ export declare const liftPredicate: {
|
|
|
3652
3662
|
* - Converting a boolean check into an `Option`-returning function
|
|
3653
3663
|
* - Validating input and wrapping it in `Option`
|
|
3654
3664
|
*
|
|
3655
|
-
* **
|
|
3665
|
+
* **Details**
|
|
3656
3666
|
*
|
|
3657
3667
|
* - `predicate(value)` is `true` → `Some(value)`
|
|
3658
3668
|
* - `predicate(value)` is `false` → `None`
|
|
@@ -3688,7 +3698,7 @@ export declare const liftPredicate: {
|
|
|
3688
3698
|
* - Converting a boolean check into an `Option`-returning function
|
|
3689
3699
|
* - Validating input and wrapping it in `Option`
|
|
3690
3700
|
*
|
|
3691
|
-
* **
|
|
3701
|
+
* **Details**
|
|
3692
3702
|
*
|
|
3693
3703
|
* - `predicate(value)` is `true` → `Some(value)`
|
|
3694
3704
|
* - `predicate(value)` is `false` → `None`
|
|
@@ -3724,7 +3734,7 @@ export declare const liftPredicate: {
|
|
|
3724
3734
|
* - Converting a boolean check into an `Option`-returning function
|
|
3725
3735
|
* - Validating input and wrapping it in `Option`
|
|
3726
3736
|
*
|
|
3727
|
-
* **
|
|
3737
|
+
* **Details**
|
|
3728
3738
|
*
|
|
3729
3739
|
* - `predicate(value)` is `true` → `Some(value)`
|
|
3730
3740
|
* - `predicate(value)` is `false` → `None`
|
|
@@ -3760,7 +3770,7 @@ export declare const liftPredicate: {
|
|
|
3760
3770
|
*
|
|
3761
3771
|
* - Testing membership with a custom equality check
|
|
3762
3772
|
*
|
|
3763
|
-
* **
|
|
3773
|
+
* **Details**
|
|
3764
3774
|
*
|
|
3765
3775
|
* - `Some` where `isEquivalent(value, a)` is `true` → `true`
|
|
3766
3776
|
* - `Some` where not equivalent, or `None` → `false`
|
|
@@ -3799,7 +3809,7 @@ export declare const containsWith: <A>(isEquivalent: (self: A, that: A) => boole
|
|
|
3799
3809
|
*
|
|
3800
3810
|
* - Quick membership test with standard equality
|
|
3801
3811
|
*
|
|
3802
|
-
* **
|
|
3812
|
+
* **Details**
|
|
3803
3813
|
*
|
|
3804
3814
|
* - `Some` where `Equal.equals(value, a)` is `true` → `true`
|
|
3805
3815
|
* - `Some` where not equal, or `None` → `false`
|
|
@@ -3834,7 +3844,7 @@ export declare const contains: {
|
|
|
3834
3844
|
*
|
|
3835
3845
|
* - Quick membership test with standard equality
|
|
3836
3846
|
*
|
|
3837
|
-
* **
|
|
3847
|
+
* **Details**
|
|
3838
3848
|
*
|
|
3839
3849
|
* - `Some` where `Equal.equals(value, a)` is `true` → `true`
|
|
3840
3850
|
* - `Some` where not equal, or `None` → `false`
|
|
@@ -3869,7 +3879,7 @@ export declare const contains: {
|
|
|
3869
3879
|
*
|
|
3870
3880
|
* - Quick membership test with standard equality
|
|
3871
3881
|
*
|
|
3872
|
-
* **
|
|
3882
|
+
* **Details**
|
|
3873
3883
|
*
|
|
3874
3884
|
* - `Some` where `Equal.equals(value, a)` is `true` → `true`
|
|
3875
3885
|
* - `Some` where not equal, or `None` → `false`
|
|
@@ -3904,7 +3914,7 @@ export declare const contains: {
|
|
|
3904
3914
|
*
|
|
3905
3915
|
* - Checking a condition on an optional value without unwrapping
|
|
3906
3916
|
*
|
|
3907
|
-
* **
|
|
3917
|
+
* **Details**
|
|
3908
3918
|
*
|
|
3909
3919
|
* - `None` → `false`
|
|
3910
3920
|
* - `Some` where `predicate(value)` is `true` → `true`
|
|
@@ -3942,7 +3952,7 @@ export declare const exists: {
|
|
|
3942
3952
|
*
|
|
3943
3953
|
* - Checking a condition on an optional value without unwrapping
|
|
3944
3954
|
*
|
|
3945
|
-
* **
|
|
3955
|
+
* **Details**
|
|
3946
3956
|
*
|
|
3947
3957
|
* - `None` → `false`
|
|
3948
3958
|
* - `Some` where `predicate(value)` is `true` → `true`
|
|
@@ -3980,7 +3990,7 @@ export declare const exists: {
|
|
|
3980
3990
|
*
|
|
3981
3991
|
* - Checking a condition on an optional value without unwrapping
|
|
3982
3992
|
*
|
|
3983
|
-
* **
|
|
3993
|
+
* **Details**
|
|
3984
3994
|
*
|
|
3985
3995
|
* - `None` → `false`
|
|
3986
3996
|
* - `Some` where `predicate(value)` is `true` → `true`
|
|
@@ -4018,7 +4028,7 @@ export declare const exists: {
|
|
|
4018
4028
|
*
|
|
4019
4029
|
* - Checking a condition on an optional value without unwrapping
|
|
4020
4030
|
*
|
|
4021
|
-
* **
|
|
4031
|
+
* **Details**
|
|
4022
4032
|
*
|
|
4023
4033
|
* - `None` → `false`
|
|
4024
4034
|
* - `Some` where `predicate(value)` is `true` → `true`
|
|
@@ -4056,7 +4066,7 @@ export declare const exists: {
|
|
|
4056
4066
|
*
|
|
4057
4067
|
* - Checking a condition on an optional value without unwrapping
|
|
4058
4068
|
*
|
|
4059
|
-
* **
|
|
4069
|
+
* **Details**
|
|
4060
4070
|
*
|
|
4061
4071
|
* - `None` → `false`
|
|
4062
4072
|
* - `Some` where `predicate(value)` is `true` → `true`
|
|
@@ -4367,7 +4377,7 @@ export declare const Do: Option<{}>;
|
|
|
4367
4377
|
* - Writing imperative-style code that chains multiple `Option`s
|
|
4368
4378
|
* - Readability when many sequential optional steps are involved
|
|
4369
4379
|
*
|
|
4370
|
-
* **
|
|
4380
|
+
* **Details**
|
|
4371
4381
|
*
|
|
4372
4382
|
* - Each `yield*` unwraps a `Some` value or short-circuits to `None`
|
|
4373
4383
|
* - The return value is wrapped in `Some`
|
|
@@ -4407,7 +4417,7 @@ export declare const gen: Gen.Gen<OptionTypeLambda>;
|
|
|
4407
4417
|
* - Building a reducer that falls back to the first available value
|
|
4408
4418
|
* - Combining optional values where either side may be absent
|
|
4409
4419
|
*
|
|
4410
|
-
* **
|
|
4420
|
+
* **Details**
|
|
4411
4421
|
*
|
|
4412
4422
|
* - `None` + `None` → `None`
|
|
4413
4423
|
* - `Some(a)` + `None` → `Some(a)`
|
|
@@ -4439,7 +4449,7 @@ export declare function makeReducer<A>(combiner: Combiner.Combiner<A>): Reducer.
|
|
|
4439
4449
|
*
|
|
4440
4450
|
* - Operations that require both values to be present
|
|
4441
4451
|
*
|
|
4442
|
-
* **
|
|
4452
|
+
* **Details**
|
|
4443
4453
|
*
|
|
4444
4454
|
* - `None` + anything → `None`
|
|
4445
4455
|
* - anything + `None` → `None`
|
|
@@ -4473,7 +4483,7 @@ export declare function makeCombinerFailFast<A>(combiner: Combiner.Combiner<A>):
|
|
|
4473
4483
|
* - Wrapping an existing `Reducer` to work with `Option` values
|
|
4474
4484
|
* - Reductions where any `None` should abort the entire result
|
|
4475
4485
|
*
|
|
4476
|
-
* **
|
|
4486
|
+
* **Details**
|
|
4477
4487
|
*
|
|
4478
4488
|
* - Initial value is `Some(reducer.initialValue)`
|
|
4479
4489
|
* - Combines only when both operands are `Some`
|