effect 4.0.0-beta.71 → 4.0.0-beta.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Array.d.ts +65 -111
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +28 -44
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +66 -58
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +30 -26
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +21 -19
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +17 -15
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +15 -17
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +13 -13
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +2 -3
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +2 -3
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +9 -9
- package/dist/Cache.js +3 -3
- package/dist/Cause.d.ts +35 -39
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +31 -33
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +141 -99
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +56 -42
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +3 -3
- package/dist/ChannelSchema.js +1 -1
- package/dist/Chunk.d.ts +67 -54
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +33 -22
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +3 -3
- package/dist/Clock.js +1 -1
- package/dist/Combiner.d.ts +6 -10
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +6 -10
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +9 -10
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +7 -8
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +4 -4
- package/dist/ConfigProvider.js +4 -4
- package/dist/Console.d.ts +11 -7
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +11 -7
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +35 -35
- package/dist/Context.js +13 -13
- package/dist/Cron.d.ts +7 -6
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +7 -6
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +1 -1
- package/dist/Crypto.js +1 -1
- package/dist/Data.d.ts +26 -32
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +9 -8
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +164 -122
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +86 -66
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +6 -6
- package/dist/Deferred.js +4 -4
- package/dist/Duration.d.ts +39 -39
- package/dist/Duration.js +21 -21
- package/dist/Effect.d.ts +220 -309
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +115 -140
- 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 +13 -10
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +12 -9
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +3 -4
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +2 -3
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +5 -19
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +5 -14
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +14 -13
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +10 -9
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +7 -2
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +7 -2
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +25 -23
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +13 -13
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +4 -4
- package/dist/Fiber.js +2 -2
- package/dist/FiberHandle.d.ts +6 -6
- package/dist/FiberHandle.js +4 -4
- package/dist/FiberMap.d.ts +18 -18
- package/dist/FiberMap.js +8 -8
- package/dist/FiberSet.d.ts +21 -13
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +17 -9
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +13 -9
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +11 -7
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +2 -2
- package/dist/Filter.js +2 -2
- package/dist/Formatter.d.ts +1 -3
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +1 -3
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +12 -12
- package/dist/Function.js +12 -12
- package/dist/Graph.d.ts +22 -22
- package/dist/Graph.js +12 -12
- package/dist/HKT.d.ts +5 -4
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +3 -3
- package/dist/Hash.js +3 -3
- package/dist/HashMap.d.ts +33 -35
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +11 -13
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +7 -9
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +3 -5
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +16 -16
- package/dist/HashSet.js +6 -6
- package/dist/Inspectable.d.ts +4 -4
- package/dist/Inspectable.js +4 -4
- package/dist/Iterable.d.ts +82 -56
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +28 -20
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +1 -1
- package/dist/JsonPatch.js +1 -1
- package/dist/JsonPointer.d.ts +3 -3
- package/dist/JsonPointer.js +3 -3
- package/dist/JsonSchema.d.ts +13 -23
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +13 -23
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +2 -2
- package/dist/Latch.js +2 -2
- package/dist/Layer.d.ts +47 -27
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +23 -15
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +1 -2
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +1 -2
- package/dist/LayerMap.js.map +1 -1
- package/dist/LogLevel.d.ts +3 -3
- package/dist/LogLevel.js +3 -3
- package/dist/Logger.d.ts +2 -2
- package/dist/Logger.js +2 -2
- package/dist/ManagedRuntime.d.ts +1 -1
- package/dist/ManagedRuntime.js +1 -1
- package/dist/Match.d.ts +32 -37
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +32 -37
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +35 -21
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +34 -20
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +13 -19
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +5 -7
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +4 -4
- package/dist/MutableHashSet.js +2 -2
- package/dist/MutableList.d.ts +16 -6
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +15 -5
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +5 -4
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +3 -2
- package/dist/MutableRef.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +3 -3
- package/dist/NonEmptyIterable.js +1 -1
- package/dist/Number.d.ts +20 -18
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +16 -14
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +11 -18
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +7 -14
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +21 -24
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +9 -10
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +11 -38
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +11 -33
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +5 -5
- package/dist/Ordering.js +3 -3
- package/dist/PartitionedSemaphore.d.ts +4 -8
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +3 -7
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +4 -7
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +3 -6
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +2 -2
- package/dist/Pipeable.js +2 -2
- package/dist/PlatformError.d.ts +1 -1
- package/dist/PlatformError.js +1 -1
- package/dist/Predicate.d.ts +2 -81
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +2 -47
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +3 -3
- package/dist/PrimaryKey.js +1 -1
- package/dist/PubSub.d.ts +147 -46
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +93 -32
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +1 -1
- package/dist/Pull.js +1 -1
- package/dist/Queue.d.ts +40 -24
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +36 -20
- package/dist/Queue.js.map +1 -1
- package/dist/RcMap.d.ts +3 -3
- package/dist/RcMap.js +1 -1
- package/dist/Record.d.ts +79 -52
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +33 -22
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +7 -7
- package/dist/Redactable.js +7 -7
- package/dist/Reducer.d.ts +0 -2
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +0 -2
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +12 -12
- package/dist/Ref.js +10 -10
- package/dist/References.d.ts +20 -20
- package/dist/References.js +20 -20
- package/dist/RegExp.d.ts +2 -2
- package/dist/RegExp.js +2 -2
- package/dist/Request.d.ts +3 -3
- package/dist/Request.js +3 -3
- package/dist/RequestResolver.d.ts +11 -14
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +5 -6
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Result.d.ts +52 -34
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +44 -20
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +1 -1
- package/dist/Runtime.js +1 -1
- package/dist/Schedule.d.ts +20 -24
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +12 -12
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +3 -3
- package/dist/Scheduler.js +3 -3
- package/dist/Schema.d.ts +480 -210
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +410 -172
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +40 -32
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +40 -32
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +4 -6
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +4 -6
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +35 -47
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +31 -42
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +16 -12
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +16 -12
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +47 -62
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +44 -58
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +16 -18
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +13 -15
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/Scope.d.ts +51 -14
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +29 -8
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +12 -12
- package/dist/ScopedCache.js +4 -4
- package/dist/ScopedRef.d.ts +2 -2
- package/dist/ScopedRef.js +2 -2
- package/dist/Semaphore.d.ts +1 -1
- package/dist/Semaphore.js +1 -1
- package/dist/Sink.d.ts +36 -41
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +21 -24
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +5 -4
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +4 -3
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +264 -165
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +103 -62
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +48 -47
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +32 -29
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +35 -100
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +13 -38
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +268 -91
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +90 -31
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +1 -1
- package/dist/Symbol.js +1 -1
- package/dist/SynchronizedRef.d.ts +27 -27
- package/dist/SynchronizedRef.js +9 -9
- package/dist/Terminal.d.ts +8 -3
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js +8 -3
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +25 -7
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +25 -7
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +21 -23
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +7 -7
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +26 -73
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +10 -31
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +2 -2
- package/dist/TxChunk.js +2 -2
- package/dist/TxHashMap.d.ts +20 -20
- package/dist/TxHashMap.js +8 -8
- package/dist/TxHashSet.d.ts +14 -14
- package/dist/TxHashSet.js +6 -6
- package/dist/TxPriorityQueue.d.ts +14 -6
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +12 -4
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +4 -4
- package/dist/TxPubSub.js +4 -4
- package/dist/TxQueue.d.ts +10 -10
- package/dist/TxQueue.js +10 -10
- package/dist/TxReentrantLock.d.ts +48 -12
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +38 -10
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +1 -1
- package/dist/TxRef.js +1 -1
- package/dist/TxSubscriptionRef.d.ts +1 -1
- package/dist/TxSubscriptionRef.js +1 -1
- package/dist/Types.d.ts +8 -7
- package/dist/Types.d.ts.map +1 -1
- package/dist/Unify.d.ts +19 -19
- package/dist/Utils.d.ts +1 -2
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +1 -2
- package/dist/Utils.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +3 -11
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +3 -11
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +10 -5
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +10 -5
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts +20 -5
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +20 -5
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.d.ts +5 -4
- package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.js +4 -3
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +7 -2
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +7 -2
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +10 -5
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +10 -5
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +291 -169
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +270 -147
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +49 -13
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +21 -9
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +1 -1
- package/dist/unstable/ai/Prompt.js +1 -1
- package/dist/unstable/ai/Response.d.ts +1 -1
- package/dist/unstable/ai/Response.js +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +7 -2
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +7 -2
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +3 -3
- package/dist/unstable/ai/Tool.js +3 -3
- package/dist/unstable/cli/CliError.d.ts +3 -3
- package/dist/unstable/cli/CliError.js +3 -3
- package/dist/unstable/cli/CliOutput.d.ts +1 -1
- package/dist/unstable/cli/Command.d.ts +3 -3
- package/dist/unstable/cli/Command.js +1 -1
- package/dist/unstable/cli/Flag.d.ts +9 -9
- package/dist/unstable/cli/Flag.js +3 -3
- package/dist/unstable/cli/GlobalFlag.d.ts +13 -6
- package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/unstable/cli/GlobalFlag.js +13 -6
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +2 -2
- package/dist/unstable/cli/Param.js +2 -2
- package/dist/unstable/cli/Primitive.d.ts +1 -1
- package/dist/unstable/cli/Primitive.js +1 -1
- package/dist/unstable/cli/Prompt.d.ts +11 -6
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +26 -9
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/internal/parser.js +1 -1
- package/dist/unstable/cluster/ClusterMetrics.d.ts +5 -5
- package/dist/unstable/cluster/ClusterMetrics.js +5 -5
- package/dist/unstable/cluster/ClusterSchema.d.ts +11 -2
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +11 -2
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +49 -10
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts +6 -1
- package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js +6 -1
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +15 -5
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +15 -5
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +5 -6
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +4 -5
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +11 -11
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +11 -11
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +16 -8
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +16 -8
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +10 -10
- package/dist/unstable/cluster/Message.js +10 -10
- package/dist/unstable/cluster/MessageStorage.d.ts +7 -7
- package/dist/unstable/cluster/MessageStorage.js +6 -6
- package/dist/unstable/cluster/Reply.d.ts +18 -8
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +18 -8
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +1 -1
- package/dist/unstable/cluster/Runner.js +1 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts +7 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.js +7 -1
- package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +4 -4
- package/dist/unstable/cluster/RunnerHealth.js +4 -4
- package/dist/unstable/cluster/RunnerServer.d.ts +4 -3
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +4 -3
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/Runners.d.ts +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +2 -2
- package/dist/unstable/cluster/ShardId.js +2 -2
- package/dist/unstable/cluster/Sharding.d.ts +8 -3
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +8 -3
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.d.ts +3 -3
- package/dist/unstable/cluster/ShardingConfig.js +3 -3
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts +1 -2
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.js +1 -2
- package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
- package/dist/unstable/cluster/SingleRunner.d.ts +1 -1
- package/dist/unstable/cluster/SingleRunner.js +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +6 -5
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +6 -5
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.d.ts +6 -1
- package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SocketRunner.js +6 -1
- package/dist/unstable/cluster/SocketRunner.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +1 -1
- package/dist/unstable/cluster/TestRunner.js +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts +2 -1
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +2 -1
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +3 -3
- package/dist/unstable/encoding/Sse.js +3 -3
- package/dist/unstable/eventlog/EventGroup.d.ts +1 -1
- package/dist/unstable/eventlog/EventGroup.js +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +7 -7
- package/dist/unstable/eventlog/EventJournal.js +5 -5
- package/dist/unstable/eventlog/EventLog.d.ts +11 -10
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +9 -8
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +8 -3
- package/dist/unstable/eventlog/EventLogEncryption.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +8 -3
- package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +28 -28
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +27 -27
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +14 -4
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +14 -4
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts +7 -2
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js +7 -2
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +7 -2
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +7 -2
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +37 -7
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +37 -7
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +33 -7
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +33 -7
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +40 -39
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +18 -17
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +6 -1
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +6 -1
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +8 -7
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +6 -5
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +6 -2
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +6 -2
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +29 -9
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +15 -5
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientError.d.ts +15 -14
- package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientError.js +12 -11
- package/dist/unstable/http/HttpClientError.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +1 -1
- package/dist/unstable/http/HttpClientRequest.js +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +3 -3
- package/dist/unstable/http/HttpEffect.js +3 -3
- package/dist/unstable/http/HttpMethod.d.ts +16 -5
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +16 -5
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +18 -13
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +14 -9
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +4 -4
- package/dist/unstable/http/HttpServer.js +4 -4
- package/dist/unstable/http/HttpServerError.d.ts +9 -9
- package/dist/unstable/http/HttpServerError.js +7 -7
- package/dist/unstable/http/HttpServerRequest.d.ts +20 -5
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +20 -5
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +24 -24
- package/dist/unstable/http/HttpServerResponse.js +8 -8
- package/dist/unstable/http/HttpTraceContext.d.ts +4 -4
- package/dist/unstable/http/HttpTraceContext.js +4 -4
- package/dist/unstable/http/Multipart.d.ts +2 -2
- package/dist/unstable/http/Multipart.js +2 -2
- package/dist/unstable/http/Url.d.ts +14 -17
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/Url.js +5 -6
- package/dist/unstable/http/Url.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +10 -10
- package/dist/unstable/http/UrlParams.js +6 -6
- package/dist/unstable/httpapi/HttpApi.d.ts +2 -2
- package/dist/unstable/httpapi/HttpApi.js +2 -2
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +3 -3
- package/dist/unstable/httpapi/HttpApiBuilder.js +2 -2
- package/dist/unstable/httpapi/HttpApiError.d.ts +2 -2
- package/dist/unstable/httpapi/HttpApiError.js +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +4 -7
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +3 -6
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts +7 -1
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +7 -1
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts +1 -1
- package/dist/unstable/observability/OtlpLogger.js +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +2 -2
- package/dist/unstable/observability/PrometheusMetrics.js +2 -2
- package/dist/unstable/persistence/KeyValueStore.d.ts +8 -3
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +6 -1
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +8 -3
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js +8 -3
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +10 -5
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +9 -4
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +20 -10
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +19 -9
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +14 -14
- package/dist/unstable/process/ChildProcess.js +7 -7
- package/dist/unstable/process/ChildProcessSpawner.d.ts +2 -2
- package/dist/unstable/process/ChildProcessSpawner.js +2 -2
- package/dist/unstable/reactivity/AsyncResult.d.ts +36 -5
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +14 -3
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +45 -13
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +34 -10
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +7 -2
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +7 -2
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +6 -1
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +6 -1
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +6 -1
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +6 -1
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +18 -14
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js +15 -11
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts +27 -12
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js +27 -12
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.d.ts +2 -2
- package/dist/unstable/rpc/RpcClientError.js +2 -2
- package/dist/unstable/rpc/RpcMessage.d.ts +5 -5
- package/dist/unstable/rpc/RpcMessage.js +4 -4
- package/dist/unstable/rpc/RpcSchema.d.ts +1 -1
- package/dist/unstable/rpc/RpcSchema.js +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +19 -12
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +19 -12
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +22 -17
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +22 -17
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +32 -33
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +25 -26
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +1 -1
- package/dist/unstable/schema/VariantSchema.js +1 -1
- package/dist/unstable/socket/Socket.d.ts +8 -2
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +8 -2
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/socket/SocketServer.d.ts +2 -2
- package/dist/unstable/socket/SocketServer.js +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +7 -2
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +7 -2
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.d.ts +1 -1
- package/dist/unstable/sql/SqlConnection.js +1 -1
- package/dist/unstable/sql/SqlError.d.ts +2 -2
- package/dist/unstable/sql/SqlError.js +2 -2
- package/dist/unstable/sql/SqlResolver.d.ts +3 -3
- package/dist/unstable/sql/SqlResolver.js +1 -1
- package/dist/unstable/sql/SqlSchema.d.ts +19 -4
- package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
- package/dist/unstable/sql/SqlSchema.js +19 -4
- package/dist/unstable/sql/SqlSchema.js.map +1 -1
- package/dist/unstable/workers/Transferable.d.ts +3 -6
- package/dist/unstable/workers/Transferable.d.ts.map +1 -1
- package/dist/unstable/workers/Transferable.js +3 -6
- package/dist/unstable/workers/Transferable.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts +1 -1
- package/dist/unstable/workers/Worker.js +1 -1
- package/dist/unstable/workers/WorkerError.d.ts +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts +2 -2
- package/dist/unstable/workflow/DurableClock.js +2 -2
- package/dist/unstable/workflow/DurableDeferred.d.ts +12 -12
- package/dist/unstable/workflow/DurableDeferred.js +7 -7
- package/dist/unstable/workflow/DurableQueue.d.ts +3 -3
- package/dist/unstable/workflow/DurableQueue.js +3 -3
- package/dist/unstable/workflow/Workflow.d.ts +22 -23
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +17 -18
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +26 -8
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js +25 -7
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +65 -113
- package/src/BigDecimal.ts +66 -58
- package/src/BigInt.ts +21 -19
- package/src/Boolean.ts +15 -17
- package/src/Brand.ts +2 -3
- package/src/Cache.ts +9 -9
- package/src/Cause.ts +35 -39
- package/src/Channel.ts +149 -107
- package/src/ChannelSchema.ts +3 -3
- package/src/Chunk.ts +67 -54
- package/src/Clock.ts +3 -3
- package/src/Combiner.ts +6 -10
- package/src/Config.ts +9 -10
- package/src/ConfigProvider.ts +4 -4
- package/src/Console.ts +11 -7
- package/src/Context.ts +36 -36
- package/src/Cron.ts +7 -6
- package/src/Crypto.ts +1 -1
- package/src/Data.ts +26 -32
- package/src/DateTime.ts +164 -122
- package/src/Deferred.ts +6 -6
- package/src/Duration.ts +39 -39
- package/src/Effect.ts +220 -309
- package/src/Effectable.ts +2 -2
- package/src/Encoding.ts +13 -10
- package/src/Equal.ts +3 -4
- package/src/Equivalence.ts +5 -19
- package/src/ErrorReporter.ts +14 -13
- package/src/ExecutionPlan.ts +7 -2
- package/src/Exit.ts +25 -23
- package/src/Fiber.ts +4 -4
- package/src/FiberHandle.ts +6 -6
- package/src/FiberMap.ts +20 -20
- package/src/FiberSet.ts +21 -13
- package/src/FileSystem.ts +13 -9
- package/src/Filter.ts +2 -2
- package/src/Formatter.ts +1 -3
- package/src/Function.ts +12 -12
- package/src/Graph.ts +22 -22
- package/src/HKT.ts +5 -4
- package/src/Hash.ts +3 -3
- package/src/HashMap.ts +33 -35
- package/src/HashRing.ts +7 -9
- package/src/HashSet.ts +16 -16
- package/src/Inspectable.ts +4 -4
- package/src/Iterable.ts +82 -56
- package/src/JsonPatch.ts +1 -1
- package/src/JsonPointer.ts +3 -3
- package/src/JsonSchema.ts +13 -23
- package/src/Latch.ts +2 -2
- package/src/Layer.ts +47 -27
- package/src/LayerMap.ts +1 -2
- package/src/LogLevel.ts +3 -3
- package/src/Logger.ts +6 -6
- package/src/ManagedRuntime.ts +1 -1
- package/src/Match.ts +32 -37
- package/src/Metric.ts +35 -21
- package/src/MutableHashMap.ts +21 -31
- package/src/MutableHashSet.ts +4 -4
- package/src/MutableList.ts +16 -6
- package/src/MutableRef.ts +5 -4
- package/src/NonEmptyIterable.ts +3 -3
- package/src/Number.ts +20 -18
- package/src/Optic.ts +11 -18
- package/src/Option.ts +21 -24
- package/src/Order.ts +11 -38
- package/src/Ordering.ts +5 -5
- package/src/PartitionedSemaphore.ts +4 -8
- package/src/Path.ts +4 -7
- package/src/Pipeable.ts +2 -2
- package/src/PlatformError.ts +1 -1
- package/src/Predicate.ts +2 -81
- package/src/PrimaryKey.ts +3 -3
- package/src/PubSub.ts +147 -46
- package/src/Pull.ts +1 -1
- package/src/Queue.ts +40 -24
- package/src/RcMap.ts +3 -3
- package/src/Record.ts +79 -52
- package/src/Redactable.ts +7 -7
- package/src/Reducer.ts +0 -2
- package/src/Ref.ts +32 -32
- package/src/References.ts +20 -20
- package/src/RegExp.ts +2 -2
- package/src/Request.ts +3 -3
- package/src/RequestResolver.ts +11 -14
- package/src/Result.ts +52 -34
- package/src/Runtime.ts +1 -1
- package/src/Schedule.ts +28 -36
- package/src/Scheduler.ts +3 -3
- package/src/Schema.ts +480 -210
- package/src/SchemaAST.ts +40 -32
- package/src/SchemaGetter.ts +4 -6
- package/src/SchemaIssue.ts +35 -47
- package/src/SchemaParser.ts +16 -12
- package/src/SchemaRepresentation.ts +47 -62
- package/src/SchemaTransformation.ts +16 -18
- package/src/Scope.ts +51 -14
- package/src/ScopedCache.ts +14 -14
- package/src/ScopedRef.ts +2 -2
- package/src/Semaphore.ts +1 -1
- package/src/Sink.ts +36 -41
- package/src/Stdio.ts +5 -4
- package/src/Stream.ts +275 -176
- package/src/String.ts +50 -49
- package/src/Struct.ts +35 -100
- package/src/SubscriptionRef.ts +268 -91
- package/src/Symbol.ts +1 -1
- package/src/SynchronizedRef.ts +27 -27
- package/src/Terminal.ts +8 -3
- package/src/Tracer.ts +25 -7
- package/src/Trie.ts +21 -23
- package/src/Tuple.ts +26 -73
- package/src/TxChunk.ts +2 -2
- package/src/TxHashMap.ts +22 -22
- package/src/TxHashSet.ts +22 -22
- package/src/TxPriorityQueue.ts +14 -6
- package/src/TxPubSub.ts +4 -4
- package/src/TxQueue.ts +10 -10
- package/src/TxReentrantLock.ts +48 -12
- package/src/TxRef.ts +1 -1
- package/src/TxSubscriptionRef.ts +1 -1
- package/src/Types.ts +8 -7
- package/src/Unify.ts +19 -19
- package/src/Utils.ts +1 -2
- package/src/testing/TestSchema.ts +3 -11
- package/src/unstable/ai/AiError.ts +10 -5
- package/src/unstable/ai/Chat.ts +20 -5
- package/src/unstable/ai/EmbeddingModel.ts +5 -4
- package/src/unstable/ai/IdGenerator.ts +7 -2
- package/src/unstable/ai/LanguageModel.ts +10 -5
- package/src/unstable/ai/McpSchema.ts +291 -169
- package/src/unstable/ai/McpServer.ts +49 -13
- package/src/unstable/ai/Prompt.ts +1 -1
- package/src/unstable/ai/Response.ts +1 -1
- package/src/unstable/ai/Tokenizer.ts +7 -2
- package/src/unstable/ai/Tool.ts +3 -3
- package/src/unstable/cli/CliError.ts +3 -3
- package/src/unstable/cli/CliOutput.ts +1 -1
- package/src/unstable/cli/Command.ts +3 -3
- package/src/unstable/cli/Flag.ts +9 -9
- package/src/unstable/cli/GlobalFlag.ts +13 -6
- package/src/unstable/cli/Param.ts +2 -2
- package/src/unstable/cli/Primitive.ts +1 -1
- package/src/unstable/cli/Prompt.ts +37 -13
- package/src/unstable/cli/internal/parser.ts +1 -1
- package/src/unstable/cluster/ClusterMetrics.ts +5 -5
- package/src/unstable/cluster/ClusterSchema.ts +11 -2
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +63 -11
- package/src/unstable/cluster/DeliverAt.ts +6 -1
- package/src/unstable/cluster/Entity.ts +15 -5
- package/src/unstable/cluster/EntityResource.ts +5 -6
- package/src/unstable/cluster/Envelope.ts +11 -11
- package/src/unstable/cluster/HttpRunner.ts +16 -8
- package/src/unstable/cluster/Message.ts +10 -10
- package/src/unstable/cluster/MessageStorage.ts +7 -7
- package/src/unstable/cluster/Reply.ts +18 -8
- package/src/unstable/cluster/Runner.ts +1 -1
- package/src/unstable/cluster/RunnerAddress.ts +7 -1
- package/src/unstable/cluster/RunnerHealth.ts +4 -4
- package/src/unstable/cluster/RunnerServer.ts +4 -3
- package/src/unstable/cluster/Runners.ts +1 -1
- package/src/unstable/cluster/ShardId.ts +2 -2
- package/src/unstable/cluster/Sharding.ts +8 -3
- package/src/unstable/cluster/ShardingConfig.ts +3 -3
- package/src/unstable/cluster/ShardingRegistrationEvent.ts +1 -2
- package/src/unstable/cluster/SingleRunner.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +6 -5
- package/src/unstable/cluster/SocketRunner.ts +6 -1
- package/src/unstable/cluster/TestRunner.ts +1 -1
- package/src/unstable/encoding/Msgpack.ts +2 -1
- package/src/unstable/encoding/Sse.ts +3 -3
- package/src/unstable/eventlog/EventGroup.ts +1 -1
- package/src/unstable/eventlog/EventJournal.ts +7 -7
- package/src/unstable/eventlog/EventLog.ts +11 -10
- package/src/unstable/eventlog/EventLogEncryption.ts +8 -3
- package/src/unstable/eventlog/EventLogMessage.ts +28 -28
- package/src/unstable/eventlog/EventLogRemote.ts +14 -4
- package/src/unstable/eventlog/EventLogServer.ts +7 -2
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +7 -2
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +37 -7
- package/src/unstable/eventlog/EventLogSessionAuth.ts +33 -7
- package/src/unstable/http/Cookies.ts +40 -39
- package/src/unstable/http/FetchHttpClient.ts +6 -1
- package/src/unstable/http/Headers.ts +10 -9
- package/src/unstable/http/HttpBody.ts +6 -2
- package/src/unstable/http/HttpClient.ts +29 -9
- package/src/unstable/http/HttpClientError.ts +15 -14
- package/src/unstable/http/HttpClientRequest.ts +1 -1
- package/src/unstable/http/HttpEffect.ts +3 -3
- package/src/unstable/http/HttpMethod.ts +16 -5
- package/src/unstable/http/HttpRouter.ts +18 -13
- package/src/unstable/http/HttpServer.ts +4 -4
- package/src/unstable/http/HttpServerError.ts +9 -9
- package/src/unstable/http/HttpServerRequest.ts +20 -5
- package/src/unstable/http/HttpServerResponse.ts +24 -24
- package/src/unstable/http/HttpTraceContext.ts +4 -4
- package/src/unstable/http/Multipart.ts +2 -2
- package/src/unstable/http/Url.ts +14 -17
- package/src/unstable/http/UrlParams.ts +10 -10
- package/src/unstable/httpapi/HttpApi.ts +2 -2
- package/src/unstable/httpapi/HttpApiBuilder.ts +3 -3
- package/src/unstable/httpapi/HttpApiError.ts +2 -2
- package/src/unstable/httpapi/HttpApiSchema.ts +4 -7
- package/src/unstable/httpapi/HttpApiTest.ts +1 -1
- package/src/unstable/httpapi/OpenApi.ts +7 -1
- package/src/unstable/observability/OtlpLogger.ts +1 -1
- package/src/unstable/observability/PrometheusMetrics.ts +2 -2
- package/src/unstable/persistence/KeyValueStore.ts +8 -3
- package/src/unstable/persistence/Persistable.ts +8 -3
- package/src/unstable/persistence/PersistedQueue.ts +10 -5
- package/src/unstable/persistence/RateLimiter.ts +20 -10
- package/src/unstable/process/ChildProcess.ts +14 -14
- package/src/unstable/process/ChildProcessSpawner.ts +2 -2
- package/src/unstable/reactivity/AsyncResult.ts +58 -7
- package/src/unstable/reactivity/Atom.ts +53 -13
- package/src/unstable/reactivity/AtomRegistry.ts +7 -2
- package/src/unstable/reactivity/Hydration.ts +6 -1
- package/src/unstable/reactivity/Reactivity.ts +6 -1
- package/src/unstable/rpc/Rpc.ts +18 -14
- package/src/unstable/rpc/RpcClient.ts +27 -12
- package/src/unstable/rpc/RpcClientError.ts +2 -2
- package/src/unstable/rpc/RpcMessage.ts +5 -5
- package/src/unstable/rpc/RpcSchema.ts +1 -1
- package/src/unstable/rpc/RpcSerialization.ts +19 -12
- package/src/unstable/rpc/RpcServer.ts +22 -17
- package/src/unstable/schema/Model.ts +32 -33
- package/src/unstable/schema/VariantSchema.ts +1 -1
- package/src/unstable/socket/Socket.ts +8 -2
- package/src/unstable/socket/SocketServer.ts +2 -2
- package/src/unstable/sql/SqlClient.ts +7 -2
- package/src/unstable/sql/SqlConnection.ts +1 -1
- package/src/unstable/sql/SqlError.ts +2 -2
- package/src/unstable/sql/SqlResolver.ts +3 -3
- package/src/unstable/sql/SqlSchema.ts +19 -4
- package/src/unstable/workers/Transferable.ts +3 -6
- package/src/unstable/workers/Worker.ts +1 -1
- package/src/unstable/workers/WorkerError.ts +1 -1
- package/src/unstable/workflow/DurableClock.ts +2 -2
- package/src/unstable/workflow/DurableDeferred.ts +12 -12
- package/src/unstable/workflow/DurableQueue.ts +3 -3
- package/src/unstable/workflow/Workflow.ts +22 -23
- package/src/unstable/workflow/WorkflowEngine.ts +26 -8
package/dist/Array.d.ts
CHANGED
|
@@ -9,12 +9,12 @@ import * as Reducer from "./Reducer.ts";
|
|
|
9
9
|
import * as Result from "./Result.ts";
|
|
10
10
|
import type { NoInfer, TupleOf } from "./Types.ts";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Exposes the global array constructor.
|
|
13
13
|
*
|
|
14
14
|
* **When to use**
|
|
15
15
|
*
|
|
16
|
-
* Use
|
|
17
|
-
*
|
|
16
|
+
* Use to access native JavaScript array constructor methods such as `isArray`
|
|
17
|
+
* or `from` from the Effect module namespace.
|
|
18
18
|
*
|
|
19
19
|
* **Example** (Using the Array constructor)
|
|
20
20
|
*
|
|
@@ -742,7 +742,6 @@ export declare const matchRight: {
|
|
|
742
742
|
* **Details**
|
|
743
743
|
*
|
|
744
744
|
* - Always returns a non-empty array.
|
|
745
|
-
* - Does not mutate the input.
|
|
746
745
|
*
|
|
747
746
|
* **Example** (Prepending an element)
|
|
748
747
|
*
|
|
@@ -770,7 +769,6 @@ export declare const prepend: {
|
|
|
770
769
|
* **Details**
|
|
771
770
|
*
|
|
772
771
|
* - Always returns a non-empty array.
|
|
773
|
-
* - Does not mutate the input.
|
|
774
772
|
*
|
|
775
773
|
* **Example** (Prepending an element)
|
|
776
774
|
*
|
|
@@ -798,7 +796,6 @@ export declare const prepend: {
|
|
|
798
796
|
* **Details**
|
|
799
797
|
*
|
|
800
798
|
* - Always returns a non-empty array.
|
|
801
|
-
* - Does not mutate the input.
|
|
802
799
|
*
|
|
803
800
|
* **Example** (Prepending an element)
|
|
804
801
|
*
|
|
@@ -827,7 +824,6 @@ export declare const prepend: {
|
|
|
827
824
|
* **Details**
|
|
828
825
|
*
|
|
829
826
|
* - If either input is non-empty, the result is a `NonEmptyArray`.
|
|
830
|
-
* - Does not mutate the input.
|
|
831
827
|
*
|
|
832
828
|
* **Example** (Prepending multiple elements)
|
|
833
829
|
*
|
|
@@ -855,7 +851,6 @@ export declare const prependAll: {
|
|
|
855
851
|
* **Details**
|
|
856
852
|
*
|
|
857
853
|
* - If either input is non-empty, the result is a `NonEmptyArray`.
|
|
858
|
-
* - Does not mutate the input.
|
|
859
854
|
*
|
|
860
855
|
* **Example** (Prepending multiple elements)
|
|
861
856
|
*
|
|
@@ -883,7 +878,6 @@ export declare const prependAll: {
|
|
|
883
878
|
* **Details**
|
|
884
879
|
*
|
|
885
880
|
* - If either input is non-empty, the result is a `NonEmptyArray`.
|
|
886
|
-
* - Does not mutate the input.
|
|
887
881
|
*
|
|
888
882
|
* **Example** (Prepending multiple elements)
|
|
889
883
|
*
|
|
@@ -911,7 +905,6 @@ export declare const prependAll: {
|
|
|
911
905
|
* **Details**
|
|
912
906
|
*
|
|
913
907
|
* - If either input is non-empty, the result is a `NonEmptyArray`.
|
|
914
|
-
* - Does not mutate the input.
|
|
915
908
|
*
|
|
916
909
|
* **Example** (Prepending multiple elements)
|
|
917
910
|
*
|
|
@@ -939,7 +932,6 @@ export declare const prependAll: {
|
|
|
939
932
|
* **Details**
|
|
940
933
|
*
|
|
941
934
|
* - If either input is non-empty, the result is a `NonEmptyArray`.
|
|
942
|
-
* - Does not mutate the input.
|
|
943
935
|
*
|
|
944
936
|
* **Example** (Prepending multiple elements)
|
|
945
937
|
*
|
|
@@ -969,7 +961,6 @@ export declare const prependAll: {
|
|
|
969
961
|
* **Details**
|
|
970
962
|
*
|
|
971
963
|
* - Always returns a non-empty array.
|
|
972
|
-
* - Does not mutate the input.
|
|
973
964
|
*
|
|
974
965
|
* **Example** (Appending an element)
|
|
975
966
|
*
|
|
@@ -998,7 +989,6 @@ export declare const append: {
|
|
|
998
989
|
* **Details**
|
|
999
990
|
*
|
|
1000
991
|
* - Always returns a non-empty array.
|
|
1001
|
-
* - Does not mutate the input.
|
|
1002
992
|
*
|
|
1003
993
|
* **Example** (Appending an element)
|
|
1004
994
|
*
|
|
@@ -1027,7 +1017,6 @@ export declare const append: {
|
|
|
1027
1017
|
* **Details**
|
|
1028
1018
|
*
|
|
1029
1019
|
* - Always returns a non-empty array.
|
|
1030
|
-
* - Does not mutate the input.
|
|
1031
1020
|
*
|
|
1032
1021
|
* **Example** (Appending an element)
|
|
1033
1022
|
*
|
|
@@ -1057,7 +1046,6 @@ export declare const append: {
|
|
|
1057
1046
|
* **Details**
|
|
1058
1047
|
*
|
|
1059
1048
|
* - If either input is non-empty, the result is a `NonEmptyArray`.
|
|
1060
|
-
* - Does not mutate the inputs.
|
|
1061
1049
|
*
|
|
1062
1050
|
* **Example** (Concatenating arrays)
|
|
1063
1051
|
*
|
|
@@ -1086,7 +1074,6 @@ export declare const appendAll: {
|
|
|
1086
1074
|
* **Details**
|
|
1087
1075
|
*
|
|
1088
1076
|
* - If either input is non-empty, the result is a `NonEmptyArray`.
|
|
1089
|
-
* - Does not mutate the inputs.
|
|
1090
1077
|
*
|
|
1091
1078
|
* **Example** (Concatenating arrays)
|
|
1092
1079
|
*
|
|
@@ -1115,7 +1102,6 @@ export declare const appendAll: {
|
|
|
1115
1102
|
* **Details**
|
|
1116
1103
|
*
|
|
1117
1104
|
* - If either input is non-empty, the result is a `NonEmptyArray`.
|
|
1118
|
-
* - Does not mutate the inputs.
|
|
1119
1105
|
*
|
|
1120
1106
|
* **Example** (Concatenating arrays)
|
|
1121
1107
|
*
|
|
@@ -1144,7 +1130,6 @@ export declare const appendAll: {
|
|
|
1144
1130
|
* **Details**
|
|
1145
1131
|
*
|
|
1146
1132
|
* - If either input is non-empty, the result is a `NonEmptyArray`.
|
|
1147
|
-
* - Does not mutate the inputs.
|
|
1148
1133
|
*
|
|
1149
1134
|
* **Example** (Concatenating arrays)
|
|
1150
1135
|
*
|
|
@@ -1173,7 +1158,6 @@ export declare const appendAll: {
|
|
|
1173
1158
|
* **Details**
|
|
1174
1159
|
*
|
|
1175
1160
|
* - If either input is non-empty, the result is a `NonEmptyArray`.
|
|
1176
|
-
* - Does not mutate the inputs.
|
|
1177
1161
|
*
|
|
1178
1162
|
* **Example** (Concatenating arrays)
|
|
1179
1163
|
*
|
|
@@ -1193,7 +1177,7 @@ export declare const appendAll: {
|
|
|
1193
1177
|
<A, B>(self: Iterable<A>, that: Iterable<B>): Array<A | B>;
|
|
1194
1178
|
};
|
|
1195
1179
|
/**
|
|
1196
|
-
*
|
|
1180
|
+
* Folds left-to-right while keeping every intermediate accumulator value.
|
|
1197
1181
|
*
|
|
1198
1182
|
* **When to use**
|
|
1199
1183
|
*
|
|
@@ -1222,7 +1206,7 @@ export declare const appendAll: {
|
|
|
1222
1206
|
*/
|
|
1223
1207
|
export declare const scan: {
|
|
1224
1208
|
/**
|
|
1225
|
-
*
|
|
1209
|
+
* Folds left-to-right while keeping every intermediate accumulator value.
|
|
1226
1210
|
*
|
|
1227
1211
|
* **When to use**
|
|
1228
1212
|
*
|
|
@@ -1251,7 +1235,7 @@ export declare const scan: {
|
|
|
1251
1235
|
*/
|
|
1252
1236
|
<B, A>(b: B, f: (b: B, a: A) => B): (self: Iterable<A>) => NonEmptyArray<B>;
|
|
1253
1237
|
/**
|
|
1254
|
-
*
|
|
1238
|
+
* Folds left-to-right while keeping every intermediate accumulator value.
|
|
1255
1239
|
*
|
|
1256
1240
|
* **When to use**
|
|
1257
1241
|
*
|
|
@@ -1281,7 +1265,7 @@ export declare const scan: {
|
|
|
1281
1265
|
<A, B>(self: Iterable<A>, b: B, f: (b: B, a: A) => B): NonEmptyArray<B>;
|
|
1282
1266
|
};
|
|
1283
1267
|
/**
|
|
1284
|
-
*
|
|
1268
|
+
* Folds right-to-left while keeping every intermediate accumulator value.
|
|
1285
1269
|
*
|
|
1286
1270
|
* **When to use**
|
|
1287
1271
|
*
|
|
@@ -1310,7 +1294,7 @@ export declare const scan: {
|
|
|
1310
1294
|
*/
|
|
1311
1295
|
export declare const scanRight: {
|
|
1312
1296
|
/**
|
|
1313
|
-
*
|
|
1297
|
+
* Folds right-to-left while keeping every intermediate accumulator value.
|
|
1314
1298
|
*
|
|
1315
1299
|
* **When to use**
|
|
1316
1300
|
*
|
|
@@ -1339,7 +1323,7 @@ export declare const scanRight: {
|
|
|
1339
1323
|
*/
|
|
1340
1324
|
<B, A>(b: B, f: (b: B, a: A) => B): (self: Iterable<A>) => NonEmptyArray<B>;
|
|
1341
1325
|
/**
|
|
1342
|
-
*
|
|
1326
|
+
* Folds right-to-left while keeping every intermediate accumulator value.
|
|
1343
1327
|
*
|
|
1344
1328
|
* **When to use**
|
|
1345
1329
|
*
|
|
@@ -1369,7 +1353,7 @@ export declare const scanRight: {
|
|
|
1369
1353
|
<A, B>(self: Iterable<A>, b: B, f: (b: B, a: A) => B): NonEmptyArray<B>;
|
|
1370
1354
|
};
|
|
1371
1355
|
/**
|
|
1372
|
-
*
|
|
1356
|
+
* Checks whether a value is an `Array`.
|
|
1373
1357
|
*
|
|
1374
1358
|
* **When to use**
|
|
1375
1359
|
*
|
|
@@ -1397,7 +1381,7 @@ export declare const scanRight: {
|
|
|
1397
1381
|
*/
|
|
1398
1382
|
export declare const isArray: {
|
|
1399
1383
|
/**
|
|
1400
|
-
*
|
|
1384
|
+
* Checks whether a value is an `Array`.
|
|
1401
1385
|
*
|
|
1402
1386
|
* **When to use**
|
|
1403
1387
|
*
|
|
@@ -1425,7 +1409,7 @@ export declare const isArray: {
|
|
|
1425
1409
|
*/
|
|
1426
1410
|
(self: unknown): self is Array<unknown>;
|
|
1427
1411
|
/**
|
|
1428
|
-
*
|
|
1412
|
+
* Checks whether a value is an `Array`.
|
|
1429
1413
|
*
|
|
1430
1414
|
* **When to use**
|
|
1431
1415
|
*
|
|
@@ -1454,7 +1438,7 @@ export declare const isArray: {
|
|
|
1454
1438
|
<T>(self: T): self is Extract<T, ReadonlyArray<any>>;
|
|
1455
1439
|
};
|
|
1456
1440
|
/**
|
|
1457
|
-
*
|
|
1441
|
+
* Checks whether a mutable `Array` is empty, narrowing the type to `[]`.
|
|
1458
1442
|
*
|
|
1459
1443
|
* **Example** (Checking for an empty array)
|
|
1460
1444
|
*
|
|
@@ -1473,7 +1457,7 @@ export declare const isArray: {
|
|
|
1473
1457
|
*/
|
|
1474
1458
|
export declare const isArrayEmpty: <A>(self: Array<A>) => self is [];
|
|
1475
1459
|
/**
|
|
1476
|
-
*
|
|
1460
|
+
* Checks whether a `ReadonlyArray` is empty, narrowing the type to `readonly []`.
|
|
1477
1461
|
*
|
|
1478
1462
|
* **Example** (Checking for an empty readonly array)
|
|
1479
1463
|
*
|
|
@@ -1492,7 +1476,7 @@ export declare const isArrayEmpty: <A>(self: Array<A>) => self is [];
|
|
|
1492
1476
|
*/
|
|
1493
1477
|
export declare const isReadonlyArrayEmpty: <A>(self: ReadonlyArray<A>) => self is readonly [];
|
|
1494
1478
|
/**
|
|
1495
|
-
*
|
|
1479
|
+
* Checks whether a mutable `Array` is non-empty, narrowing the type to
|
|
1496
1480
|
* `NonEmptyArray`.
|
|
1497
1481
|
*
|
|
1498
1482
|
* **Example** (Checking for a non-empty array)
|
|
@@ -1512,7 +1496,7 @@ export declare const isReadonlyArrayEmpty: <A>(self: ReadonlyArray<A>) => self i
|
|
|
1512
1496
|
*/
|
|
1513
1497
|
export declare const isArrayNonEmpty: <A>(self: Array<A>) => self is NonEmptyArray<A>;
|
|
1514
1498
|
/**
|
|
1515
|
-
*
|
|
1499
|
+
* Checks whether a `ReadonlyArray` is non-empty, narrowing the type to
|
|
1516
1500
|
* `NonEmptyReadonlyArray`.
|
|
1517
1501
|
*
|
|
1518
1502
|
* **Example** (Checking for a non-empty readonly array)
|
|
@@ -1551,7 +1535,7 @@ export declare const isReadonlyArrayNonEmpty: <A>(self: ReadonlyArray<A>) => sel
|
|
|
1551
1535
|
*/
|
|
1552
1536
|
export declare const length: <A>(self: ReadonlyArray<A>) => number;
|
|
1553
1537
|
/**
|
|
1554
|
-
*
|
|
1538
|
+
* Reads an element at the given index safely, returning `Option.some` or
|
|
1555
1539
|
* `Option.none` if the index is out of bounds.
|
|
1556
1540
|
*
|
|
1557
1541
|
* **When to use**
|
|
@@ -1582,7 +1566,7 @@ export declare const length: <A>(self: ReadonlyArray<A>) => number;
|
|
|
1582
1566
|
*/
|
|
1583
1567
|
export declare const get: {
|
|
1584
1568
|
/**
|
|
1585
|
-
*
|
|
1569
|
+
* Reads an element at the given index safely, returning `Option.some` or
|
|
1586
1570
|
* `Option.none` if the index is out of bounds.
|
|
1587
1571
|
*
|
|
1588
1572
|
* **When to use**
|
|
@@ -1613,7 +1597,7 @@ export declare const get: {
|
|
|
1613
1597
|
*/
|
|
1614
1598
|
(index: number): <A>(self: ReadonlyArray<A>) => Option.Option<A>;
|
|
1615
1599
|
/**
|
|
1616
|
-
*
|
|
1600
|
+
* Reads an element at the given index safely, returning `Option.some` or
|
|
1617
1601
|
* `Option.none` if the index is out of bounds.
|
|
1618
1602
|
*
|
|
1619
1603
|
* **When to use**
|
|
@@ -1791,7 +1775,7 @@ export declare const unprepend: <A>(self: NonEmptyReadonlyArray<A>) => [firstEle
|
|
|
1791
1775
|
*/
|
|
1792
1776
|
export declare const unappend: <A>(self: NonEmptyReadonlyArray<A>) => [arrayWithoutLastElement: Array<A>, lastElement: A];
|
|
1793
1777
|
/**
|
|
1794
|
-
* Returns the first element of an array wrapped in `Option.some`, or
|
|
1778
|
+
* Returns the first element of an array safely wrapped in `Option.some`, or
|
|
1795
1779
|
* `Option.none` if the array is empty.
|
|
1796
1780
|
*
|
|
1797
1781
|
* **When to use**
|
|
@@ -1838,7 +1822,7 @@ export declare const head: <A>(self: ReadonlyArray<A>) => Option.Option<A>;
|
|
|
1838
1822
|
*/
|
|
1839
1823
|
export declare const headNonEmpty: <A>(self: NonEmptyReadonlyArray<A>) => A;
|
|
1840
1824
|
/**
|
|
1841
|
-
* Returns the last element of an array wrapped in `Option.some`, or
|
|
1825
|
+
* Returns the last element of an array safely wrapped in `Option.some`, or
|
|
1842
1826
|
* `Option.none` if the array is empty.
|
|
1843
1827
|
*
|
|
1844
1828
|
* **When to use**
|
|
@@ -1885,7 +1869,7 @@ export declare const last: <A>(self: ReadonlyArray<A>) => Option.Option<A>;
|
|
|
1885
1869
|
*/
|
|
1886
1870
|
export declare const lastNonEmpty: <A>(self: NonEmptyReadonlyArray<A>) => A;
|
|
1887
1871
|
/**
|
|
1888
|
-
* Returns all elements except the first, wrapped in an `Option`.
|
|
1872
|
+
* Returns all elements except the first safely, wrapped in an `Option`.
|
|
1889
1873
|
*
|
|
1890
1874
|
* **When to use**
|
|
1891
1875
|
*
|
|
@@ -1935,7 +1919,7 @@ export declare function tail<A>(self: Iterable<A>): Option.Option<Array<A>>;
|
|
|
1935
1919
|
*/
|
|
1936
1920
|
export declare const tailNonEmpty: <A>(self: NonEmptyReadonlyArray<A>) => Array<A>;
|
|
1937
1921
|
/**
|
|
1938
|
-
* Returns all elements except the last, wrapped in an `Option`.
|
|
1922
|
+
* Returns all elements except the last safely, wrapped in an `Option`.
|
|
1939
1923
|
*
|
|
1940
1924
|
* **When to use**
|
|
1941
1925
|
*
|
|
@@ -3589,7 +3573,7 @@ export declare const findLast: {
|
|
|
3589
3573
|
<A>(self: Iterable<A>, predicate: (a: A, i: number) => boolean): Option.Option<A>;
|
|
3590
3574
|
};
|
|
3591
3575
|
/**
|
|
3592
|
-
* Inserts an element at the specified index, returning a new `NonEmptyArray`
|
|
3576
|
+
* Inserts an element at the specified index safely, returning a new `NonEmptyArray`
|
|
3593
3577
|
* wrapped in an `Option`.
|
|
3594
3578
|
*
|
|
3595
3579
|
* **When to use**
|
|
@@ -3599,7 +3583,6 @@ export declare const findLast: {
|
|
|
3599
3583
|
* **Details**
|
|
3600
3584
|
*
|
|
3601
3585
|
* - Valid indices: `0` to `length` (inclusive — inserting at `length` appends).
|
|
3602
|
-
* - Does not mutate the input.
|
|
3603
3586
|
*
|
|
3604
3587
|
* **Example** (Inserting at an index)
|
|
3605
3588
|
*
|
|
@@ -3617,7 +3600,7 @@ export declare const findLast: {
|
|
|
3617
3600
|
*/
|
|
3618
3601
|
export declare const insertAt: {
|
|
3619
3602
|
/**
|
|
3620
|
-
* Inserts an element at the specified index, returning a new `NonEmptyArray`
|
|
3603
|
+
* Inserts an element at the specified index safely, returning a new `NonEmptyArray`
|
|
3621
3604
|
* wrapped in an `Option`.
|
|
3622
3605
|
*
|
|
3623
3606
|
* **When to use**
|
|
@@ -3627,7 +3610,6 @@ export declare const insertAt: {
|
|
|
3627
3610
|
* **Details**
|
|
3628
3611
|
*
|
|
3629
3612
|
* - Valid indices: `0` to `length` (inclusive — inserting at `length` appends).
|
|
3630
|
-
* - Does not mutate the input.
|
|
3631
3613
|
*
|
|
3632
3614
|
* **Example** (Inserting at an index)
|
|
3633
3615
|
*
|
|
@@ -3645,7 +3627,7 @@ export declare const insertAt: {
|
|
|
3645
3627
|
*/
|
|
3646
3628
|
<B>(i: number, b: B): <A>(self: Iterable<A>) => Option.Option<NonEmptyArray<A | B>>;
|
|
3647
3629
|
/**
|
|
3648
|
-
* Inserts an element at the specified index, returning a new `NonEmptyArray`
|
|
3630
|
+
* Inserts an element at the specified index safely, returning a new `NonEmptyArray`
|
|
3649
3631
|
* wrapped in an `Option`.
|
|
3650
3632
|
*
|
|
3651
3633
|
* **When to use**
|
|
@@ -3655,7 +3637,6 @@ export declare const insertAt: {
|
|
|
3655
3637
|
* **Details**
|
|
3656
3638
|
*
|
|
3657
3639
|
* - Valid indices: `0` to `length` (inclusive — inserting at `length` appends).
|
|
3658
|
-
* - Does not mutate the input.
|
|
3659
3640
|
*
|
|
3660
3641
|
* **Example** (Inserting at an index)
|
|
3661
3642
|
*
|
|
@@ -3674,7 +3655,7 @@ export declare const insertAt: {
|
|
|
3674
3655
|
<A, B>(self: Iterable<A>, i: number, b: B): Option.Option<NonEmptyArray<A | B>>;
|
|
3675
3656
|
};
|
|
3676
3657
|
/**
|
|
3677
|
-
* Replaces the element at the specified index with a new value, returning the
|
|
3658
|
+
* Replaces the element at the specified index safely with a new value, returning the
|
|
3678
3659
|
* updated array in `Option.some`.
|
|
3679
3660
|
*
|
|
3680
3661
|
* **When to use**
|
|
@@ -3684,7 +3665,6 @@ export declare const insertAt: {
|
|
|
3684
3665
|
* **Details**
|
|
3685
3666
|
*
|
|
3686
3667
|
* - Returns `Option.none()` when the index is out of bounds.
|
|
3687
|
-
* - Does not mutate the input.
|
|
3688
3668
|
*
|
|
3689
3669
|
* **Example** (Replacing an element)
|
|
3690
3670
|
*
|
|
@@ -3702,7 +3682,7 @@ export declare const insertAt: {
|
|
|
3702
3682
|
*/
|
|
3703
3683
|
export declare const replace: {
|
|
3704
3684
|
/**
|
|
3705
|
-
* Replaces the element at the specified index with a new value, returning the
|
|
3685
|
+
* Replaces the element at the specified index safely with a new value, returning the
|
|
3706
3686
|
* updated array in `Option.some`.
|
|
3707
3687
|
*
|
|
3708
3688
|
* **When to use**
|
|
@@ -3712,7 +3692,6 @@ export declare const replace: {
|
|
|
3712
3692
|
* **Details**
|
|
3713
3693
|
*
|
|
3714
3694
|
* - Returns `Option.none()` when the index is out of bounds.
|
|
3715
|
-
* - Does not mutate the input.
|
|
3716
3695
|
*
|
|
3717
3696
|
* **Example** (Replacing an element)
|
|
3718
3697
|
*
|
|
@@ -3730,7 +3709,7 @@ export declare const replace: {
|
|
|
3730
3709
|
*/
|
|
3731
3710
|
<B>(i: number, b: B): <A, S extends Iterable<A> = Iterable<A>>(self: S) => Option.Option<ReadonlyArray.With<S, ReadonlyArray.Infer<S> | B>>;
|
|
3732
3711
|
/**
|
|
3733
|
-
* Replaces the element at the specified index with a new value, returning the
|
|
3712
|
+
* Replaces the element at the specified index safely with a new value, returning the
|
|
3734
3713
|
* updated array in `Option.some`.
|
|
3735
3714
|
*
|
|
3736
3715
|
* **When to use**
|
|
@@ -3740,7 +3719,6 @@ export declare const replace: {
|
|
|
3740
3719
|
* **Details**
|
|
3741
3720
|
*
|
|
3742
3721
|
* - Returns `Option.none()` when the index is out of bounds.
|
|
3743
|
-
* - Does not mutate the input.
|
|
3744
3722
|
*
|
|
3745
3723
|
* **Example** (Replacing an element)
|
|
3746
3724
|
*
|
|
@@ -3759,7 +3737,7 @@ export declare const replace: {
|
|
|
3759
3737
|
<A, B, S extends Iterable<A> = Iterable<A>>(self: S, i: number, b: B): Option.Option<ReadonlyArray.With<S, ReadonlyArray.Infer<S> | B>>;
|
|
3760
3738
|
};
|
|
3761
3739
|
/**
|
|
3762
|
-
* Applies a function to the element at the specified index, returning the
|
|
3740
|
+
* Applies a function to the element at the specified index safely, returning the
|
|
3763
3741
|
* updated array in `Option.some`.
|
|
3764
3742
|
*
|
|
3765
3743
|
* **When to use**
|
|
@@ -3770,7 +3748,6 @@ export declare const replace: {
|
|
|
3770
3748
|
* **Details**
|
|
3771
3749
|
*
|
|
3772
3750
|
* - Returns `Option.none()` when the index is out of bounds.
|
|
3773
|
-
* - Does not mutate the input.
|
|
3774
3751
|
*
|
|
3775
3752
|
* **Example** (Modifying an element)
|
|
3776
3753
|
*
|
|
@@ -3790,7 +3767,7 @@ export declare const replace: {
|
|
|
3790
3767
|
*/
|
|
3791
3768
|
export declare const modify: {
|
|
3792
3769
|
/**
|
|
3793
|
-
* Applies a function to the element at the specified index, returning the
|
|
3770
|
+
* Applies a function to the element at the specified index safely, returning the
|
|
3794
3771
|
* updated array in `Option.some`.
|
|
3795
3772
|
*
|
|
3796
3773
|
* **When to use**
|
|
@@ -3801,7 +3778,6 @@ export declare const modify: {
|
|
|
3801
3778
|
* **Details**
|
|
3802
3779
|
*
|
|
3803
3780
|
* - Returns `Option.none()` when the index is out of bounds.
|
|
3804
|
-
* - Does not mutate the input.
|
|
3805
3781
|
*
|
|
3806
3782
|
* **Example** (Modifying an element)
|
|
3807
3783
|
*
|
|
@@ -3821,7 +3797,7 @@ export declare const modify: {
|
|
|
3821
3797
|
*/
|
|
3822
3798
|
<A, B, S extends Iterable<A> = Iterable<A>>(i: number, f: (a: ReadonlyArray.Infer<S>) => B): (self: S) => Option.Option<ReadonlyArray.With<S, ReadonlyArray.Infer<S> | B>>;
|
|
3823
3799
|
/**
|
|
3824
|
-
* Applies a function to the element at the specified index, returning the
|
|
3800
|
+
* Applies a function to the element at the specified index safely, returning the
|
|
3825
3801
|
* updated array in `Option.some`.
|
|
3826
3802
|
*
|
|
3827
3803
|
* **When to use**
|
|
@@ -3832,7 +3808,6 @@ export declare const modify: {
|
|
|
3832
3808
|
* **Details**
|
|
3833
3809
|
*
|
|
3834
3810
|
* - Returns `Option.none()` when the index is out of bounds.
|
|
3835
|
-
* - Does not mutate the input.
|
|
3836
3811
|
*
|
|
3837
3812
|
* **Example** (Modifying an element)
|
|
3838
3813
|
*
|
|
@@ -3860,10 +3835,6 @@ export declare const modify: {
|
|
|
3860
3835
|
*
|
|
3861
3836
|
* Use to remove a single element at a known index.
|
|
3862
3837
|
*
|
|
3863
|
-
* **Details**
|
|
3864
|
-
*
|
|
3865
|
-
* Does not mutate the input.
|
|
3866
|
-
*
|
|
3867
3838
|
* **Example** (Removing an element)
|
|
3868
3839
|
*
|
|
3869
3840
|
* ```ts
|
|
@@ -3888,10 +3859,6 @@ export declare const remove: {
|
|
|
3888
3859
|
*
|
|
3889
3860
|
* Use to remove a single element at a known index.
|
|
3890
3861
|
*
|
|
3891
|
-
* **Details**
|
|
3892
|
-
*
|
|
3893
|
-
* Does not mutate the input.
|
|
3894
|
-
*
|
|
3895
3862
|
* **Example** (Removing an element)
|
|
3896
3863
|
*
|
|
3897
3864
|
* ```ts
|
|
@@ -3916,10 +3883,6 @@ export declare const remove: {
|
|
|
3916
3883
|
*
|
|
3917
3884
|
* Use to remove a single element at a known index.
|
|
3918
3885
|
*
|
|
3919
|
-
* **Details**
|
|
3920
|
-
*
|
|
3921
|
-
* Does not mutate the input.
|
|
3922
|
-
*
|
|
3923
3886
|
* **Example** (Removing an element)
|
|
3924
3887
|
*
|
|
3925
3888
|
* ```ts
|
|
@@ -3946,7 +3909,6 @@ export declare const remove: {
|
|
|
3946
3909
|
*
|
|
3947
3910
|
* **Details**
|
|
3948
3911
|
*
|
|
3949
|
-
* - Does not mutate the input.
|
|
3950
3912
|
* - Preserves `NonEmptyArray` in the return type.
|
|
3951
3913
|
*
|
|
3952
3914
|
* **Example** (Reversing an array)
|
|
@@ -3970,7 +3932,6 @@ export declare const reverse: <S extends Iterable<any>>(self: S) => S extends No
|
|
|
3970
3932
|
*
|
|
3971
3933
|
* **Details**
|
|
3972
3934
|
*
|
|
3973
|
-
* - Does not mutate the input.
|
|
3974
3935
|
* - Preserves `NonEmptyArray` in the return type.
|
|
3975
3936
|
* - Use {@link sortWith} to sort by a derived key, or {@link sortBy} for
|
|
3976
3937
|
* multi-key sorting.
|
|
@@ -3999,7 +3960,6 @@ export declare const sort: {
|
|
|
3999
3960
|
*
|
|
4000
3961
|
* **Details**
|
|
4001
3962
|
*
|
|
4002
|
-
* - Does not mutate the input.
|
|
4003
3963
|
* - Preserves `NonEmptyArray` in the return type.
|
|
4004
3964
|
* - Use {@link sortWith} to sort by a derived key, or {@link sortBy} for
|
|
4005
3965
|
* multi-key sorting.
|
|
@@ -4028,7 +3988,6 @@ export declare const sort: {
|
|
|
4028
3988
|
*
|
|
4029
3989
|
* **Details**
|
|
4030
3990
|
*
|
|
4031
|
-
* - Does not mutate the input.
|
|
4032
3991
|
* - Preserves `NonEmptyArray` in the return type.
|
|
4033
3992
|
* - Use {@link sortWith} to sort by a derived key, or {@link sortBy} for
|
|
4034
3993
|
* multi-key sorting.
|
|
@@ -4057,7 +4016,6 @@ export declare const sort: {
|
|
|
4057
4016
|
*
|
|
4058
4017
|
* **Details**
|
|
4059
4018
|
*
|
|
4060
|
-
* - Does not mutate the input.
|
|
4061
4019
|
* - Preserves `NonEmptyArray` in the return type.
|
|
4062
4020
|
* - Use {@link sortWith} to sort by a derived key, or {@link sortBy} for
|
|
4063
4021
|
* multi-key sorting.
|
|
@@ -4090,7 +4048,6 @@ export declare const sort: {
|
|
|
4090
4048
|
* **Details**
|
|
4091
4049
|
*
|
|
4092
4050
|
* - Equivalent to `sort(Order.mapInput(order, f))` but more convenient.
|
|
4093
|
-
* - Does not mutate the input.
|
|
4094
4051
|
*
|
|
4095
4052
|
* **Example** (Sorting strings by length)
|
|
4096
4053
|
*
|
|
@@ -4120,7 +4077,6 @@ export declare const sortWith: {
|
|
|
4120
4077
|
* **Details**
|
|
4121
4078
|
*
|
|
4122
4079
|
* - Equivalent to `sort(Order.mapInput(order, f))` but more convenient.
|
|
4123
|
-
* - Does not mutate the input.
|
|
4124
4080
|
*
|
|
4125
4081
|
* **Example** (Sorting strings by length)
|
|
4126
4082
|
*
|
|
@@ -4150,7 +4106,6 @@ export declare const sortWith: {
|
|
|
4150
4106
|
* **Details**
|
|
4151
4107
|
*
|
|
4152
4108
|
* - Equivalent to `sort(Order.mapInput(order, f))` but more convenient.
|
|
4153
|
-
* - Does not mutate the input.
|
|
4154
4109
|
*
|
|
4155
4110
|
* **Example** (Sorting strings by length)
|
|
4156
4111
|
*
|
|
@@ -4180,7 +4135,6 @@ export declare const sortWith: {
|
|
|
4180
4135
|
* **Details**
|
|
4181
4136
|
*
|
|
4182
4137
|
* - Equivalent to `sort(Order.mapInput(order, f))` but more convenient.
|
|
4183
|
-
* - Does not mutate the input.
|
|
4184
4138
|
*
|
|
4185
4139
|
* **Example** (Sorting strings by length)
|
|
4186
4140
|
*
|
|
@@ -4830,7 +4784,7 @@ export declare const setLastNonEmpty: {
|
|
|
4830
4784
|
<A, B>(self: NonEmptyReadonlyArray<A>, b: B): NonEmptyArray<A | B>;
|
|
4831
4785
|
};
|
|
4832
4786
|
/**
|
|
4833
|
-
*
|
|
4787
|
+
* Transforms an array by rotating it `n` steps. Positive `n` rotates right; negative `n`
|
|
4834
4788
|
* rotates left.
|
|
4835
4789
|
*
|
|
4836
4790
|
* **When to use**
|
|
@@ -4860,7 +4814,7 @@ export declare const setLastNonEmpty: {
|
|
|
4860
4814
|
*/
|
|
4861
4815
|
export declare const rotate: {
|
|
4862
4816
|
/**
|
|
4863
|
-
*
|
|
4817
|
+
* Transforms an array by rotating it `n` steps. Positive `n` rotates right; negative `n`
|
|
4864
4818
|
* rotates left.
|
|
4865
4819
|
*
|
|
4866
4820
|
* **When to use**
|
|
@@ -4890,7 +4844,7 @@ export declare const rotate: {
|
|
|
4890
4844
|
*/
|
|
4891
4845
|
(n: number): <S extends Iterable<any>>(self: S) => ReadonlyArray.With<S, ReadonlyArray.Infer<S>>;
|
|
4892
4846
|
/**
|
|
4893
|
-
*
|
|
4847
|
+
* Transforms an array by rotating it `n` steps. Positive `n` rotates right; negative `n`
|
|
4894
4848
|
* rotates left.
|
|
4895
4849
|
*
|
|
4896
4850
|
* **When to use**
|
|
@@ -4920,7 +4874,7 @@ export declare const rotate: {
|
|
|
4920
4874
|
*/
|
|
4921
4875
|
<A>(self: NonEmptyReadonlyArray<A>, n: number): NonEmptyArray<A>;
|
|
4922
4876
|
/**
|
|
4923
|
-
*
|
|
4877
|
+
* Transforms an array by rotating it `n` steps. Positive `n` rotates right; negative `n`
|
|
4924
4878
|
* rotates left.
|
|
4925
4879
|
*
|
|
4926
4880
|
* **When to use**
|
|
@@ -4977,7 +4931,7 @@ export declare const containsWith: <A>(isEquivalent: (self: A, that: A) => boole
|
|
|
4977
4931
|
(self: Iterable<A>, a: A): boolean;
|
|
4978
4932
|
};
|
|
4979
4933
|
/**
|
|
4980
|
-
*
|
|
4934
|
+
* Checks whether an array contains a value, using `Equal.equivalence()` for
|
|
4981
4935
|
* comparison.
|
|
4982
4936
|
*
|
|
4983
4937
|
* **When to use**
|
|
@@ -5000,7 +4954,7 @@ export declare const containsWith: <A>(isEquivalent: (self: A, that: A) => boole
|
|
|
5000
4954
|
*/
|
|
5001
4955
|
export declare const contains: {
|
|
5002
4956
|
/**
|
|
5003
|
-
*
|
|
4957
|
+
* Checks whether an array contains a value, using `Equal.equivalence()` for
|
|
5004
4958
|
* comparison.
|
|
5005
4959
|
*
|
|
5006
4960
|
* **When to use**
|
|
@@ -5023,7 +4977,7 @@ export declare const contains: {
|
|
|
5023
4977
|
*/
|
|
5024
4978
|
<A>(a: A): (self: Iterable<A>) => boolean;
|
|
5025
4979
|
/**
|
|
5026
|
-
*
|
|
4980
|
+
* Checks whether an array contains a value, using `Equal.equivalence()` for
|
|
5027
4981
|
* comparison.
|
|
5028
4982
|
*
|
|
5029
4983
|
* **When to use**
|
|
@@ -5047,8 +5001,8 @@ export declare const contains: {
|
|
|
5047
5001
|
<A>(self: Iterable<A>, a: A): boolean;
|
|
5048
5002
|
};
|
|
5049
5003
|
/**
|
|
5050
|
-
*
|
|
5051
|
-
*
|
|
5004
|
+
* Applies a function repeatedly to consume prefixes of the array and collect
|
|
5005
|
+
* the values it produces.
|
|
5052
5006
|
*
|
|
5053
5007
|
* **When to use**
|
|
5054
5008
|
*
|
|
@@ -5082,8 +5036,8 @@ export declare const contains: {
|
|
|
5082
5036
|
*/
|
|
5083
5037
|
export declare const chop: {
|
|
5084
5038
|
/**
|
|
5085
|
-
*
|
|
5086
|
-
*
|
|
5039
|
+
* Applies a function repeatedly to consume prefixes of the array and collect
|
|
5040
|
+
* the values it produces.
|
|
5087
5041
|
*
|
|
5088
5042
|
* **When to use**
|
|
5089
5043
|
*
|
|
@@ -5117,8 +5071,8 @@ export declare const chop: {
|
|
|
5117
5071
|
*/
|
|
5118
5072
|
<S extends Iterable<any>, B>(f: (as: NonEmptyReadonlyArray<ReadonlyArray.Infer<S>>) => readonly [B, ReadonlyArray<ReadonlyArray.Infer<S>>]): (self: S) => ReadonlyArray.With<S, ReadonlyArray.Infer<S>>;
|
|
5119
5073
|
/**
|
|
5120
|
-
*
|
|
5121
|
-
*
|
|
5074
|
+
* Applies a function repeatedly to consume prefixes of the array and collect
|
|
5075
|
+
* the values it produces.
|
|
5122
5076
|
*
|
|
5123
5077
|
* **When to use**
|
|
5124
5078
|
*
|
|
@@ -5152,8 +5106,8 @@ export declare const chop: {
|
|
|
5152
5106
|
*/
|
|
5153
5107
|
<A, B>(self: NonEmptyReadonlyArray<A>, f: (as: NonEmptyReadonlyArray<A>) => readonly [B, ReadonlyArray<A>]): NonEmptyArray<B>;
|
|
5154
5108
|
/**
|
|
5155
|
-
*
|
|
5156
|
-
*
|
|
5109
|
+
* Applies a function repeatedly to consume prefixes of the array and collect
|
|
5110
|
+
* the values it produces.
|
|
5157
5111
|
*
|
|
5158
5112
|
* **When to use**
|
|
5159
5113
|
*
|
|
@@ -7665,7 +7619,7 @@ export declare const flatMapNullishOr: {
|
|
|
7665
7619
|
*/
|
|
7666
7620
|
export declare const liftResult: <A extends Array<unknown>, E, B>(f: (...a: A) => Result.Result<B, E>) => (...a: A) => Array<B>;
|
|
7667
7621
|
/**
|
|
7668
|
-
*
|
|
7622
|
+
* Checks whether all elements satisfy the predicate. Supports refinements for
|
|
7669
7623
|
* type narrowing.
|
|
7670
7624
|
*
|
|
7671
7625
|
* **When to use**
|
|
@@ -7689,7 +7643,7 @@ export declare const liftResult: <A extends Array<unknown>, E, B>(f: (...a: A) =
|
|
|
7689
7643
|
*/
|
|
7690
7644
|
export declare const every: {
|
|
7691
7645
|
/**
|
|
7692
|
-
*
|
|
7646
|
+
* Checks whether all elements satisfy the predicate. Supports refinements for
|
|
7693
7647
|
* type narrowing.
|
|
7694
7648
|
*
|
|
7695
7649
|
* **When to use**
|
|
@@ -7713,7 +7667,7 @@ export declare const every: {
|
|
|
7713
7667
|
*/
|
|
7714
7668
|
<A, B extends A>(refinement: (a: NoInfer<A>, i: number) => a is B): (self: ReadonlyArray<A>) => self is ReadonlyArray<B>;
|
|
7715
7669
|
/**
|
|
7716
|
-
*
|
|
7670
|
+
* Checks whether all elements satisfy the predicate. Supports refinements for
|
|
7717
7671
|
* type narrowing.
|
|
7718
7672
|
*
|
|
7719
7673
|
* **When to use**
|
|
@@ -7737,7 +7691,7 @@ export declare const every: {
|
|
|
7737
7691
|
*/
|
|
7738
7692
|
<A>(predicate: (a: NoInfer<A>, i: number) => boolean): (self: ReadonlyArray<A>) => boolean;
|
|
7739
7693
|
/**
|
|
7740
|
-
*
|
|
7694
|
+
* Checks whether all elements satisfy the predicate. Supports refinements for
|
|
7741
7695
|
* type narrowing.
|
|
7742
7696
|
*
|
|
7743
7697
|
* **When to use**
|
|
@@ -7761,7 +7715,7 @@ export declare const every: {
|
|
|
7761
7715
|
*/
|
|
7762
7716
|
<A, B extends A>(self: ReadonlyArray<A>, refinement: (a: A, i: number) => a is B): self is ReadonlyArray<B>;
|
|
7763
7717
|
/**
|
|
7764
|
-
*
|
|
7718
|
+
* Checks whether all elements satisfy the predicate. Supports refinements for
|
|
7765
7719
|
* type narrowing.
|
|
7766
7720
|
*
|
|
7767
7721
|
* **When to use**
|
|
@@ -7786,7 +7740,7 @@ export declare const every: {
|
|
|
7786
7740
|
<A>(self: ReadonlyArray<A>, predicate: (a: A, i: number) => boolean): boolean;
|
|
7787
7741
|
};
|
|
7788
7742
|
/**
|
|
7789
|
-
*
|
|
7743
|
+
* Checks whether at least one element satisfies the predicate. Narrows the type
|
|
7790
7744
|
* to `NonEmptyReadonlyArray` on success.
|
|
7791
7745
|
*
|
|
7792
7746
|
* **Example** (Testing for any match)
|
|
@@ -7806,7 +7760,7 @@ export declare const every: {
|
|
|
7806
7760
|
*/
|
|
7807
7761
|
export declare const some: {
|
|
7808
7762
|
/**
|
|
7809
|
-
*
|
|
7763
|
+
* Checks whether at least one element satisfies the predicate. Narrows the type
|
|
7810
7764
|
* to `NonEmptyReadonlyArray` on success.
|
|
7811
7765
|
*
|
|
7812
7766
|
* **Example** (Testing for any match)
|
|
@@ -7826,7 +7780,7 @@ export declare const some: {
|
|
|
7826
7780
|
*/
|
|
7827
7781
|
<A>(predicate: (a: NoInfer<A>, i: number) => boolean): (self: ReadonlyArray<A>) => self is NonEmptyReadonlyArray<A>;
|
|
7828
7782
|
/**
|
|
7829
|
-
*
|
|
7783
|
+
* Checks whether at least one element satisfies the predicate. Narrows the type
|
|
7830
7784
|
* to `NonEmptyReadonlyArray` on success.
|
|
7831
7785
|
*
|
|
7832
7786
|
* **Example** (Testing for any match)
|
|
@@ -8721,7 +8675,7 @@ export declare const cartesian: {
|
|
|
8721
8675
|
<A, B>(self: ReadonlyArray<A>, that: ReadonlyArray<B>): Array<[A, B]>;
|
|
8722
8676
|
};
|
|
8723
8677
|
/**
|
|
8724
|
-
*
|
|
8678
|
+
* Provides the starting point for the "do simulation" — an array comprehension pattern.
|
|
8725
8679
|
*
|
|
8726
8680
|
* **When to use**
|
|
8727
8681
|
*
|
|
@@ -8753,7 +8707,7 @@ export declare const cartesian: {
|
|
|
8753
8707
|
*/
|
|
8754
8708
|
export declare const Do: ReadonlyArray<{}>;
|
|
8755
8709
|
/**
|
|
8756
|
-
*
|
|
8710
|
+
* Adds a new array variable to a do-notation scope, producing the cartesian product with all previous bindings.
|
|
8757
8711
|
*
|
|
8758
8712
|
* **When to use**
|
|
8759
8713
|
*
|
|
@@ -8789,7 +8743,7 @@ export declare const Do: ReadonlyArray<{}>;
|
|
|
8789
8743
|
*/
|
|
8790
8744
|
export declare const bind: {
|
|
8791
8745
|
/**
|
|
8792
|
-
*
|
|
8746
|
+
* Adds a new array variable to a do-notation scope, producing the cartesian product with all previous bindings.
|
|
8793
8747
|
*
|
|
8794
8748
|
* **When to use**
|
|
8795
8749
|
*
|
|
@@ -8827,7 +8781,7 @@ export declare const bind: {
|
|
|
8827
8781
|
[K in N | keyof A]: K extends keyof A ? A[K] : B;
|
|
8828
8782
|
}>;
|
|
8829
8783
|
/**
|
|
8830
|
-
*
|
|
8784
|
+
* Adds a new array variable to a do-notation scope, producing the cartesian product with all previous bindings.
|
|
8831
8785
|
*
|
|
8832
8786
|
* **When to use**
|
|
8833
8787
|
*
|
|
@@ -8866,7 +8820,7 @@ export declare const bind: {
|
|
|
8866
8820
|
}>;
|
|
8867
8821
|
};
|
|
8868
8822
|
/**
|
|
8869
|
-
*
|
|
8823
|
+
* Wraps each array element in an object with the given key, starting a do-notation scope.
|
|
8870
8824
|
*
|
|
8871
8825
|
* **When to use**
|
|
8872
8826
|
*
|
|
@@ -8898,7 +8852,7 @@ export declare const bind: {
|
|
|
8898
8852
|
*/
|
|
8899
8853
|
export declare const bindTo: {
|
|
8900
8854
|
/**
|
|
8901
|
-
*
|
|
8855
|
+
* Wraps each array element in an object with the given key, starting a do-notation scope.
|
|
8902
8856
|
*
|
|
8903
8857
|
* **When to use**
|
|
8904
8858
|
*
|
|
@@ -8932,7 +8886,7 @@ export declare const bindTo: {
|
|
|
8932
8886
|
[K in N]: A;
|
|
8933
8887
|
}>;
|
|
8934
8888
|
/**
|
|
8935
|
-
*
|
|
8889
|
+
* Wraps each array element in an object with the given key, starting a do-notation scope.
|
|
8936
8890
|
*
|
|
8937
8891
|
* **When to use**
|
|
8938
8892
|
*
|
|
@@ -9023,7 +8977,7 @@ export declare function getReadonlyReducerConcat<A>(): Reducer.Reducer<ReadonlyA
|
|
|
9023
8977
|
*/
|
|
9024
8978
|
export declare function makeReducerConcat<A>(): Reducer.Reducer<Array<A>>;
|
|
9025
8979
|
/**
|
|
9026
|
-
*
|
|
8980
|
+
* Computes the number of elements in an iterable that satisfy a predicate.
|
|
9027
8981
|
*
|
|
9028
8982
|
* **When to use**
|
|
9029
8983
|
*
|
|
@@ -9051,7 +9005,7 @@ export declare function makeReducerConcat<A>(): Reducer.Reducer<Array<A>>;
|
|
|
9051
9005
|
*/
|
|
9052
9006
|
export declare const countBy: {
|
|
9053
9007
|
/**
|
|
9054
|
-
*
|
|
9008
|
+
* Computes the number of elements in an iterable that satisfy a predicate.
|
|
9055
9009
|
*
|
|
9056
9010
|
* **When to use**
|
|
9057
9011
|
*
|
|
@@ -9079,7 +9033,7 @@ export declare const countBy: {
|
|
|
9079
9033
|
*/
|
|
9080
9034
|
<A>(predicate: (a: NoInfer<A>, i: number) => boolean): (self: Iterable<A>) => number;
|
|
9081
9035
|
/**
|
|
9082
|
-
*
|
|
9036
|
+
* Computes the number of elements in an iterable that satisfy a predicate.
|
|
9083
9037
|
*
|
|
9084
9038
|
* **When to use**
|
|
9085
9039
|
*
|