effect 4.0.0-beta.67 → 4.0.0-beta.68
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 +41 -42
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +23 -23
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +265 -265
- package/dist/BigDecimal.js +128 -128
- package/dist/BigInt.d.ts +175 -177
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +81 -79
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +127 -125
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +55 -53
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +10 -4
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +3 -2
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +36 -36
- package/dist/Cache.js +17 -17
- package/dist/Cause.d.ts +17 -18
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +12 -12
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +234 -241
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +97 -101
- package/dist/Channel.js.map +1 -1
- package/dist/Chunk.d.ts +33 -56
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +17 -26
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +1 -1
- package/dist/Clock.js +1 -1
- package/dist/Combiner.d.ts +9 -1
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +8 -0
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +78 -68
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +53 -49
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +33 -32
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +19 -18
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +19 -19
- package/dist/Console.js +19 -19
- package/dist/Context.d.ts +70 -108
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +30 -44
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +3 -5
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +3 -5
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +208 -0
- package/dist/Crypto.d.ts.map +1 -0
- package/dist/Crypto.js +157 -0
- package/dist/Crypto.js.map +1 -0
- package/dist/Data.d.ts +6 -1
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +29 -31
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +19 -19
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +8 -9
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +6 -6
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +2 -2
- package/dist/Duration.d.ts +30 -27
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +15 -12
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +394 -652
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +157 -247
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +2 -2
- package/dist/Effectable.js +2 -2
- package/dist/Encoding.d.ts +9 -9
- package/dist/Encoding.js +9 -9
- package/dist/Equal.d.ts +4 -3
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +4 -3
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +4 -5
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +2 -2
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +14 -14
- package/dist/ErrorReporter.js +9 -9
- package/dist/ExecutionPlan.d.ts +18 -9
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +6 -4
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +0 -1
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +1 -2
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +1 -1
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +5 -5
- package/dist/FiberHandle.js +3 -3
- package/dist/FiberMap.d.ts +10 -10
- package/dist/FiberMap.js +4 -4
- package/dist/FiberSet.d.ts +4 -4
- package/dist/FiberSet.js +2 -2
- package/dist/FileSystem.d.ts +10 -12
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +3 -3
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +54 -54
- package/dist/Filter.js +28 -28
- package/dist/Formatter.d.ts +4 -2
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +3 -69
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +64 -65
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +41 -41
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +157 -175
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +72 -80
- package/dist/Graph.js.map +1 -1
- package/dist/Hash.d.ts +4 -6
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +2 -2
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +121 -157
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +47 -59
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +34 -34
- package/dist/HashRing.js +16 -16
- package/dist/HashSet.d.ts +51 -55
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js +19 -20
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +6 -4
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +6 -4
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +37 -83
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +21 -39
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +8 -6
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +5 -3
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +13 -11
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +13 -11
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts +16 -0
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +10 -0
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +4 -16
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +2 -14
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +94 -135
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +44 -61
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +15 -16
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +6 -6
- package/dist/LogLevel.d.ts +13 -13
- package/dist/LogLevel.js +4 -4
- package/dist/Logger.d.ts +10 -11
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +10 -11
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +5 -4
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +4 -3
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +2 -4
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +1 -2
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +48 -50
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +22 -22
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +30 -30
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +15 -14
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +0 -2
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +23 -24
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +17 -19
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +0 -1
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +12 -2
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +8 -2
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +5 -12
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +3 -8
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +145 -141
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +65 -61
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +5 -5
- package/dist/Optic.js +5 -5
- package/dist/Option.d.ts +105 -109
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +50 -52
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +6 -6
- package/dist/Order.js +6 -6
- package/dist/Ordering.d.ts +15 -19
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +6 -6
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +3 -3
- package/dist/PartitionedSemaphore.js +2 -2
- package/dist/Path.d.ts +4 -4
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +2 -1
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +10 -7
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +6 -4
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +3 -3
- package/dist/PlatformError.js +2 -2
- package/dist/Predicate.d.ts +2 -4
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +3 -3
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +2 -1
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +2 -1
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +25 -51
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +17 -35
- package/dist/PubSub.js.map +1 -1
- package/dist/Queue.d.ts +45 -60
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +27 -33
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +27 -38
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +17 -54
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +11 -11
- package/dist/RcMap.js +3 -3
- package/dist/RcRef.d.ts +0 -1
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +9 -8
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +7 -5
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +7 -5
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +5 -3
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +2 -3
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +2 -2
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +3 -1
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +2 -0
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +7 -17
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +5 -12
- package/dist/Ref.js.map +1 -1
- package/dist/RegExp.d.ts +1 -1
- package/dist/RegExp.js +1 -1
- package/dist/Request.d.ts +2 -1
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +1 -0
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +2 -3
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +1 -1
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +1 -1
- package/dist/Resource.js +1 -1
- package/dist/Result.d.ts +124 -142
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +51 -63
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +2 -7
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +1 -3
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +69 -72
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +31 -33
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +2 -2
- package/dist/Scheduler.js +2 -2
- package/dist/Schema.d.ts +491 -321
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +220 -172
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +98 -77
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +89 -68
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +23 -23
- package/dist/SchemaGetter.js +20 -20
- package/dist/SchemaIssue.d.ts +18 -16
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +16 -14
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +39 -40
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +48 -51
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +89 -77
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +47 -37
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +36 -5
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +33 -5
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts +1 -1
- package/dist/SchemaUtils.js +1 -1
- package/dist/Scope.d.ts +12 -29
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +6 -11
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +37 -37
- package/dist/ScopedCache.js +17 -17
- package/dist/Semaphore.d.ts +4 -16
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +2 -14
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +36 -39
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +18 -18
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +6 -6
- package/dist/Stdio.js +4 -4
- package/dist/Stream.d.ts +671 -808
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +289 -363
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +3 -2
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +3 -2
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +20 -18
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +10 -8
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +2 -2
- package/dist/SubscriptionRef.js +2 -2
- package/dist/Symbol.d.ts +3 -3
- package/dist/Symbol.js +3 -3
- package/dist/SynchronizedRef.d.ts +1 -1
- package/dist/SynchronizedRef.js +1 -1
- package/dist/Take.d.ts +2 -2
- package/dist/Take.js +1 -1
- package/dist/Terminal.d.ts +5 -5
- package/dist/Terminal.js +2 -2
- package/dist/Tracer.d.ts +9 -9
- package/dist/Tracer.js +2 -2
- package/dist/Trie.d.ts +70 -106
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +29 -43
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +34 -32
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +16 -14
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +27 -18
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +15 -10
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +11 -11
- package/dist/TxDeferred.js +5 -5
- package/dist/TxHashMap.d.ts +60 -61
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +23 -23
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +28 -32
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +13 -16
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +30 -30
- package/dist/TxPriorityQueue.js +18 -18
- package/dist/TxPubSub.d.ts +18 -18
- package/dist/TxPubSub.js +14 -14
- package/dist/TxQueue.d.ts +26 -29
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +17 -17
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +21 -21
- package/dist/TxReentrantLock.js +15 -15
- package/dist/TxRef.d.ts +24 -24
- package/dist/TxRef.js +11 -11
- package/dist/TxSemaphore.d.ts +13 -74
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +9 -52
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +24 -24
- package/dist/TxSubscriptionRef.js +11 -11
- package/dist/Types.d.ts +1 -4
- package/dist/Types.d.ts.map +1 -1
- package/dist/UndefinedOr.d.ts +14 -0
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +8 -0
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +8 -8
- package/dist/Unify.js +1 -1
- package/dist/Utils.d.ts +1 -2
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js.map +1 -1
- package/dist/index.d.ts +1917 -411
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1917 -411
- package/dist/index.js.map +1 -1
- package/dist/testing/FastCheck.d.ts +3 -3
- package/dist/testing/FastCheck.js +3 -3
- package/dist/testing/TestClock.d.ts +2 -3
- package/dist/testing/TestClock.d.ts.map +1 -1
- package/dist/testing/TestClock.js +1 -1
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +8 -9
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js +5 -5
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +2 -0
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +2 -0
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/testing/index.d.ts +34 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +34 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +10 -19
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +0 -9
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts +0 -1
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +3 -0
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +2 -0
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +3 -1
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +1 -1
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +2 -6
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +2 -2
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +8 -10
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +4 -4
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +20 -20
- package/dist/unstable/ai/ResponseIdTracker.d.ts +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +5 -5
- package/dist/unstable/ai/Telemetry.js +3 -3
- package/dist/unstable/ai/Tokenizer.d.ts +1 -1
- package/dist/unstable/ai/Tool.d.ts +14 -12
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +10 -9
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/index.d.ts +79 -5
- package/dist/unstable/ai/index.d.ts.map +1 -1
- package/dist/unstable/ai/index.js +79 -5
- package/dist/unstable/ai/index.js.map +1 -1
- package/dist/unstable/cli/CliOutput.d.ts +5 -6
- package/dist/unstable/cli/CliOutput.d.ts.map +1 -1
- package/dist/unstable/cli/CliOutput.js +2 -3
- package/dist/unstable/cli/CliOutput.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +3 -3
- package/dist/unstable/cli/Command.js +1 -1
- package/dist/unstable/cli/HelpDoc.d.ts +4 -4
- package/dist/unstable/cli/Param.d.ts +31 -1
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +37 -38
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +1 -1
- package/dist/unstable/cli/Primitive.js +1 -1
- package/dist/unstable/cli/Prompt.d.ts +6 -14
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +2 -2
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/index.d.ts +182 -0
- package/dist/unstable/cli/index.d.ts.map +1 -1
- package/dist/unstable/cli/index.js +205 -6
- package/dist/unstable/cli/index.js.map +1 -1
- package/dist/unstable/cli/internal/parser.js +0 -1
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +1 -1
- package/dist/unstable/cluster/ClusterCron.js +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +8 -8
- package/dist/unstable/cluster/ClusterSchema.js +8 -8
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +2 -2
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +2 -2
- package/dist/unstable/cluster/Entity.d.ts +0 -1
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityProxy.d.ts +10 -14
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.js +8 -14
- package/dist/unstable/cluster/EntityProxy.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts +3 -2
- package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js +2 -2
- package/dist/unstable/cluster/EntityResource.d.ts +2 -2
- package/dist/unstable/cluster/EntityResource.js +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +1 -1
- package/dist/unstable/cluster/Envelope.js +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +11 -11
- package/dist/unstable/cluster/HttpRunner.js +11 -11
- package/dist/unstable/cluster/K8sHttpClient.d.ts +5 -5
- package/dist/unstable/cluster/K8sHttpClient.js +5 -5
- package/dist/unstable/cluster/MachineId.d.ts +1 -1
- package/dist/unstable/cluster/MachineId.js +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +1 -2
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +1 -1
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +1 -1
- package/dist/unstable/cluster/Runner.js +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +2 -2
- package/dist/unstable/cluster/RunnerHealth.js +2 -2
- package/dist/unstable/cluster/RunnerServer.d.ts +4 -4
- package/dist/unstable/cluster/RunnerServer.js +4 -4
- package/dist/unstable/cluster/Runners.d.ts +3 -3
- package/dist/unstable/cluster/Runners.js +3 -3
- package/dist/unstable/cluster/ShardId.d.ts +7 -5
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +6 -4
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Sharding.js +1 -1
- package/dist/unstable/cluster/ShardingConfig.d.ts +2 -2
- package/dist/unstable/cluster/ShardingConfig.js +2 -2
- package/dist/unstable/cluster/SingleRunner.d.ts +1 -1
- package/dist/unstable/cluster/SingleRunner.js +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +10 -9
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +4 -3
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.d.ts +2 -2
- package/dist/unstable/cluster/SocketRunner.js +2 -2
- package/dist/unstable/cluster/SqlMessageStorage.d.ts +3 -3
- package/dist/unstable/cluster/SqlMessageStorage.js +3 -3
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts +3 -3
- package/dist/unstable/cluster/SqlRunnerStorage.js +3 -3
- package/dist/unstable/cluster/TestRunner.d.ts +1 -1
- package/dist/unstable/cluster/TestRunner.js +1 -1
- package/dist/unstable/cluster/index.d.ts +790 -0
- package/dist/unstable/cluster/index.d.ts.map +1 -1
- package/dist/unstable/cluster/index.js +790 -0
- package/dist/unstable/cluster/index.js.map +1 -1
- package/dist/unstable/devtools/index.d.ts +58 -0
- package/dist/unstable/devtools/index.d.ts.map +1 -1
- package/dist/unstable/devtools/index.js +58 -0
- package/dist/unstable/devtools/index.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +16 -16
- package/dist/unstable/encoding/Sse.js +11 -11
- package/dist/unstable/encoding/index.d.ts +49 -0
- package/dist/unstable/encoding/index.d.ts.map +1 -1
- package/dist/unstable/encoding/index.js +49 -0
- package/dist/unstable/encoding/index.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts +2 -2
- package/dist/unstable/eventlog/Event.js +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +2 -2
- package/dist/unstable/eventlog/EventGroup.js +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +6 -7
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +4 -4
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +2 -2
- package/dist/unstable/eventlog/EventLogRemote.js +2 -2
- package/dist/unstable/eventlog/EventLogServer.d.ts +2 -2
- package/dist/unstable/eventlog/EventLogServer.js +2 -2
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +2 -2
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +2 -2
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +1 -1
- package/dist/unstable/eventlog/index.d.ts +240 -0
- package/dist/unstable/eventlog/index.d.ts.map +1 -1
- package/dist/unstable/eventlog/index.js +240 -0
- package/dist/unstable/eventlog/index.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +6 -6
- package/dist/unstable/http/Cookies.js +4 -4
- package/dist/unstable/http/Etag.d.ts +2 -2
- package/dist/unstable/http/Etag.js +2 -2
- package/dist/unstable/http/Headers.d.ts +2 -2
- package/dist/unstable/http/Headers.js +1 -1
- package/dist/unstable/http/HttpClient.d.ts +5 -6
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +5 -4
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientError.d.ts +1 -1
- package/dist/unstable/http/HttpClientError.js +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +4 -4
- package/dist/unstable/http/HttpClientRequest.js +4 -4
- package/dist/unstable/http/HttpClientResponse.d.ts +6 -6
- package/dist/unstable/http/HttpClientResponse.js +6 -6
- package/dist/unstable/http/HttpEffect.d.ts +5 -5
- package/dist/unstable/http/HttpEffect.js +5 -5
- package/dist/unstable/http/HttpIncomingMessage.d.ts +7 -6
- package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.js +7 -6
- package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
- package/dist/unstable/http/HttpMethod.d.ts +4 -2
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +4 -1
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts +1 -0
- package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/unstable/http/HttpMiddleware.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +23 -25
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +23 -22
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +4 -1
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +4 -1
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +15 -15
- package/dist/unstable/http/HttpServerRequest.js +15 -15
- package/dist/unstable/http/HttpServerRespondable.d.ts +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +5 -4
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +5 -4
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpStaticServer.d.ts +2 -4
- package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpStaticServer.js +2 -4
- package/dist/unstable/http/HttpStaticServer.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +20 -19
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +19 -17
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Template.d.ts +0 -1
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/Url.d.ts +17 -17
- package/dist/unstable/http/Url.js +8 -8
- package/dist/unstable/http/UrlParams.d.ts +14 -12
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +12 -10
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/http/index.d.ts +452 -0
- package/dist/unstable/http/index.d.ts.map +1 -1
- package/dist/unstable/http/index.js +452 -0
- package/dist/unstable/http/index.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +0 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts +0 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +4 -2
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +3 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +2 -2
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +19 -8
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +11 -8
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +0 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts +0 -2
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +0 -2
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/index.d.ts +310 -25
- package/dist/unstable/httpapi/index.d.ts.map +1 -1
- package/dist/unstable/httpapi/index.js +310 -25
- package/dist/unstable/httpapi/index.js.map +1 -1
- package/dist/unstable/observability/Otlp.d.ts +3 -3
- package/dist/unstable/observability/Otlp.js +3 -3
- package/dist/unstable/observability/OtlpExporter.d.ts +1 -1
- package/dist/unstable/observability/OtlpExporter.js +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts +3 -2
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +2 -2
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts +5 -4
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js +2 -2
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts +9 -9
- package/dist/unstable/observability/OtlpResource.js +2 -2
- package/dist/unstable/observability/OtlpSerialization.d.ts +3 -3
- package/dist/unstable/observability/OtlpSerialization.js +3 -3
- package/dist/unstable/observability/OtlpTracer.d.ts +5 -2
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +2 -2
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +7 -7
- package/dist/unstable/observability/PrometheusMetrics.js +2 -2
- package/dist/unstable/observability/index.d.ts +158 -2
- package/dist/unstable/observability/index.d.ts.map +1 -1
- package/dist/unstable/observability/index.js +158 -2
- package/dist/unstable/observability/index.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +4 -4
- package/dist/unstable/persistence/KeyValueStore.js +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +11 -11
- package/dist/unstable/persistence/Persistable.js +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +2 -2
- package/dist/unstable/persistence/PersistedCache.js +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +6 -6
- package/dist/unstable/persistence/PersistedQueue.js +3 -3
- package/dist/unstable/persistence/Persistence.d.ts +2 -1
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.js +2 -1
- package/dist/unstable/persistence/Persistence.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +19 -15
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +14 -10
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts +3 -3
- package/dist/unstable/persistence/Redis.js +3 -3
- package/dist/unstable/persistence/index.d.ts +147 -0
- package/dist/unstable/persistence/index.d.ts.map +1 -1
- package/dist/unstable/persistence/index.js +147 -0
- package/dist/unstable/persistence/index.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +41 -41
- package/dist/unstable/process/ChildProcess.js +11 -11
- package/dist/unstable/process/ChildProcessSpawner.d.ts +10 -10
- package/dist/unstable/process/ChildProcessSpawner.js +5 -5
- package/dist/unstable/reactivity/AsyncResult.d.ts +8 -6
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +3 -3
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +25 -20
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +12 -12
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +2 -2
- package/dist/unstable/reactivity/AtomHttpApi.js +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts +2 -2
- package/dist/unstable/reactivity/AtomRef.js +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +16 -16
- package/dist/unstable/reactivity/AtomRegistry.js +7 -7
- package/dist/unstable/reactivity/AtomRpc.d.ts +2 -2
- package/dist/unstable/reactivity/AtomRpc.js +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +2 -3
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +2 -3
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/reactivity/index.d.ts +167 -0
- package/dist/unstable/reactivity/index.d.ts.map +1 -1
- package/dist/unstable/reactivity/index.js +167 -0
- package/dist/unstable/reactivity/index.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +0 -1
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts +0 -1
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.d.ts +2 -2
- package/dist/unstable/rpc/RpcClientError.js +2 -2
- package/dist/unstable/rpc/RpcMiddleware.d.ts +2 -2
- package/dist/unstable/rpc/RpcMiddleware.js +1 -1
- package/dist/unstable/rpc/RpcWorker.d.ts +0 -1
- package/dist/unstable/rpc/RpcWorker.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcWorker.js.map +1 -1
- package/dist/unstable/rpc/Utils.d.ts +2 -0
- package/dist/unstable/rpc/Utils.d.ts.map +1 -1
- package/dist/unstable/rpc/Utils.js +2 -0
- package/dist/unstable/rpc/Utils.js.map +1 -1
- package/dist/unstable/rpc/index.d.ts +272 -0
- package/dist/unstable/rpc/index.d.ts.map +1 -1
- package/dist/unstable/rpc/index.js +272 -0
- package/dist/unstable/rpc/index.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +63 -8
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +44 -5
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +1 -4
- package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
- package/dist/unstable/schema/VariantSchema.js +1 -1
- package/dist/unstable/schema/VariantSchema.js.map +1 -1
- package/dist/unstable/schema/index.d.ts +37 -0
- package/dist/unstable/schema/index.d.ts.map +1 -1
- package/dist/unstable/schema/index.js +37 -0
- package/dist/unstable/schema/index.js.map +1 -1
- package/dist/unstable/socket/Socket.d.ts +5 -4
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +4 -3
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/socket/index.d.ts +44 -0
- package/dist/unstable/socket/index.d.ts.map +1 -1
- package/dist/unstable/socket/index.js +44 -0
- package/dist/unstable/socket/index.js.map +1 -1
- package/dist/unstable/sql/Migrator.d.ts +5 -5
- package/dist/unstable/sql/Migrator.js +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +4 -0
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +2 -0
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.d.ts +3 -3
- package/dist/unstable/sql/SqlError.d.ts +18 -0
- package/dist/unstable/sql/SqlError.d.ts.map +1 -1
- package/dist/unstable/sql/SqlError.js +17 -0
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/sql/SqlModel.d.ts +0 -1
- package/dist/unstable/sql/SqlModel.d.ts.map +1 -1
- package/dist/unstable/sql/SqlModel.js.map +1 -1
- package/dist/unstable/sql/SqlSchema.d.ts +5 -5
- package/dist/unstable/sql/SqlSchema.js +5 -5
- package/dist/unstable/sql/SqlStream.d.ts +1 -0
- package/dist/unstable/sql/SqlStream.d.ts.map +1 -1
- package/dist/unstable/sql/SqlStream.js +1 -0
- package/dist/unstable/sql/SqlStream.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +27 -24
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js +9 -6
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/sql/index.d.ts +178 -0
- package/dist/unstable/sql/index.d.ts.map +1 -1
- package/dist/unstable/sql/index.js +178 -0
- package/dist/unstable/sql/index.js.map +1 -1
- package/dist/unstable/workers/Transferable.d.ts +7 -7
- package/dist/unstable/workers/Transferable.js +4 -4
- package/dist/unstable/workers/Worker.d.ts +1 -0
- package/dist/unstable/workers/Worker.d.ts.map +1 -1
- package/dist/unstable/workers/Worker.js +1 -0
- package/dist/unstable/workers/Worker.js.map +1 -1
- package/dist/unstable/workers/WorkerError.d.ts +8 -8
- package/dist/unstable/workers/WorkerError.js +7 -7
- package/dist/unstable/workers/index.d.ts +80 -0
- package/dist/unstable/workers/index.d.ts.map +1 -1
- package/dist/unstable/workers/index.js +80 -0
- package/dist/unstable/workers/index.js.map +1 -1
- package/dist/unstable/workflow/Activity.d.ts +7 -7
- package/dist/unstable/workflow/Activity.js +2 -2
- package/dist/unstable/workflow/DurableClock.d.ts +2 -2
- package/dist/unstable/workflow/DurableClock.js +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +22 -20
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +8 -7
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts +7 -5
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +5 -3
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +12 -10
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +3 -3
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +4 -4
- package/dist/unstable/workflow/WorkflowEngine.js +4 -4
- package/dist/unstable/workflow/WorkflowProxy.d.ts +10 -12
- package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.js +8 -12
- package/dist/unstable/workflow/WorkflowProxy.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.d.ts +3 -2
- package/dist/unstable/workflow/WorkflowProxyServer.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.js +2 -2
- package/dist/unstable/workflow/index.d.ts +160 -0
- package/dist/unstable/workflow/index.d.ts.map +1 -1
- package/dist/unstable/workflow/index.js +160 -0
- package/dist/unstable/workflow/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +41 -42
- package/src/BigDecimal.ts +265 -265
- package/src/BigInt.ts +175 -177
- package/src/Boolean.ts +127 -125
- package/src/Brand.ts +10 -4
- package/src/Cache.ts +42 -42
- package/src/Cause.ts +17 -18
- package/src/Channel.ts +250 -256
- package/src/Chunk.ts +33 -56
- package/src/Clock.ts +1 -1
- package/src/Combiner.ts +9 -1
- package/src/Config.ts +78 -68
- package/src/ConfigProvider.ts +33 -32
- package/src/Console.ts +23 -23
- package/src/Context.ts +70 -108
- package/src/Cron.ts +3 -5
- package/src/Crypto.ts +327 -0
- package/src/Data.ts +6 -1
- package/src/DateTime.ts +29 -31
- package/src/Deferred.ts +8 -9
- package/src/Differ.ts +2 -2
- package/src/Duration.ts +30 -27
- package/src/Effect.ts +402 -660
- package/src/Effectable.ts +2 -2
- package/src/Encoding.ts +9 -9
- package/src/Equal.ts +4 -3
- package/src/Equivalence.ts +4 -5
- package/src/ErrorReporter.ts +14 -14
- package/src/ExecutionPlan.ts +18 -9
- package/src/Exit.ts +0 -1
- package/src/Fiber.ts +1 -2
- package/src/FiberHandle.ts +5 -5
- package/src/FiberMap.ts +10 -10
- package/src/FiberSet.ts +4 -4
- package/src/FileSystem.ts +10 -12
- package/src/Filter.ts +54 -54
- package/src/Formatter.ts +4 -70
- package/src/Function.ts +64 -65
- package/src/Graph.ts +157 -175
- package/src/Hash.ts +4 -6
- package/src/HashMap.ts +121 -157
- package/src/HashRing.ts +34 -34
- package/src/HashSet.ts +51 -55
- package/src/Inspectable.ts +8 -7
- package/src/Iterable.ts +37 -83
- package/src/JsonPatch.ts +9 -7
- package/src/JsonPointer.ts +13 -11
- package/src/JsonSchema.ts +16 -0
- package/src/Latch.ts +4 -16
- package/src/Layer.ts +94 -135
- package/src/LayerMap.ts +15 -16
- package/src/LogLevel.ts +13 -13
- package/src/Logger.ts +16 -17
- package/src/ManagedRuntime.ts +5 -4
- package/src/Match.ts +2 -4
- package/src/Metric.ts +56 -58
- package/src/MutableHashMap.ts +42 -44
- package/src/MutableHashSet.ts +0 -2
- package/src/MutableList.ts +23 -26
- package/src/MutableRef.ts +0 -1
- package/src/Newtype.ts +12 -2
- package/src/NonEmptyIterable.ts +5 -12
- package/src/Number.ts +145 -141
- package/src/Optic.ts +5 -5
- package/src/Option.ts +105 -109
- package/src/Order.ts +6 -6
- package/src/Ordering.ts +15 -19
- package/src/PartitionedSemaphore.ts +3 -3
- package/src/Path.ts +4 -4
- package/src/Pipeable.ts +10 -7
- package/src/PlatformError.ts +3 -3
- package/src/Predicate.ts +3 -5
- package/src/PrimaryKey.ts +2 -1
- package/src/PubSub.ts +25 -51
- package/src/Queue.ts +45 -60
- package/src/Random.ts +31 -74
- package/src/RcMap.ts +11 -11
- package/src/RcRef.ts +0 -1
- package/src/Record.ts +9 -8
- package/src/Redactable.ts +7 -5
- package/src/Redacted.ts +2 -3
- package/src/Reducer.ts +3 -1
- package/src/Ref.ts +15 -33
- package/src/RegExp.ts +1 -1
- package/src/Request.ts +2 -1
- package/src/RequestResolver.ts +2 -3
- package/src/Resource.ts +1 -1
- package/src/Result.ts +124 -142
- package/src/Runtime.ts +2 -7
- package/src/Schedule.ts +74 -77
- package/src/Scheduler.ts +2 -2
- package/src/Schema.ts +491 -321
- package/src/SchemaAST.ts +98 -77
- package/src/SchemaGetter.ts +23 -23
- package/src/SchemaIssue.ts +18 -16
- package/src/SchemaParser.ts +46 -49
- package/src/SchemaRepresentation.ts +89 -77
- package/src/SchemaTransformation.ts +36 -5
- package/src/SchemaUtils.ts +1 -1
- package/src/Scope.ts +12 -29
- package/src/ScopedCache.ts +43 -43
- package/src/Semaphore.ts +4 -16
- package/src/Sink.ts +36 -39
- package/src/Stdio.ts +6 -6
- package/src/Stream.ts +789 -828
- package/src/String.ts +3 -2
- package/src/Struct.ts +20 -18
- package/src/SubscriptionRef.ts +2 -2
- package/src/Symbol.ts +3 -3
- package/src/SynchronizedRef.ts +1 -1
- package/src/Take.ts +2 -2
- package/src/Terminal.ts +5 -5
- package/src/Tracer.ts +9 -9
- package/src/Trie.ts +70 -106
- package/src/Tuple.ts +34 -32
- package/src/TxChunk.ts +27 -18
- package/src/TxDeferred.ts +11 -11
- package/src/TxHashMap.ts +62 -63
- package/src/TxHashSet.ts +38 -42
- package/src/TxPriorityQueue.ts +31 -31
- package/src/TxPubSub.ts +18 -18
- package/src/TxQueue.ts +26 -29
- package/src/TxReentrantLock.ts +21 -21
- package/src/TxRef.ts +24 -24
- package/src/TxSemaphore.ts +13 -74
- package/src/TxSubscriptionRef.ts +24 -24
- package/src/Types.ts +1 -4
- package/src/UndefinedOr.ts +14 -0
- package/src/Unify.ts +8 -8
- package/src/Utils.ts +1 -2
- package/src/index.ts +1915 -408
- package/src/testing/FastCheck.ts +3 -3
- package/src/testing/TestClock.ts +2 -3
- package/src/testing/TestConsole.ts +8 -9
- package/src/testing/TestSchema.ts +2 -0
- package/src/testing/index.ts +34 -0
- package/src/unstable/ai/AiError.ts +10 -19
- package/src/unstable/ai/Chat.ts +0 -1
- package/src/unstable/ai/McpSchema.ts +3 -0
- package/src/unstable/ai/McpServer.ts +3 -1
- package/src/unstable/ai/Model.ts +2 -6
- package/src/unstable/ai/Prompt.ts +8 -10
- package/src/unstable/ai/Response.ts +20 -20
- package/src/unstable/ai/ResponseIdTracker.ts +1 -1
- package/src/unstable/ai/Telemetry.ts +5 -5
- package/src/unstable/ai/Tokenizer.ts +1 -1
- package/src/unstable/ai/Tool.ts +14 -12
- package/src/unstable/ai/index.ts +79 -5
- package/src/unstable/cli/CliOutput.ts +5 -6
- package/src/unstable/cli/Command.ts +3 -3
- package/src/unstable/cli/HelpDoc.ts +4 -4
- package/src/unstable/cli/Param.ts +69 -72
- package/src/unstable/cli/Primitive.ts +1 -1
- package/src/unstable/cli/Prompt.ts +6 -14
- package/src/unstable/cli/index.ts +205 -6
- package/src/unstable/cli/internal/parser.ts +0 -1
- package/src/unstable/cluster/ClusterCron.ts +1 -1
- package/src/unstable/cluster/ClusterSchema.ts +8 -8
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +2 -2
- package/src/unstable/cluster/Entity.ts +0 -1
- package/src/unstable/cluster/EntityProxy.ts +10 -14
- package/src/unstable/cluster/EntityProxyServer.ts +3 -2
- package/src/unstable/cluster/EntityResource.ts +2 -2
- package/src/unstable/cluster/Envelope.ts +1 -1
- package/src/unstable/cluster/HttpRunner.ts +11 -11
- package/src/unstable/cluster/K8sHttpClient.ts +5 -5
- package/src/unstable/cluster/MachineId.ts +1 -1
- package/src/unstable/cluster/MessageStorage.ts +1 -2
- package/src/unstable/cluster/Runner.ts +1 -1
- package/src/unstable/cluster/RunnerHealth.ts +2 -2
- package/src/unstable/cluster/RunnerServer.ts +4 -4
- package/src/unstable/cluster/Runners.ts +3 -3
- package/src/unstable/cluster/ShardId.ts +7 -5
- package/src/unstable/cluster/Sharding.ts +1 -1
- package/src/unstable/cluster/ShardingConfig.ts +2 -2
- package/src/unstable/cluster/SingleRunner.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +10 -9
- package/src/unstable/cluster/SocketRunner.ts +2 -2
- package/src/unstable/cluster/SqlMessageStorage.ts +3 -3
- package/src/unstable/cluster/SqlRunnerStorage.ts +3 -3
- package/src/unstable/cluster/TestRunner.ts +1 -1
- package/src/unstable/cluster/index.ts +790 -0
- package/src/unstable/devtools/index.ts +58 -0
- package/src/unstable/encoding/Sse.ts +16 -16
- package/src/unstable/encoding/index.ts +49 -0
- package/src/unstable/eventlog/Event.ts +2 -2
- package/src/unstable/eventlog/EventGroup.ts +2 -2
- package/src/unstable/eventlog/EventLog.ts +6 -7
- package/src/unstable/eventlog/EventLogRemote.ts +2 -2
- package/src/unstable/eventlog/EventLogServer.ts +2 -2
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +2 -2
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +1 -1
- package/src/unstable/eventlog/EventLogSessionAuth.ts +1 -1
- package/src/unstable/eventlog/index.ts +240 -0
- package/src/unstable/http/Cookies.ts +6 -6
- package/src/unstable/http/Etag.ts +2 -2
- package/src/unstable/http/Headers.ts +2 -2
- package/src/unstable/http/HttpClient.ts +5 -6
- package/src/unstable/http/HttpClientError.ts +1 -1
- package/src/unstable/http/HttpClientRequest.ts +4 -4
- package/src/unstable/http/HttpClientResponse.ts +6 -6
- package/src/unstable/http/HttpEffect.ts +5 -5
- package/src/unstable/http/HttpIncomingMessage.ts +7 -6
- package/src/unstable/http/HttpMethod.ts +4 -2
- package/src/unstable/http/HttpMiddleware.ts +1 -0
- package/src/unstable/http/HttpRouter.ts +23 -25
- package/src/unstable/http/HttpServerError.ts +4 -1
- package/src/unstable/http/HttpServerRequest.ts +15 -15
- package/src/unstable/http/HttpServerRespondable.ts +1 -1
- package/src/unstable/http/HttpServerResponse.ts +5 -4
- package/src/unstable/http/HttpStaticServer.ts +2 -4
- package/src/unstable/http/Multipart.ts +20 -19
- package/src/unstable/http/Template.ts +0 -1
- package/src/unstable/http/Url.ts +17 -17
- package/src/unstable/http/UrlParams.ts +14 -12
- package/src/unstable/http/index.ts +452 -0
- package/src/unstable/httpapi/HttpApiBuilder.ts +0 -1
- package/src/unstable/httpapi/HttpApiClient.ts +0 -1
- package/src/unstable/httpapi/HttpApiMiddleware.ts +4 -2
- package/src/unstable/httpapi/HttpApiScalar.ts +2 -2
- package/src/unstable/httpapi/HttpApiSchema.ts +19 -8
- package/src/unstable/httpapi/HttpApiSecurity.ts +0 -1
- package/src/unstable/httpapi/HttpApiSwagger.ts +0 -2
- package/src/unstable/httpapi/index.ts +310 -25
- package/src/unstable/observability/Otlp.ts +3 -3
- package/src/unstable/observability/OtlpExporter.ts +1 -1
- package/src/unstable/observability/OtlpLogger.ts +3 -2
- package/src/unstable/observability/OtlpMetrics.ts +5 -4
- package/src/unstable/observability/OtlpResource.ts +9 -9
- package/src/unstable/observability/OtlpSerialization.ts +3 -3
- package/src/unstable/observability/OtlpTracer.ts +5 -2
- package/src/unstable/observability/PrometheusMetrics.ts +7 -7
- package/src/unstable/observability/index.ts +158 -2
- package/src/unstable/persistence/KeyValueStore.ts +4 -4
- package/src/unstable/persistence/Persistable.ts +11 -11
- package/src/unstable/persistence/PersistedCache.ts +2 -2
- package/src/unstable/persistence/PersistedQueue.ts +6 -6
- package/src/unstable/persistence/Persistence.ts +2 -1
- package/src/unstable/persistence/RateLimiter.ts +19 -15
- package/src/unstable/persistence/Redis.ts +3 -3
- package/src/unstable/persistence/index.ts +147 -0
- package/src/unstable/process/ChildProcess.ts +42 -42
- package/src/unstable/process/ChildProcessSpawner.ts +10 -10
- package/src/unstable/reactivity/AsyncResult.ts +8 -6
- package/src/unstable/reactivity/Atom.ts +25 -20
- package/src/unstable/reactivity/AtomHttpApi.ts +2 -2
- package/src/unstable/reactivity/AtomRef.ts +2 -2
- package/src/unstable/reactivity/AtomRegistry.ts +17 -17
- package/src/unstable/reactivity/AtomRpc.ts +2 -2
- package/src/unstable/reactivity/Reactivity.ts +2 -3
- package/src/unstable/reactivity/index.ts +167 -0
- package/src/unstable/rpc/Rpc.ts +0 -1
- package/src/unstable/rpc/RpcClient.ts +0 -1
- package/src/unstable/rpc/RpcClientError.ts +2 -2
- package/src/unstable/rpc/RpcMiddleware.ts +2 -2
- package/src/unstable/rpc/RpcWorker.ts +0 -1
- package/src/unstable/rpc/Utils.ts +2 -0
- package/src/unstable/rpc/index.ts +272 -0
- package/src/unstable/schema/Model.ts +98 -10
- package/src/unstable/schema/VariantSchema.ts +1 -4
- package/src/unstable/schema/index.ts +37 -0
- package/src/unstable/socket/Socket.ts +5 -4
- package/src/unstable/socket/index.ts +44 -0
- package/src/unstable/sql/Migrator.ts +5 -5
- package/src/unstable/sql/SqlClient.ts +4 -0
- package/src/unstable/sql/SqlConnection.ts +3 -3
- package/src/unstable/sql/SqlError.ts +18 -0
- package/src/unstable/sql/SqlModel.ts +0 -1
- package/src/unstable/sql/SqlSchema.ts +5 -5
- package/src/unstable/sql/SqlStream.ts +1 -0
- package/src/unstable/sql/Statement.ts +27 -24
- package/src/unstable/sql/index.ts +178 -0
- package/src/unstable/workers/Transferable.ts +7 -7
- package/src/unstable/workers/Worker.ts +1 -0
- package/src/unstable/workers/WorkerError.ts +8 -8
- package/src/unstable/workers/index.ts +80 -0
- package/src/unstable/workflow/Activity.ts +7 -7
- package/src/unstable/workflow/DurableClock.ts +2 -2
- package/src/unstable/workflow/DurableDeferred.ts +22 -20
- package/src/unstable/workflow/DurableQueue.ts +7 -5
- package/src/unstable/workflow/Workflow.ts +12 -10
- package/src/unstable/workflow/WorkflowEngine.ts +4 -4
- package/src/unstable/workflow/WorkflowProxy.ts +10 -12
- package/src/unstable/workflow/WorkflowProxyServer.ts +3 -2
- package/src/unstable/workflow/index.ts +160 -0
package/dist/HashMap.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ declare const TypeId = "~effect/collections/HashMap";
|
|
|
89
89
|
* **Example** (Using basic HashMap operations)
|
|
90
90
|
*
|
|
91
91
|
* ```ts
|
|
92
|
-
* import
|
|
92
|
+
* import { HashMap } from "effect"
|
|
93
93
|
*
|
|
94
94
|
* // Create a HashMap
|
|
95
95
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
@@ -119,7 +119,7 @@ export interface HashMap<out Key, out Value> extends Iterable<[Key, Value]>, Equ
|
|
|
119
119
|
* **Example** (Extracting HashMap types)
|
|
120
120
|
*
|
|
121
121
|
* ```ts
|
|
122
|
-
* import
|
|
122
|
+
* import { HashMap } from "effect"
|
|
123
123
|
*
|
|
124
124
|
* // Create a concrete HashMap for type extraction
|
|
125
125
|
* const inventory = HashMap.make(
|
|
@@ -144,7 +144,6 @@ export interface HashMap<out Key, out Value> extends Iterable<[Key, Value]>, Equ
|
|
|
144
144
|
* const updatedInventory = updateInventory("tablet", newProduct)
|
|
145
145
|
* ```
|
|
146
146
|
*
|
|
147
|
-
* @category models
|
|
148
147
|
* @since 2.0.0
|
|
149
148
|
*/
|
|
150
149
|
export declare namespace HashMap {
|
|
@@ -156,8 +155,7 @@ export declare namespace HashMap {
|
|
|
156
155
|
* **Example** (Updating values from Options)
|
|
157
156
|
*
|
|
158
157
|
* ```ts
|
|
159
|
-
* import
|
|
160
|
-
* import * as Option from "effect/Option"
|
|
158
|
+
* import { HashMap, Option } from "effect"
|
|
161
159
|
*
|
|
162
160
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
163
161
|
*
|
|
@@ -179,7 +177,7 @@ export declare namespace HashMap {
|
|
|
179
177
|
* **Example** (Extracting key types)
|
|
180
178
|
*
|
|
181
179
|
* ```ts
|
|
182
|
-
* import
|
|
180
|
+
* import { HashMap } from "effect"
|
|
183
181
|
*
|
|
184
182
|
* // Create a HashMap to extract key type from
|
|
185
183
|
* const userMap = HashMap.make(
|
|
@@ -204,7 +202,7 @@ export declare namespace HashMap {
|
|
|
204
202
|
* **Example** (Extracting value types)
|
|
205
203
|
*
|
|
206
204
|
* ```ts
|
|
207
|
-
* import
|
|
205
|
+
* import { HashMap } from "effect"
|
|
208
206
|
*
|
|
209
207
|
* // Create a HashMap with user data
|
|
210
208
|
* const userMap = HashMap.make(
|
|
@@ -233,7 +231,7 @@ export declare namespace HashMap {
|
|
|
233
231
|
* **Example** (Extracting entry types)
|
|
234
232
|
*
|
|
235
233
|
* ```ts
|
|
236
|
-
* import
|
|
234
|
+
* import { HashMap } from "effect"
|
|
237
235
|
*
|
|
238
236
|
* // Create a product catalog HashMap
|
|
239
237
|
* const catalog = HashMap.make(
|
|
@@ -264,7 +262,7 @@ export declare namespace HashMap {
|
|
|
264
262
|
* **Example** (Checking HashMap values)
|
|
265
263
|
*
|
|
266
264
|
* ```ts
|
|
267
|
-
* import
|
|
265
|
+
* import { HashMap } from "effect"
|
|
268
266
|
*
|
|
269
267
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
270
268
|
* const notMap = { a: 1 }
|
|
@@ -284,7 +282,7 @@ export declare const isHashMap: {
|
|
|
284
282
|
* **Example** (Checking HashMap values)
|
|
285
283
|
*
|
|
286
284
|
* ```ts
|
|
287
|
-
* import
|
|
285
|
+
* import { HashMap } from "effect"
|
|
288
286
|
*
|
|
289
287
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
290
288
|
* const notMap = { a: 1 }
|
|
@@ -304,7 +302,7 @@ export declare const isHashMap: {
|
|
|
304
302
|
* **Example** (Checking HashMap values)
|
|
305
303
|
*
|
|
306
304
|
* ```ts
|
|
307
|
-
* import
|
|
305
|
+
* import { HashMap } from "effect"
|
|
308
306
|
*
|
|
309
307
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
310
308
|
* const notMap = { a: 1 }
|
|
@@ -325,7 +323,7 @@ export declare const isHashMap: {
|
|
|
325
323
|
* **Example** (Creating an empty HashMap)
|
|
326
324
|
*
|
|
327
325
|
* ```ts
|
|
328
|
-
* import
|
|
326
|
+
* import { HashMap } from "effect"
|
|
329
327
|
*
|
|
330
328
|
* const map = HashMap.empty<string, number>()
|
|
331
329
|
* console.log(HashMap.isEmpty(map)) // true
|
|
@@ -342,7 +340,7 @@ export declare const empty: <K = never, V = never>() => HashMap<K, V>;
|
|
|
342
340
|
* **Example** (Creating a HashMap from entries)
|
|
343
341
|
*
|
|
344
342
|
* ```ts
|
|
345
|
-
* import
|
|
343
|
+
* import { HashMap } from "effect"
|
|
346
344
|
*
|
|
347
345
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
348
346
|
* console.log(HashMap.size(map)) // 3
|
|
@@ -359,7 +357,7 @@ export declare const make: <Entries extends ReadonlyArray<readonly [any, any]>>(
|
|
|
359
357
|
* **Example** (Creating a HashMap from an iterable)
|
|
360
358
|
*
|
|
361
359
|
* ```ts
|
|
362
|
-
* import
|
|
360
|
+
* import { HashMap } from "effect"
|
|
363
361
|
*
|
|
364
362
|
* const entries = [["a", 1], ["b", 2], ["c", 3]] as const
|
|
365
363
|
* const map = HashMap.fromIterable(entries)
|
|
@@ -377,7 +375,7 @@ export declare const fromIterable: <K, V>(entries: Iterable<readonly [K, V]>) =>
|
|
|
377
375
|
* **Example** (Checking for empty HashMaps)
|
|
378
376
|
*
|
|
379
377
|
* ```ts
|
|
380
|
-
* import
|
|
378
|
+
* import { HashMap } from "effect"
|
|
381
379
|
*
|
|
382
380
|
* const emptyMap = HashMap.empty<string, number>()
|
|
383
381
|
* const nonEmptyMap = HashMap.make(["a", 1])
|
|
@@ -397,7 +395,7 @@ export declare const isEmpty: <K, V>(self: HashMap<K, V>) => boolean;
|
|
|
397
395
|
* **Example** (Looking up values)
|
|
398
396
|
*
|
|
399
397
|
* ```ts
|
|
400
|
-
* import
|
|
398
|
+
* import { HashMap } from "effect"
|
|
401
399
|
*
|
|
402
400
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
403
401
|
*
|
|
@@ -420,7 +418,7 @@ export declare const get: {
|
|
|
420
418
|
* **Example** (Looking up values)
|
|
421
419
|
*
|
|
422
420
|
* ```ts
|
|
423
|
-
* import
|
|
421
|
+
* import { HashMap } from "effect"
|
|
424
422
|
*
|
|
425
423
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
426
424
|
*
|
|
@@ -443,7 +441,7 @@ export declare const get: {
|
|
|
443
441
|
* **Example** (Looking up values)
|
|
444
442
|
*
|
|
445
443
|
* ```ts
|
|
446
|
-
* import
|
|
444
|
+
* import { HashMap } from "effect"
|
|
447
445
|
*
|
|
448
446
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
449
447
|
*
|
|
@@ -466,8 +464,7 @@ export declare const get: {
|
|
|
466
464
|
* **Example** (Looking up values with a hash)
|
|
467
465
|
*
|
|
468
466
|
* ```ts
|
|
469
|
-
* import { Hash } from "effect"
|
|
470
|
-
* import * as HashMap from "effect/HashMap"
|
|
467
|
+
* import { Hash, HashMap } from "effect"
|
|
471
468
|
*
|
|
472
469
|
* // Useful when implementing custom equality for complex keys
|
|
473
470
|
* const userMap = HashMap.make(
|
|
@@ -498,8 +495,7 @@ export declare const getHash: {
|
|
|
498
495
|
* **Example** (Looking up values with a hash)
|
|
499
496
|
*
|
|
500
497
|
* ```ts
|
|
501
|
-
* import { Hash } from "effect"
|
|
502
|
-
* import * as HashMap from "effect/HashMap"
|
|
498
|
+
* import { Hash, HashMap } from "effect"
|
|
503
499
|
*
|
|
504
500
|
* // Useful when implementing custom equality for complex keys
|
|
505
501
|
* const userMap = HashMap.make(
|
|
@@ -530,8 +526,7 @@ export declare const getHash: {
|
|
|
530
526
|
* **Example** (Looking up values with a hash)
|
|
531
527
|
*
|
|
532
528
|
* ```ts
|
|
533
|
-
* import { Hash } from "effect"
|
|
534
|
-
* import * as HashMap from "effect/HashMap"
|
|
529
|
+
* import { Hash, HashMap } from "effect"
|
|
535
530
|
*
|
|
536
531
|
* // Useful when implementing custom equality for complex keys
|
|
537
532
|
* const userMap = HashMap.make(
|
|
@@ -567,8 +562,7 @@ export declare const getHash: {
|
|
|
567
562
|
* **Example** (Unsafely looking up values)
|
|
568
563
|
*
|
|
569
564
|
* ```ts
|
|
570
|
-
* import
|
|
571
|
-
* import * as Option from "effect/Option"
|
|
565
|
+
* import { HashMap, Option } from "effect"
|
|
572
566
|
*
|
|
573
567
|
* const config = HashMap.make(
|
|
574
568
|
* ["api_url", "https://api.example.com"],
|
|
@@ -591,7 +585,7 @@ export declare const getHash: {
|
|
|
591
585
|
* ```
|
|
592
586
|
*
|
|
593
587
|
* @category unsafe
|
|
594
|
-
* @since
|
|
588
|
+
* @since 4.0.0
|
|
595
589
|
*/
|
|
596
590
|
export declare const getUnsafe: {
|
|
597
591
|
/**
|
|
@@ -604,8 +598,7 @@ export declare const getUnsafe: {
|
|
|
604
598
|
* **Example** (Unsafely looking up values)
|
|
605
599
|
*
|
|
606
600
|
* ```ts
|
|
607
|
-
* import
|
|
608
|
-
* import * as Option from "effect/Option"
|
|
601
|
+
* import { HashMap, Option } from "effect"
|
|
609
602
|
*
|
|
610
603
|
* const config = HashMap.make(
|
|
611
604
|
* ["api_url", "https://api.example.com"],
|
|
@@ -628,7 +621,7 @@ export declare const getUnsafe: {
|
|
|
628
621
|
* ```
|
|
629
622
|
*
|
|
630
623
|
* @category unsafe
|
|
631
|
-
* @since
|
|
624
|
+
* @since 4.0.0
|
|
632
625
|
*/
|
|
633
626
|
<K1 extends K, K>(key: K1): <V>(self: HashMap<K, V>) => V;
|
|
634
627
|
/**
|
|
@@ -641,8 +634,7 @@ export declare const getUnsafe: {
|
|
|
641
634
|
* **Example** (Unsafely looking up values)
|
|
642
635
|
*
|
|
643
636
|
* ```ts
|
|
644
|
-
* import
|
|
645
|
-
* import * as Option from "effect/Option"
|
|
637
|
+
* import { HashMap, Option } from "effect"
|
|
646
638
|
*
|
|
647
639
|
* const config = HashMap.make(
|
|
648
640
|
* ["api_url", "https://api.example.com"],
|
|
@@ -665,7 +657,7 @@ export declare const getUnsafe: {
|
|
|
665
657
|
* ```
|
|
666
658
|
*
|
|
667
659
|
* @category unsafe
|
|
668
|
-
* @since
|
|
660
|
+
* @since 4.0.0
|
|
669
661
|
*/
|
|
670
662
|
<K1 extends K, K, V>(self: HashMap<K, V>, key: K1): V;
|
|
671
663
|
};
|
|
@@ -675,7 +667,7 @@ export declare const getUnsafe: {
|
|
|
675
667
|
* **Example** (Checking for keys)
|
|
676
668
|
*
|
|
677
669
|
* ```ts
|
|
678
|
-
* import
|
|
670
|
+
* import { HashMap } from "effect"
|
|
679
671
|
*
|
|
680
672
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
681
673
|
*
|
|
@@ -697,7 +689,7 @@ export declare const has: {
|
|
|
697
689
|
* **Example** (Checking for keys)
|
|
698
690
|
*
|
|
699
691
|
* ```ts
|
|
700
|
-
* import
|
|
692
|
+
* import { HashMap } from "effect"
|
|
701
693
|
*
|
|
702
694
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
703
695
|
*
|
|
@@ -719,7 +711,7 @@ export declare const has: {
|
|
|
719
711
|
* **Example** (Checking for keys)
|
|
720
712
|
*
|
|
721
713
|
* ```ts
|
|
722
|
-
* import
|
|
714
|
+
* import { HashMap } from "effect"
|
|
723
715
|
*
|
|
724
716
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
725
717
|
*
|
|
@@ -743,8 +735,7 @@ export declare const has: {
|
|
|
743
735
|
* **Example** (Checking keys with a hash)
|
|
744
736
|
*
|
|
745
737
|
* ```ts
|
|
746
|
-
* import { Hash } from "effect"
|
|
747
|
-
* import * as HashMap from "effect/HashMap"
|
|
738
|
+
* import { Hash, HashMap } from "effect"
|
|
748
739
|
*
|
|
749
740
|
* // Create a map with case-sensitive keys
|
|
750
741
|
* const userMap = HashMap.make(
|
|
@@ -775,8 +766,7 @@ export declare const hasHash: {
|
|
|
775
766
|
* **Example** (Checking keys with a hash)
|
|
776
767
|
*
|
|
777
768
|
* ```ts
|
|
778
|
-
* import { Hash } from "effect"
|
|
779
|
-
* import * as HashMap from "effect/HashMap"
|
|
769
|
+
* import { Hash, HashMap } from "effect"
|
|
780
770
|
*
|
|
781
771
|
* // Create a map with case-sensitive keys
|
|
782
772
|
* const userMap = HashMap.make(
|
|
@@ -807,8 +797,7 @@ export declare const hasHash: {
|
|
|
807
797
|
* **Example** (Checking keys with a hash)
|
|
808
798
|
*
|
|
809
799
|
* ```ts
|
|
810
|
-
* import { Hash } from "effect"
|
|
811
|
-
* import * as HashMap from "effect/HashMap"
|
|
800
|
+
* import { Hash, HashMap } from "effect"
|
|
812
801
|
*
|
|
813
802
|
* // Create a map with case-sensitive keys
|
|
814
803
|
* const userMap = HashMap.make(
|
|
@@ -839,7 +828,7 @@ export declare const hasHash: {
|
|
|
839
828
|
* **Example** (Checking entries by predicate)
|
|
840
829
|
*
|
|
841
830
|
* ```ts
|
|
842
|
-
* import
|
|
831
|
+
* import { HashMap } from "effect"
|
|
843
832
|
*
|
|
844
833
|
* const hm = HashMap.make([1, "a"])
|
|
845
834
|
* HashMap.hasBy(hm, (value, key) => value === "a" && key === 1) // -> true
|
|
@@ -856,7 +845,7 @@ export declare const hasBy: {
|
|
|
856
845
|
* **Example** (Checking entries by predicate)
|
|
857
846
|
*
|
|
858
847
|
* ```ts
|
|
859
|
-
* import
|
|
848
|
+
* import { HashMap } from "effect"
|
|
860
849
|
*
|
|
861
850
|
* const hm = HashMap.make([1, "a"])
|
|
862
851
|
* HashMap.hasBy(hm, (value, key) => value === "a" && key === 1) // -> true
|
|
@@ -873,7 +862,7 @@ export declare const hasBy: {
|
|
|
873
862
|
* **Example** (Checking entries by predicate)
|
|
874
863
|
*
|
|
875
864
|
* ```ts
|
|
876
|
-
* import
|
|
865
|
+
* import { HashMap } from "effect"
|
|
877
866
|
*
|
|
878
867
|
* const hm = HashMap.make([1, "a"])
|
|
879
868
|
* HashMap.hasBy(hm, (value, key) => value === "a" && key === 1) // -> true
|
|
@@ -892,7 +881,7 @@ export declare const hasBy: {
|
|
|
892
881
|
* **Example** (Setting a value)
|
|
893
882
|
*
|
|
894
883
|
* ```ts
|
|
895
|
-
* import
|
|
884
|
+
* import { HashMap } from "effect"
|
|
896
885
|
*
|
|
897
886
|
* const map1 = HashMap.make(["a", 1])
|
|
898
887
|
* const map2 = HashMap.set(map1, "b", 2)
|
|
@@ -904,7 +893,7 @@ export declare const hasBy: {
|
|
|
904
893
|
* console.log(HashMap.size(map1)) // 1
|
|
905
894
|
* ```
|
|
906
895
|
*
|
|
907
|
-
* @category
|
|
896
|
+
* @category transforming
|
|
908
897
|
* @since 2.0.0
|
|
909
898
|
*/
|
|
910
899
|
export declare const set: {
|
|
@@ -915,7 +904,7 @@ export declare const set: {
|
|
|
915
904
|
* **Example** (Setting a value)
|
|
916
905
|
*
|
|
917
906
|
* ```ts
|
|
918
|
-
* import
|
|
907
|
+
* import { HashMap } from "effect"
|
|
919
908
|
*
|
|
920
909
|
* const map1 = HashMap.make(["a", 1])
|
|
921
910
|
* const map2 = HashMap.set(map1, "b", 2)
|
|
@@ -927,7 +916,7 @@ export declare const set: {
|
|
|
927
916
|
* console.log(HashMap.size(map1)) // 1
|
|
928
917
|
* ```
|
|
929
918
|
*
|
|
930
|
-
* @category
|
|
919
|
+
* @category transforming
|
|
931
920
|
* @since 2.0.0
|
|
932
921
|
*/
|
|
933
922
|
<K, V>(key: K, value: V): (self: HashMap<K, V>) => HashMap<K, V>;
|
|
@@ -938,7 +927,7 @@ export declare const set: {
|
|
|
938
927
|
* **Example** (Setting a value)
|
|
939
928
|
*
|
|
940
929
|
* ```ts
|
|
941
|
-
* import
|
|
930
|
+
* import { HashMap } from "effect"
|
|
942
931
|
*
|
|
943
932
|
* const map1 = HashMap.make(["a", 1])
|
|
944
933
|
* const map2 = HashMap.set(map1, "b", 2)
|
|
@@ -950,7 +939,7 @@ export declare const set: {
|
|
|
950
939
|
* console.log(HashMap.size(map1)) // 1
|
|
951
940
|
* ```
|
|
952
941
|
*
|
|
953
|
-
* @category
|
|
942
|
+
* @category transforming
|
|
954
943
|
* @since 2.0.0
|
|
955
944
|
*/
|
|
956
945
|
<K, V>(self: HashMap<K, V>, key: K, value: V): HashMap<K, V>;
|
|
@@ -961,7 +950,7 @@ export declare const set: {
|
|
|
961
950
|
* **Example** (Iterating keys)
|
|
962
951
|
*
|
|
963
952
|
* ```ts
|
|
964
|
-
* import
|
|
953
|
+
* import { HashMap } from "effect"
|
|
965
954
|
*
|
|
966
955
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
967
956
|
* const keys = Array.from(HashMap.keys(map))
|
|
@@ -978,7 +967,7 @@ export declare const keys: <K, V>(self: HashMap<K, V>) => IterableIterator<K>;
|
|
|
978
967
|
* **Example** (Iterating values)
|
|
979
968
|
*
|
|
980
969
|
* ```ts
|
|
981
|
-
* import
|
|
970
|
+
* import { HashMap } from "effect"
|
|
982
971
|
*
|
|
983
972
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
984
973
|
* const values = Array.from(HashMap.values(map))
|
|
@@ -995,7 +984,7 @@ export declare const values: <K, V>(self: HashMap<K, V>) => IterableIterator<V>;
|
|
|
995
984
|
* **Example** (Converting values to an array)
|
|
996
985
|
*
|
|
997
986
|
* ```ts
|
|
998
|
-
* import
|
|
987
|
+
* import { HashMap } from "effect"
|
|
999
988
|
*
|
|
1000
989
|
* const employees = HashMap.make(
|
|
1001
990
|
* ["alice", { department: "engineering", salary: 90000 }],
|
|
@@ -1026,7 +1015,7 @@ export declare const toValues: <K, V>(self: HashMap<K, V>) => Array<V>;
|
|
|
1026
1015
|
* **Example** (Iterating entries)
|
|
1027
1016
|
*
|
|
1028
1017
|
* ```ts
|
|
1029
|
-
* import
|
|
1018
|
+
* import { HashMap } from "effect"
|
|
1030
1019
|
*
|
|
1031
1020
|
* // Create a configuration map
|
|
1032
1021
|
* const config = HashMap.make(
|
|
@@ -1058,7 +1047,7 @@ export declare const entries: <K, V>(self: HashMap<K, V>) => IterableIterator<[K
|
|
|
1058
1047
|
* **Example** (Converting entries to an array)
|
|
1059
1048
|
*
|
|
1060
1049
|
* ```ts
|
|
1061
|
-
* import
|
|
1050
|
+
* import { HashMap } from "effect"
|
|
1062
1051
|
*
|
|
1063
1052
|
* const gameScores = HashMap.make(
|
|
1064
1053
|
* ["alice", 1250],
|
|
@@ -1091,7 +1080,7 @@ export declare const toEntries: <K, V>(self: HashMap<K, V>) => Array<[K, V]>;
|
|
|
1091
1080
|
* **Example** (Getting the size)
|
|
1092
1081
|
*
|
|
1093
1082
|
* ```ts
|
|
1094
|
-
* import
|
|
1083
|
+
* import { HashMap } from "effect"
|
|
1095
1084
|
*
|
|
1096
1085
|
* const emptyMap = HashMap.empty<string, number>()
|
|
1097
1086
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
@@ -1113,7 +1102,7 @@ export declare const size: <K, V>(self: HashMap<K, V>) => number;
|
|
|
1113
1102
|
* **Example** (Beginning batch mutation)
|
|
1114
1103
|
*
|
|
1115
1104
|
* ```ts
|
|
1116
|
-
* import
|
|
1105
|
+
* import { HashMap } from "effect"
|
|
1117
1106
|
*
|
|
1118
1107
|
* const map = HashMap.make(["a", 1])
|
|
1119
1108
|
*
|
|
@@ -1140,7 +1129,7 @@ export declare const beginMutation: <K, V>(self: HashMap<K, V>) => HashMap<K, V>
|
|
|
1140
1129
|
* **Example** (Ending batch mutation)
|
|
1141
1130
|
*
|
|
1142
1131
|
* ```ts
|
|
1143
|
-
* import
|
|
1132
|
+
* import { HashMap } from "effect"
|
|
1144
1133
|
*
|
|
1145
1134
|
* // Start with an existing map
|
|
1146
1135
|
* const original = HashMap.make(["x", 10], ["y", 20])
|
|
@@ -1175,7 +1164,7 @@ export declare const endMutation: <K, V>(self: HashMap<K, V>) => HashMap<K, V>;
|
|
|
1175
1164
|
* **Example** (Applying batched mutations)
|
|
1176
1165
|
*
|
|
1177
1166
|
* ```ts
|
|
1178
|
-
* import
|
|
1167
|
+
* import { HashMap } from "effect"
|
|
1179
1168
|
*
|
|
1180
1169
|
* const map1 = HashMap.make(["a", 1])
|
|
1181
1170
|
* const map2 = HashMap.mutate(map1, (mutable) => {
|
|
@@ -1199,7 +1188,7 @@ export declare const mutate: {
|
|
|
1199
1188
|
* **Example** (Applying batched mutations)
|
|
1200
1189
|
*
|
|
1201
1190
|
* ```ts
|
|
1202
|
-
* import
|
|
1191
|
+
* import { HashMap } from "effect"
|
|
1203
1192
|
*
|
|
1204
1193
|
* const map1 = HashMap.make(["a", 1])
|
|
1205
1194
|
* const map2 = HashMap.mutate(map1, (mutable) => {
|
|
@@ -1223,7 +1212,7 @@ export declare const mutate: {
|
|
|
1223
1212
|
* **Example** (Applying batched mutations)
|
|
1224
1213
|
*
|
|
1225
1214
|
* ```ts
|
|
1226
|
-
* import
|
|
1215
|
+
* import { HashMap } from "effect"
|
|
1227
1216
|
*
|
|
1228
1217
|
* const map1 = HashMap.make(["a", 1])
|
|
1229
1218
|
* const map2 = HashMap.mutate(map1, (mutable) => {
|
|
@@ -1248,8 +1237,7 @@ export declare const mutate: {
|
|
|
1248
1237
|
* **Example** (Updating values with Options)
|
|
1249
1238
|
*
|
|
1250
1239
|
* ```ts
|
|
1251
|
-
* import
|
|
1252
|
-
* import * as Option from "effect/Option"
|
|
1240
|
+
* import { HashMap, Option } from "effect"
|
|
1253
1241
|
*
|
|
1254
1242
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
1255
1243
|
*
|
|
@@ -1261,7 +1249,7 @@ export declare const mutate: {
|
|
|
1261
1249
|
* console.log(HashMap.get(updated, "a")) // Option.some(2)
|
|
1262
1250
|
* ```
|
|
1263
1251
|
*
|
|
1264
|
-
* @category
|
|
1252
|
+
* @category transforming
|
|
1265
1253
|
* @since 2.0.0
|
|
1266
1254
|
*/
|
|
1267
1255
|
export declare const modifyAt: {
|
|
@@ -1275,8 +1263,7 @@ export declare const modifyAt: {
|
|
|
1275
1263
|
* **Example** (Updating values with Options)
|
|
1276
1264
|
*
|
|
1277
1265
|
* ```ts
|
|
1278
|
-
* import
|
|
1279
|
-
* import * as Option from "effect/Option"
|
|
1266
|
+
* import { HashMap, Option } from "effect"
|
|
1280
1267
|
*
|
|
1281
1268
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
1282
1269
|
*
|
|
@@ -1288,7 +1275,7 @@ export declare const modifyAt: {
|
|
|
1288
1275
|
* console.log(HashMap.get(updated, "a")) // Option.some(2)
|
|
1289
1276
|
* ```
|
|
1290
1277
|
*
|
|
1291
|
-
* @category
|
|
1278
|
+
* @category transforming
|
|
1292
1279
|
* @since 2.0.0
|
|
1293
1280
|
*/
|
|
1294
1281
|
<K, V>(key: K, f: HashMap.UpdateFn<V>): (self: HashMap<K, V>) => HashMap<K, V>;
|
|
@@ -1302,8 +1289,7 @@ export declare const modifyAt: {
|
|
|
1302
1289
|
* **Example** (Updating values with Options)
|
|
1303
1290
|
*
|
|
1304
1291
|
* ```ts
|
|
1305
|
-
* import
|
|
1306
|
-
* import * as Option from "effect/Option"
|
|
1292
|
+
* import { HashMap, Option } from "effect"
|
|
1307
1293
|
*
|
|
1308
1294
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
1309
1295
|
*
|
|
@@ -1315,7 +1301,7 @@ export declare const modifyAt: {
|
|
|
1315
1301
|
* console.log(HashMap.get(updated, "a")) // Option.some(2)
|
|
1316
1302
|
* ```
|
|
1317
1303
|
*
|
|
1318
|
-
* @category
|
|
1304
|
+
* @category transforming
|
|
1319
1305
|
* @since 2.0.0
|
|
1320
1306
|
*/
|
|
1321
1307
|
<K, V>(self: HashMap<K, V>, key: K, f: HashMap.UpdateFn<V>): HashMap<K, V>;
|
|
@@ -1331,9 +1317,7 @@ export declare const modifyAt: {
|
|
|
1331
1317
|
* **Example** (Updating values with a hash)
|
|
1332
1318
|
*
|
|
1333
1319
|
* ```ts
|
|
1334
|
-
* import { Hash } from "effect"
|
|
1335
|
-
* import * as HashMap from "effect/HashMap"
|
|
1336
|
-
* import * as Option from "effect/Option"
|
|
1320
|
+
* import { Hash, HashMap, Option } from "effect"
|
|
1337
1321
|
*
|
|
1338
1322
|
* // Useful when working with precomputed hashes for performance
|
|
1339
1323
|
* const counters = HashMap.make(["downloads", 100], ["views", 250])
|
|
@@ -1367,7 +1351,7 @@ export declare const modifyAt: {
|
|
|
1367
1351
|
* console.log(HashMap.get(withClicks, "clicks")) // Option.some(1)
|
|
1368
1352
|
* ```
|
|
1369
1353
|
*
|
|
1370
|
-
* @category
|
|
1354
|
+
* @category transforming
|
|
1371
1355
|
* @since 2.0.0
|
|
1372
1356
|
*/
|
|
1373
1357
|
export declare const modifyHash: {
|
|
@@ -1382,9 +1366,7 @@ export declare const modifyHash: {
|
|
|
1382
1366
|
* **Example** (Updating values with a hash)
|
|
1383
1367
|
*
|
|
1384
1368
|
* ```ts
|
|
1385
|
-
* import { Hash } from "effect"
|
|
1386
|
-
* import * as HashMap from "effect/HashMap"
|
|
1387
|
-
* import * as Option from "effect/Option"
|
|
1369
|
+
* import { Hash, HashMap, Option } from "effect"
|
|
1388
1370
|
*
|
|
1389
1371
|
* // Useful when working with precomputed hashes for performance
|
|
1390
1372
|
* const counters = HashMap.make(["downloads", 100], ["views", 250])
|
|
@@ -1418,7 +1400,7 @@ export declare const modifyHash: {
|
|
|
1418
1400
|
* console.log(HashMap.get(withClicks, "clicks")) // Option.some(1)
|
|
1419
1401
|
* ```
|
|
1420
1402
|
*
|
|
1421
|
-
* @category
|
|
1403
|
+
* @category transforming
|
|
1422
1404
|
* @since 2.0.0
|
|
1423
1405
|
*/
|
|
1424
1406
|
<K, V>(key: K, hash: number, f: HashMap.UpdateFn<V>): (self: HashMap<K, V>) => HashMap<K, V>;
|
|
@@ -1433,9 +1415,7 @@ export declare const modifyHash: {
|
|
|
1433
1415
|
* **Example** (Updating values with a hash)
|
|
1434
1416
|
*
|
|
1435
1417
|
* ```ts
|
|
1436
|
-
* import { Hash } from "effect"
|
|
1437
|
-
* import * as HashMap from "effect/HashMap"
|
|
1438
|
-
* import * as Option from "effect/Option"
|
|
1418
|
+
* import { Hash, HashMap, Option } from "effect"
|
|
1439
1419
|
*
|
|
1440
1420
|
* // Useful when working with precomputed hashes for performance
|
|
1441
1421
|
* const counters = HashMap.make(["downloads", 100], ["views", 250])
|
|
@@ -1469,7 +1449,7 @@ export declare const modifyHash: {
|
|
|
1469
1449
|
* console.log(HashMap.get(withClicks, "clicks")) // Option.some(1)
|
|
1470
1450
|
* ```
|
|
1471
1451
|
*
|
|
1472
|
-
* @category
|
|
1452
|
+
* @category transforming
|
|
1473
1453
|
* @since 2.0.0
|
|
1474
1454
|
*/
|
|
1475
1455
|
<K, V>(self: HashMap<K, V>, key: K, hash: number, f: HashMap.UpdateFn<V>): HashMap<K, V>;
|
|
@@ -1480,7 +1460,7 @@ export declare const modifyHash: {
|
|
|
1480
1460
|
* **Example** (Modifying existing values)
|
|
1481
1461
|
*
|
|
1482
1462
|
* ```ts
|
|
1483
|
-
* import
|
|
1463
|
+
* import { HashMap } from "effect"
|
|
1484
1464
|
*
|
|
1485
1465
|
* const map1 = HashMap.make(["a", 1], ["b", 2])
|
|
1486
1466
|
* const map2 = HashMap.modify(map1, "a", (value) => value * 3)
|
|
@@ -1489,7 +1469,7 @@ export declare const modifyHash: {
|
|
|
1489
1469
|
* console.log(HashMap.get(map2, "b")) // Option.some(2)
|
|
1490
1470
|
* ```
|
|
1491
1471
|
*
|
|
1492
|
-
* @category
|
|
1472
|
+
* @category transforming
|
|
1493
1473
|
* @since 2.0.0
|
|
1494
1474
|
*/
|
|
1495
1475
|
export declare const modify: {
|
|
@@ -1499,7 +1479,7 @@ export declare const modify: {
|
|
|
1499
1479
|
* **Example** (Modifying existing values)
|
|
1500
1480
|
*
|
|
1501
1481
|
* ```ts
|
|
1502
|
-
* import
|
|
1482
|
+
* import { HashMap } from "effect"
|
|
1503
1483
|
*
|
|
1504
1484
|
* const map1 = HashMap.make(["a", 1], ["b", 2])
|
|
1505
1485
|
* const map2 = HashMap.modify(map1, "a", (value) => value * 3)
|
|
@@ -1508,7 +1488,7 @@ export declare const modify: {
|
|
|
1508
1488
|
* console.log(HashMap.get(map2, "b")) // Option.some(2)
|
|
1509
1489
|
* ```
|
|
1510
1490
|
*
|
|
1511
|
-
* @category
|
|
1491
|
+
* @category transforming
|
|
1512
1492
|
* @since 2.0.0
|
|
1513
1493
|
*/
|
|
1514
1494
|
<K, V>(key: K, f: (v: V) => V): (self: HashMap<K, V>) => HashMap<K, V>;
|
|
@@ -1518,7 +1498,7 @@ export declare const modify: {
|
|
|
1518
1498
|
* **Example** (Modifying existing values)
|
|
1519
1499
|
*
|
|
1520
1500
|
* ```ts
|
|
1521
|
-
* import
|
|
1501
|
+
* import { HashMap } from "effect"
|
|
1522
1502
|
*
|
|
1523
1503
|
* const map1 = HashMap.make(["a", 1], ["b", 2])
|
|
1524
1504
|
* const map2 = HashMap.modify(map1, "a", (value) => value * 3)
|
|
@@ -1527,7 +1507,7 @@ export declare const modify: {
|
|
|
1527
1507
|
* console.log(HashMap.get(map2, "b")) // Option.some(2)
|
|
1528
1508
|
* ```
|
|
1529
1509
|
*
|
|
1530
|
-
* @category
|
|
1510
|
+
* @category transforming
|
|
1531
1511
|
* @since 2.0.0
|
|
1532
1512
|
*/
|
|
1533
1513
|
<K, V>(self: HashMap<K, V>, key: K, f: (v: V) => V): HashMap<K, V>;
|
|
@@ -1541,7 +1521,7 @@ export declare const modify: {
|
|
|
1541
1521
|
* **Example** (Combining HashMaps)
|
|
1542
1522
|
*
|
|
1543
1523
|
* ```ts
|
|
1544
|
-
* import
|
|
1524
|
+
* import { HashMap } from "effect"
|
|
1545
1525
|
*
|
|
1546
1526
|
* const map1 = HashMap.make(["a", 1], ["b", 2])
|
|
1547
1527
|
* const map2 = HashMap.make(["b", 20], ["c", 3])
|
|
@@ -1564,7 +1544,7 @@ export declare const union: {
|
|
|
1564
1544
|
* **Example** (Combining HashMaps)
|
|
1565
1545
|
*
|
|
1566
1546
|
* ```ts
|
|
1567
|
-
* import
|
|
1547
|
+
* import { HashMap } from "effect"
|
|
1568
1548
|
*
|
|
1569
1549
|
* const map1 = HashMap.make(["a", 1], ["b", 2])
|
|
1570
1550
|
* const map2 = HashMap.make(["b", 20], ["c", 3])
|
|
@@ -1587,7 +1567,7 @@ export declare const union: {
|
|
|
1587
1567
|
* **Example** (Combining HashMaps)
|
|
1588
1568
|
*
|
|
1589
1569
|
* ```ts
|
|
1590
|
-
* import
|
|
1570
|
+
* import { HashMap } from "effect"
|
|
1591
1571
|
*
|
|
1592
1572
|
* const map1 = HashMap.make(["a", 1], ["b", 2])
|
|
1593
1573
|
* const map2 = HashMap.make(["b", 20], ["c", 3])
|
|
@@ -1609,7 +1589,7 @@ export declare const union: {
|
|
|
1609
1589
|
* **Example** (Removing a key)
|
|
1610
1590
|
*
|
|
1611
1591
|
* ```ts
|
|
1612
|
-
* import
|
|
1592
|
+
* import { HashMap } from "effect"
|
|
1613
1593
|
*
|
|
1614
1594
|
* const map1 = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
1615
1595
|
* const map2 = HashMap.remove(map1, "b")
|
|
@@ -1619,7 +1599,7 @@ export declare const union: {
|
|
|
1619
1599
|
* console.log(HashMap.has(map2, "a")) // true
|
|
1620
1600
|
* ```
|
|
1621
1601
|
*
|
|
1622
|
-
* @category
|
|
1602
|
+
* @category transforming
|
|
1623
1603
|
* @since 2.0.0
|
|
1624
1604
|
*/
|
|
1625
1605
|
export declare const remove: {
|
|
@@ -1630,7 +1610,7 @@ export declare const remove: {
|
|
|
1630
1610
|
* **Example** (Removing a key)
|
|
1631
1611
|
*
|
|
1632
1612
|
* ```ts
|
|
1633
|
-
* import
|
|
1613
|
+
* import { HashMap } from "effect"
|
|
1634
1614
|
*
|
|
1635
1615
|
* const map1 = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
1636
1616
|
* const map2 = HashMap.remove(map1, "b")
|
|
@@ -1640,7 +1620,7 @@ export declare const remove: {
|
|
|
1640
1620
|
* console.log(HashMap.has(map2, "a")) // true
|
|
1641
1621
|
* ```
|
|
1642
1622
|
*
|
|
1643
|
-
* @category
|
|
1623
|
+
* @category transforming
|
|
1644
1624
|
* @since 2.0.0
|
|
1645
1625
|
*/
|
|
1646
1626
|
<K>(key: K): <V>(self: HashMap<K, V>) => HashMap<K, V>;
|
|
@@ -1651,7 +1631,7 @@ export declare const remove: {
|
|
|
1651
1631
|
* **Example** (Removing a key)
|
|
1652
1632
|
*
|
|
1653
1633
|
* ```ts
|
|
1654
|
-
* import
|
|
1634
|
+
* import { HashMap } from "effect"
|
|
1655
1635
|
*
|
|
1656
1636
|
* const map1 = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
1657
1637
|
* const map2 = HashMap.remove(map1, "b")
|
|
@@ -1661,7 +1641,7 @@ export declare const remove: {
|
|
|
1661
1641
|
* console.log(HashMap.has(map2, "a")) // true
|
|
1662
1642
|
* ```
|
|
1663
1643
|
*
|
|
1664
|
-
* @category
|
|
1644
|
+
* @category transforming
|
|
1665
1645
|
* @since 2.0.0
|
|
1666
1646
|
*/
|
|
1667
1647
|
<K, V>(self: HashMap<K, V>, key: K): HashMap<K, V>;
|
|
@@ -1672,7 +1652,7 @@ export declare const remove: {
|
|
|
1672
1652
|
* **Example** (Removing multiple keys)
|
|
1673
1653
|
*
|
|
1674
1654
|
* ```ts
|
|
1675
|
-
* import
|
|
1655
|
+
* import { HashMap } from "effect"
|
|
1676
1656
|
*
|
|
1677
1657
|
* const map1 = HashMap.make(["a", 1], ["b", 2], ["c", 3], ["d", 4])
|
|
1678
1658
|
* const map2 = HashMap.removeMany(map1, ["b", "d"])
|
|
@@ -1682,7 +1662,7 @@ export declare const remove: {
|
|
|
1682
1662
|
* console.log(HashMap.has(map2, "c")) // true
|
|
1683
1663
|
* ```
|
|
1684
1664
|
*
|
|
1685
|
-
* @category
|
|
1665
|
+
* @category transforming
|
|
1686
1666
|
* @since 2.0.0
|
|
1687
1667
|
*/
|
|
1688
1668
|
export declare const removeMany: {
|
|
@@ -1692,7 +1672,7 @@ export declare const removeMany: {
|
|
|
1692
1672
|
* **Example** (Removing multiple keys)
|
|
1693
1673
|
*
|
|
1694
1674
|
* ```ts
|
|
1695
|
-
* import
|
|
1675
|
+
* import { HashMap } from "effect"
|
|
1696
1676
|
*
|
|
1697
1677
|
* const map1 = HashMap.make(["a", 1], ["b", 2], ["c", 3], ["d", 4])
|
|
1698
1678
|
* const map2 = HashMap.removeMany(map1, ["b", "d"])
|
|
@@ -1702,7 +1682,7 @@ export declare const removeMany: {
|
|
|
1702
1682
|
* console.log(HashMap.has(map2, "c")) // true
|
|
1703
1683
|
* ```
|
|
1704
1684
|
*
|
|
1705
|
-
* @category
|
|
1685
|
+
* @category transforming
|
|
1706
1686
|
* @since 2.0.0
|
|
1707
1687
|
*/
|
|
1708
1688
|
<K>(keys: Iterable<K>): <V>(self: HashMap<K, V>) => HashMap<K, V>;
|
|
@@ -1712,7 +1692,7 @@ export declare const removeMany: {
|
|
|
1712
1692
|
* **Example** (Removing multiple keys)
|
|
1713
1693
|
*
|
|
1714
1694
|
* ```ts
|
|
1715
|
-
* import
|
|
1695
|
+
* import { HashMap } from "effect"
|
|
1716
1696
|
*
|
|
1717
1697
|
* const map1 = HashMap.make(["a", 1], ["b", 2], ["c", 3], ["d", 4])
|
|
1718
1698
|
* const map2 = HashMap.removeMany(map1, ["b", "d"])
|
|
@@ -1722,7 +1702,7 @@ export declare const removeMany: {
|
|
|
1722
1702
|
* console.log(HashMap.has(map2, "c")) // true
|
|
1723
1703
|
* ```
|
|
1724
1704
|
*
|
|
1725
|
-
* @category
|
|
1705
|
+
* @category transforming
|
|
1726
1706
|
* @since 2.0.0
|
|
1727
1707
|
*/
|
|
1728
1708
|
<K, V>(self: HashMap<K, V>, keys: Iterable<K>): HashMap<K, V>;
|
|
@@ -1733,7 +1713,7 @@ export declare const removeMany: {
|
|
|
1733
1713
|
* **Example** (Setting multiple entries)
|
|
1734
1714
|
*
|
|
1735
1715
|
* ```ts
|
|
1736
|
-
* import
|
|
1716
|
+
* import { HashMap } from "effect"
|
|
1737
1717
|
*
|
|
1738
1718
|
* const map1 = HashMap.make(["a", 1], ["b", 2])
|
|
1739
1719
|
* const newEntries = [["c", 3], ["d", 4], ["a", 10]] as const // "a" will be overwritten
|
|
@@ -1744,8 +1724,8 @@ export declare const removeMany: {
|
|
|
1744
1724
|
* console.log(HashMap.get(map2, "c")) // Option.some(3)
|
|
1745
1725
|
* ```
|
|
1746
1726
|
*
|
|
1747
|
-
* @category
|
|
1748
|
-
* @since
|
|
1727
|
+
* @category transforming
|
|
1728
|
+
* @since 4.0.0
|
|
1749
1729
|
*/
|
|
1750
1730
|
export declare const setMany: {
|
|
1751
1731
|
/**
|
|
@@ -1754,7 +1734,7 @@ export declare const setMany: {
|
|
|
1754
1734
|
* **Example** (Setting multiple entries)
|
|
1755
1735
|
*
|
|
1756
1736
|
* ```ts
|
|
1757
|
-
* import
|
|
1737
|
+
* import { HashMap } from "effect"
|
|
1758
1738
|
*
|
|
1759
1739
|
* const map1 = HashMap.make(["a", 1], ["b", 2])
|
|
1760
1740
|
* const newEntries = [["c", 3], ["d", 4], ["a", 10]] as const // "a" will be overwritten
|
|
@@ -1765,8 +1745,8 @@ export declare const setMany: {
|
|
|
1765
1745
|
* console.log(HashMap.get(map2, "c")) // Option.some(3)
|
|
1766
1746
|
* ```
|
|
1767
1747
|
*
|
|
1768
|
-
* @category
|
|
1769
|
-
* @since
|
|
1748
|
+
* @category transforming
|
|
1749
|
+
* @since 4.0.0
|
|
1770
1750
|
*/
|
|
1771
1751
|
<K, V>(entries: Iterable<readonly [K, V]>): (self: HashMap<K, V>) => HashMap<K, V>;
|
|
1772
1752
|
/**
|
|
@@ -1775,7 +1755,7 @@ export declare const setMany: {
|
|
|
1775
1755
|
* **Example** (Setting multiple entries)
|
|
1776
1756
|
*
|
|
1777
1757
|
* ```ts
|
|
1778
|
-
* import
|
|
1758
|
+
* import { HashMap } from "effect"
|
|
1779
1759
|
*
|
|
1780
1760
|
* const map1 = HashMap.make(["a", 1], ["b", 2])
|
|
1781
1761
|
* const newEntries = [["c", 3], ["d", 4], ["a", 10]] as const // "a" will be overwritten
|
|
@@ -1786,8 +1766,8 @@ export declare const setMany: {
|
|
|
1786
1766
|
* console.log(HashMap.get(map2, "c")) // Option.some(3)
|
|
1787
1767
|
* ```
|
|
1788
1768
|
*
|
|
1789
|
-
* @category
|
|
1790
|
-
* @since
|
|
1769
|
+
* @category transforming
|
|
1770
|
+
* @since 4.0.0
|
|
1791
1771
|
*/
|
|
1792
1772
|
<K, V>(self: HashMap<K, V>, entries: Iterable<readonly [K, V]>): HashMap<K, V>;
|
|
1793
1773
|
};
|
|
@@ -1797,7 +1777,7 @@ export declare const setMany: {
|
|
|
1797
1777
|
* **Example** (Mapping values)
|
|
1798
1778
|
*
|
|
1799
1779
|
* ```ts
|
|
1800
|
-
* import
|
|
1780
|
+
* import { HashMap } from "effect"
|
|
1801
1781
|
*
|
|
1802
1782
|
* const map1 = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
1803
1783
|
* const map2 = HashMap.map(map1, (value, key) => `${key}:${value * 2}`)
|
|
@@ -1816,7 +1796,7 @@ export declare const map: {
|
|
|
1816
1796
|
* **Example** (Mapping values)
|
|
1817
1797
|
*
|
|
1818
1798
|
* ```ts
|
|
1819
|
-
* import
|
|
1799
|
+
* import { HashMap } from "effect"
|
|
1820
1800
|
*
|
|
1821
1801
|
* const map1 = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
1822
1802
|
* const map2 = HashMap.map(map1, (value, key) => `${key}:${value * 2}`)
|
|
@@ -1835,7 +1815,7 @@ export declare const map: {
|
|
|
1835
1815
|
* **Example** (Mapping values)
|
|
1836
1816
|
*
|
|
1837
1817
|
* ```ts
|
|
1838
|
-
* import
|
|
1818
|
+
* import { HashMap } from "effect"
|
|
1839
1819
|
*
|
|
1840
1820
|
* const map1 = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
1841
1821
|
* const map2 = HashMap.map(map1, (value, key) => `${key}:${value * 2}`)
|
|
@@ -1857,7 +1837,7 @@ export declare const map: {
|
|
|
1857
1837
|
* **Example** (FlatMapping values)
|
|
1858
1838
|
*
|
|
1859
1839
|
* ```ts
|
|
1860
|
-
* import
|
|
1840
|
+
* import { HashMap } from "effect"
|
|
1861
1841
|
*
|
|
1862
1842
|
* const map1 = HashMap.make(["a", 1], ["b", 2])
|
|
1863
1843
|
* const map2 = HashMap.flatMap(
|
|
@@ -1882,7 +1862,7 @@ export declare const flatMap: {
|
|
|
1882
1862
|
* **Example** (FlatMapping values)
|
|
1883
1863
|
*
|
|
1884
1864
|
* ```ts
|
|
1885
|
-
* import
|
|
1865
|
+
* import { HashMap } from "effect"
|
|
1886
1866
|
*
|
|
1887
1867
|
* const map1 = HashMap.make(["a", 1], ["b", 2])
|
|
1888
1868
|
* const map2 = HashMap.flatMap(
|
|
@@ -1907,7 +1887,7 @@ export declare const flatMap: {
|
|
|
1907
1887
|
* **Example** (FlatMapping values)
|
|
1908
1888
|
*
|
|
1909
1889
|
* ```ts
|
|
1910
|
-
* import
|
|
1890
|
+
* import { HashMap } from "effect"
|
|
1911
1891
|
*
|
|
1912
1892
|
* const map1 = HashMap.make(["a", 1], ["b", 2])
|
|
1913
1893
|
* const map2 = HashMap.flatMap(
|
|
@@ -1931,7 +1911,7 @@ export declare const flatMap: {
|
|
|
1931
1911
|
* **Example** (Iterating with side effects)
|
|
1932
1912
|
*
|
|
1933
1913
|
* ```ts
|
|
1934
|
-
* import
|
|
1914
|
+
* import { HashMap } from "effect"
|
|
1935
1915
|
*
|
|
1936
1916
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
1937
1917
|
* const collected: Array<[string, number]> = []
|
|
@@ -1953,7 +1933,7 @@ export declare const forEach: {
|
|
|
1953
1933
|
* **Example** (Iterating with side effects)
|
|
1954
1934
|
*
|
|
1955
1935
|
* ```ts
|
|
1956
|
-
* import
|
|
1936
|
+
* import { HashMap } from "effect"
|
|
1957
1937
|
*
|
|
1958
1938
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
1959
1939
|
* const collected: Array<[string, number]> = []
|
|
@@ -1975,7 +1955,7 @@ export declare const forEach: {
|
|
|
1975
1955
|
* **Example** (Iterating with side effects)
|
|
1976
1956
|
*
|
|
1977
1957
|
* ```ts
|
|
1978
|
-
* import
|
|
1958
|
+
* import { HashMap } from "effect"
|
|
1979
1959
|
*
|
|
1980
1960
|
* const map = HashMap.make(["a", 1], ["b", 2])
|
|
1981
1961
|
* const collected: Array<[string, number]> = []
|
|
@@ -1998,7 +1978,7 @@ export declare const forEach: {
|
|
|
1998
1978
|
* **Example** (Reducing values)
|
|
1999
1979
|
*
|
|
2000
1980
|
* ```ts
|
|
2001
|
-
* import
|
|
1981
|
+
* import { HashMap } from "effect"
|
|
2002
1982
|
*
|
|
2003
1983
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
2004
1984
|
* const sum = HashMap.reduce(map, 0, (acc, value) => acc + value)
|
|
@@ -2016,7 +1996,7 @@ export declare const reduce: {
|
|
|
2016
1996
|
* **Example** (Reducing values)
|
|
2017
1997
|
*
|
|
2018
1998
|
* ```ts
|
|
2019
|
-
* import
|
|
1999
|
+
* import { HashMap } from "effect"
|
|
2020
2000
|
*
|
|
2021
2001
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
2022
2002
|
* const sum = HashMap.reduce(map, 0, (acc, value) => acc + value)
|
|
@@ -2034,7 +2014,7 @@ export declare const reduce: {
|
|
|
2034
2014
|
* **Example** (Reducing values)
|
|
2035
2015
|
*
|
|
2036
2016
|
* ```ts
|
|
2037
|
-
* import
|
|
2017
|
+
* import { HashMap } from "effect"
|
|
2038
2018
|
*
|
|
2039
2019
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
2040
2020
|
* const sum = HashMap.reduce(map, 0, (acc, value) => acc + value)
|
|
@@ -2053,7 +2033,7 @@ export declare const reduce: {
|
|
|
2053
2033
|
* **Example** (Filtering entries)
|
|
2054
2034
|
*
|
|
2055
2035
|
* ```ts
|
|
2056
|
-
* import
|
|
2036
|
+
* import { HashMap } from "effect"
|
|
2057
2037
|
*
|
|
2058
2038
|
* const map1 = HashMap.make(["a", 1], ["b", 2], ["c", 3], ["d", 4])
|
|
2059
2039
|
* const map2 = HashMap.filter(map1, (value) => value % 2 === 0)
|
|
@@ -2074,7 +2054,7 @@ export declare const filter: {
|
|
|
2074
2054
|
* **Example** (Filtering entries)
|
|
2075
2055
|
*
|
|
2076
2056
|
* ```ts
|
|
2077
|
-
* import
|
|
2057
|
+
* import { HashMap } from "effect"
|
|
2078
2058
|
*
|
|
2079
2059
|
* const map1 = HashMap.make(["a", 1], ["b", 2], ["c", 3], ["d", 4])
|
|
2080
2060
|
* const map2 = HashMap.filter(map1, (value) => value % 2 === 0)
|
|
@@ -2095,7 +2075,7 @@ export declare const filter: {
|
|
|
2095
2075
|
* **Example** (Filtering entries)
|
|
2096
2076
|
*
|
|
2097
2077
|
* ```ts
|
|
2098
|
-
* import
|
|
2078
|
+
* import { HashMap } from "effect"
|
|
2099
2079
|
*
|
|
2100
2080
|
* const map1 = HashMap.make(["a", 1], ["b", 2], ["c", 3], ["d", 4])
|
|
2101
2081
|
* const map2 = HashMap.filter(map1, (value) => value % 2 === 0)
|
|
@@ -2117,8 +2097,7 @@ export declare const filter: {
|
|
|
2117
2097
|
* **Example** (Compacting Option values)
|
|
2118
2098
|
*
|
|
2119
2099
|
* ```ts
|
|
2120
|
-
* import
|
|
2121
|
-
* import * as Option from "effect/Option"
|
|
2100
|
+
* import { HashMap, Option } from "effect"
|
|
2122
2101
|
*
|
|
2123
2102
|
* const map1 = HashMap.make(
|
|
2124
2103
|
* ["a", Option.some(1)],
|
|
@@ -2143,8 +2122,7 @@ export declare const compact: <K, A>(self: HashMap<K, Option<A>>) => HashMap<K,
|
|
|
2143
2122
|
* **Example** (Filtering and mapping Results)
|
|
2144
2123
|
*
|
|
2145
2124
|
* ```ts
|
|
2146
|
-
* import
|
|
2147
|
-
* import * as Result from "effect/Result"
|
|
2125
|
+
* import { HashMap, Result } from "effect"
|
|
2148
2126
|
*
|
|
2149
2127
|
* const map1 = HashMap.make(["a", 1], ["b", 2], ["c", 3], ["d", 4])
|
|
2150
2128
|
* const map2 = HashMap.filterMap(
|
|
@@ -2168,8 +2146,7 @@ export declare const filterMap: {
|
|
|
2168
2146
|
* **Example** (Filtering and mapping Results)
|
|
2169
2147
|
*
|
|
2170
2148
|
* ```ts
|
|
2171
|
-
* import
|
|
2172
|
-
* import * as Result from "effect/Result"
|
|
2149
|
+
* import { HashMap, Result } from "effect"
|
|
2173
2150
|
*
|
|
2174
2151
|
* const map1 = HashMap.make(["a", 1], ["b", 2], ["c", 3], ["d", 4])
|
|
2175
2152
|
* const map2 = HashMap.filterMap(
|
|
@@ -2193,8 +2170,7 @@ export declare const filterMap: {
|
|
|
2193
2170
|
* **Example** (Filtering and mapping Results)
|
|
2194
2171
|
*
|
|
2195
2172
|
* ```ts
|
|
2196
|
-
* import
|
|
2197
|
-
* import * as Result from "effect/Result"
|
|
2173
|
+
* import { HashMap, Result } from "effect"
|
|
2198
2174
|
*
|
|
2199
2175
|
* const map1 = HashMap.make(["a", 1], ["b", 2], ["c", 3], ["d", 4])
|
|
2200
2176
|
* const map2 = HashMap.filterMap(
|
|
@@ -2219,8 +2195,7 @@ export declare const filterMap: {
|
|
|
2219
2195
|
* **Example** (Finding the first matching entry)
|
|
2220
2196
|
*
|
|
2221
2197
|
* ```ts
|
|
2222
|
-
* import
|
|
2223
|
-
* import * as Option from "effect/Option"
|
|
2198
|
+
* import { HashMap, Option } from "effect"
|
|
2224
2199
|
*
|
|
2225
2200
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
2226
2201
|
* const result = HashMap.findFirst(map, (value, key) => key === "b" && value > 1)
|
|
@@ -2239,8 +2214,7 @@ export declare const findFirst: {
|
|
|
2239
2214
|
* **Example** (Finding the first matching entry)
|
|
2240
2215
|
*
|
|
2241
2216
|
* ```ts
|
|
2242
|
-
* import
|
|
2243
|
-
* import * as Option from "effect/Option"
|
|
2217
|
+
* import { HashMap, Option } from "effect"
|
|
2244
2218
|
*
|
|
2245
2219
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
2246
2220
|
* const result = HashMap.findFirst(map, (value, key) => key === "b" && value > 1)
|
|
@@ -2259,8 +2233,7 @@ export declare const findFirst: {
|
|
|
2259
2233
|
* **Example** (Finding the first matching entry)
|
|
2260
2234
|
*
|
|
2261
2235
|
* ```ts
|
|
2262
|
-
* import
|
|
2263
|
-
* import * as Option from "effect/Option"
|
|
2236
|
+
* import { HashMap, Option } from "effect"
|
|
2264
2237
|
*
|
|
2265
2238
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
2266
2239
|
* const result = HashMap.findFirst(map, (value, key) => key === "b" && value > 1)
|
|
@@ -2279,7 +2252,7 @@ export declare const findFirst: {
|
|
|
2279
2252
|
* **Example** (Checking for any matching entry)
|
|
2280
2253
|
*
|
|
2281
2254
|
* ```ts
|
|
2282
|
-
* import
|
|
2255
|
+
* import { HashMap } from "effect"
|
|
2283
2256
|
*
|
|
2284
2257
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
2285
2258
|
*
|
|
@@ -2297,7 +2270,7 @@ export declare const some: {
|
|
|
2297
2270
|
* **Example** (Checking for any matching entry)
|
|
2298
2271
|
*
|
|
2299
2272
|
* ```ts
|
|
2300
|
-
* import
|
|
2273
|
+
* import { HashMap } from "effect"
|
|
2301
2274
|
*
|
|
2302
2275
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
2303
2276
|
*
|
|
@@ -2315,7 +2288,7 @@ export declare const some: {
|
|
|
2315
2288
|
* **Example** (Checking for any matching entry)
|
|
2316
2289
|
*
|
|
2317
2290
|
* ```ts
|
|
2318
|
-
* import
|
|
2291
|
+
* import { HashMap } from "effect"
|
|
2319
2292
|
*
|
|
2320
2293
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
2321
2294
|
*
|
|
@@ -2334,7 +2307,7 @@ export declare const some: {
|
|
|
2334
2307
|
* **Example** (Checking all entries)
|
|
2335
2308
|
*
|
|
2336
2309
|
* ```ts
|
|
2337
|
-
* import
|
|
2310
|
+
* import { HashMap } from "effect"
|
|
2338
2311
|
*
|
|
2339
2312
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
2340
2313
|
*
|
|
@@ -2342,9 +2315,6 @@ export declare const some: {
|
|
|
2342
2315
|
* console.log(HashMap.every(map, (value) => value > 1)) // false
|
|
2343
2316
|
* ```
|
|
2344
2317
|
*
|
|
2345
|
-
* @param self - The hashmap to check.
|
|
2346
|
-
* @param predicate - The condition to test entries (value, key).
|
|
2347
|
-
*
|
|
2348
2318
|
* @category elements
|
|
2349
2319
|
* @since 3.14.0
|
|
2350
2320
|
*/
|
|
@@ -2355,7 +2325,7 @@ export declare const every: {
|
|
|
2355
2325
|
* **Example** (Checking all entries)
|
|
2356
2326
|
*
|
|
2357
2327
|
* ```ts
|
|
2358
|
-
* import
|
|
2328
|
+
* import { HashMap } from "effect"
|
|
2359
2329
|
*
|
|
2360
2330
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
2361
2331
|
*
|
|
@@ -2363,9 +2333,6 @@ export declare const every: {
|
|
|
2363
2333
|
* console.log(HashMap.every(map, (value) => value > 1)) // false
|
|
2364
2334
|
* ```
|
|
2365
2335
|
*
|
|
2366
|
-
* @param self - The hashmap to check.
|
|
2367
|
-
* @param predicate - The condition to test entries (value, key).
|
|
2368
|
-
*
|
|
2369
2336
|
* @category elements
|
|
2370
2337
|
* @since 3.14.0
|
|
2371
2338
|
*/
|
|
@@ -2376,7 +2343,7 @@ export declare const every: {
|
|
|
2376
2343
|
* **Example** (Checking all entries)
|
|
2377
2344
|
*
|
|
2378
2345
|
* ```ts
|
|
2379
|
-
* import
|
|
2346
|
+
* import { HashMap } from "effect"
|
|
2380
2347
|
*
|
|
2381
2348
|
* const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
|
|
2382
2349
|
*
|
|
@@ -2384,9 +2351,6 @@ export declare const every: {
|
|
|
2384
2351
|
* console.log(HashMap.every(map, (value) => value > 1)) // false
|
|
2385
2352
|
* ```
|
|
2386
2353
|
*
|
|
2387
|
-
* @param self - The hashmap to check.
|
|
2388
|
-
* @param predicate - The condition to test entries (value, key).
|
|
2389
|
-
*
|
|
2390
2354
|
* @category elements
|
|
2391
2355
|
* @since 3.14.0
|
|
2392
2356
|
*/
|