effect 4.0.0-beta.72 → 4.0.0-beta.74
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 +16 -16
- package/dist/Array.js +4 -4
- package/dist/Boolean.d.ts +2 -2
- package/dist/Boolean.js +2 -2
- package/dist/Channel.d.ts +63 -63
- package/dist/Channel.js +25 -25
- package/dist/Chunk.d.ts +17 -17
- package/dist/Chunk.js +5 -5
- package/dist/Context.d.ts +3 -3
- package/dist/Context.js +1 -1
- package/dist/Cron.d.ts +4 -4
- package/dist/Cron.js +4 -4
- package/dist/Deferred.d.ts +37 -37
- package/dist/Deferred.js +13 -13
- package/dist/Duration.d.ts +6 -6
- package/dist/Duration.js +2 -2
- package/dist/Effect.d.ts +58 -58
- package/dist/Effect.js +39 -39
- package/dist/Equal.d.ts +2 -2
- package/dist/Equal.js +2 -2
- package/dist/Equivalence.d.ts +1 -1
- package/dist/Equivalence.js +1 -1
- package/dist/ExecutionPlan.d.ts +2 -2
- package/dist/ExecutionPlan.js +1 -1
- package/dist/FileSystem.d.ts +6 -6
- package/dist/FileSystem.js +2 -2
- package/dist/Function.d.ts +5 -5
- package/dist/Function.js +5 -5
- package/dist/Graph.d.ts +11 -11
- package/dist/Graph.js +5 -5
- package/dist/HKT.d.ts +1 -1
- package/dist/HashMap.d.ts +3 -3
- package/dist/HashSet.d.ts +1 -1
- package/dist/Iterable.d.ts +15 -15
- package/dist/Iterable.js +5 -5
- package/dist/Layer.d.ts +16 -16
- package/dist/Layer.js +5 -5
- package/dist/Logger.d.ts +5 -5
- package/dist/Logger.js +4 -4
- package/dist/ManagedRuntime.d.ts +2 -2
- package/dist/Match.d.ts +20 -20
- package/dist/Match.js +16 -16
- package/dist/Metric.d.ts +16 -16
- package/dist/Metric.js +3 -3
- package/dist/Option.d.ts +36 -36
- package/dist/Option.js +17 -17
- package/dist/Order.d.ts +1 -1
- package/dist/Order.js +1 -1
- package/dist/Path.d.ts +1 -1
- package/dist/Path.js +1 -1
- package/dist/Pipeable.d.ts +1 -1
- package/dist/Pipeable.js +1 -1
- package/dist/Predicate.d.ts +5 -5
- package/dist/PubSub.d.ts +9 -9
- package/dist/PubSub.js +5 -5
- package/dist/Queue.d.ts +24 -24
- package/dist/Queue.js +20 -20
- package/dist/Record.d.ts +15 -15
- package/dist/Record.js +5 -5
- package/dist/Redacted.d.ts +2 -2
- package/dist/Redacted.js +1 -1
- package/dist/Ref.d.ts +6 -6
- package/dist/Ref.js +6 -6
- package/dist/RegExp.d.ts +1 -1
- package/dist/RegExp.js +1 -1
- package/dist/Request.d.ts +4 -4
- package/dist/RequestResolver.d.ts +6 -6
- package/dist/RequestResolver.js +2 -2
- package/dist/Resource.d.ts +1 -1
- package/dist/Resource.js +1 -1
- package/dist/Result.d.ts +18 -18
- package/dist/Result.js +11 -11
- package/dist/Schedule.d.ts +44 -44
- package/dist/Schedule.js +18 -18
- package/dist/Schema.d.ts +177 -459
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +25 -25
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +1 -1
- package/dist/SchemaGetter.d.ts +13 -13
- package/dist/SchemaGetter.js +12 -12
- package/dist/SchemaParser.d.ts +3 -3
- package/dist/SchemaParser.js +3 -3
- package/dist/Scope.d.ts +1 -1
- package/dist/Scope.js +1 -1
- package/dist/Sink.d.ts +5 -5
- package/dist/Sink.js +3 -3
- package/dist/Stream.d.ts +55 -55
- package/dist/Stream.js +21 -21
- package/dist/String.d.ts +5 -5
- package/dist/String.js +3 -3
- package/dist/Struct.d.ts +8 -8
- package/dist/Struct.js +3 -3
- package/dist/SynchronizedRef.d.ts +57 -57
- package/dist/SynchronizedRef.js +19 -19
- package/dist/Terminal.d.ts +1 -1
- package/dist/Terminal.js +1 -1
- package/dist/Tracer.d.ts +5 -5
- package/dist/Tracer.js +2 -2
- package/dist/Tuple.d.ts +14 -14
- package/dist/Tuple.js +6 -6
- package/dist/TxHashMap.d.ts +3 -3
- package/dist/TxHashSet.d.ts +1 -1
- package/dist/Unify.d.ts +7 -7
- package/dist/Unify.js +1 -1
- package/dist/testing/TestClock.d.ts +5 -5
- package/dist/testing/TestClock.js +4 -4
- package/dist/testing/TestConsole.d.ts +3 -3
- package/dist/testing/TestConsole.js +3 -3
- package/dist/unstable/ai/Chat.d.ts +2 -2
- package/dist/unstable/ai/Chat.js +2 -2
- package/dist/unstable/ai/EmbeddingModel.d.ts +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +2 -2
- package/dist/unstable/ai/IdGenerator.js +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +4 -4
- package/dist/unstable/ai/LanguageModel.js +1 -1
- package/dist/unstable/ai/Prompt.d.ts +15 -15
- package/dist/unstable/ai/Prompt.js +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +5 -5
- package/dist/unstable/ai/Telemetry.js +2 -2
- package/dist/unstable/ai/Tokenizer.d.ts +1 -1
- package/dist/unstable/ai/Tokenizer.js +1 -1
- package/dist/unstable/ai/Tool.d.ts +6 -6
- package/dist/unstable/ai/Tool.js +6 -6
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +1 -1
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +1 -1
- package/dist/unstable/cli/Primitive.d.ts +3 -3
- package/dist/unstable/cli/Primitive.js +1 -1
- package/dist/unstable/cli/Prompt.d.ts +11 -11
- package/dist/unstable/cli/internal/parser.js +145 -10
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +1 -1
- package/dist/unstable/cluster/Entity.js +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +1 -0
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +5 -3
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +2 -2
- package/dist/unstable/cluster/HttpRunner.js +2 -2
- package/dist/unstable/cluster/K8sHttpClient.d.ts +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +1 -1
- package/dist/unstable/cluster/Runners.d.ts +1 -1
- package/dist/unstable/cluster/Runners.js +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +1 -1
- package/dist/unstable/cluster/Sharding.js +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +5 -5
- package/dist/unstable/cluster/Snowflake.js +5 -5
- package/dist/unstable/devtools/DevToolsClient.d.ts +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +1 -1
- package/dist/unstable/eventlog/EventLog.js +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +3 -3
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +3 -3
- package/dist/unstable/http/Cookies.d.ts +1 -1
- package/dist/unstable/http/Etag.d.ts +1 -1
- package/dist/unstable/http/Etag.js +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +2 -2
- package/dist/unstable/http/FetchHttpClient.js +2 -2
- package/dist/unstable/http/HttpClient.d.ts +1 -1
- package/dist/unstable/http/HttpClient.js +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +2 -2
- package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
- package/dist/unstable/http/HttpMiddleware.js +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +1 -1
- package/dist/unstable/http/HttpPlatform.js +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +4 -4
- package/dist/unstable/http/HttpRouter.js +4 -4
- package/dist/unstable/http/HttpServerResponse.d.ts +3 -3
- package/dist/unstable/http/Url.d.ts +33 -33
- package/dist/unstable/http/Url.js +11 -11
- package/dist/unstable/httpapi/HttpApi.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApi.js +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +2 -3
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
- package/dist/unstable/httpapi/HttpApiError.js +13 -13
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +27 -5
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +26 -3
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +2 -2
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -4
- package/dist/unstable/observability/PrometheusMetrics.js +2 -2
- package/dist/unstable/persistence/KeyValueStore.d.ts +3 -3
- package/dist/unstable/persistence/KeyValueStore.js +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +2 -2
- package/dist/unstable/persistence/Persistable.js +2 -2
- package/dist/unstable/persistence/PersistedQueue.d.ts +8 -8
- package/dist/unstable/persistence/PersistedQueue.js +8 -8
- package/dist/unstable/persistence/RateLimiter.d.ts +1 -1
- package/dist/unstable/persistence/RateLimiter.js +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +5 -5
- package/dist/unstable/process/ChildProcess.js +2 -2
- package/dist/unstable/reactivity/AsyncResult.d.ts +4 -4
- package/dist/unstable/reactivity/AsyncResult.js +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +1 -1
- package/dist/unstable/reactivity/Atom.js +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +1 -1
- package/dist/unstable/reactivity/Reactivity.js +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +5 -5
- package/dist/unstable/rpc/Rpc.js +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +3 -3
- package/dist/unstable/rpc/RpcSchema.js +2 -2
- package/dist/unstable/schema/Model.d.ts +2 -2
- package/dist/unstable/schema/Model.js +1 -1
- package/dist/unstable/socket/Socket.d.ts +3 -3
- package/dist/unstable/socket/Socket.js +3 -3
- package/dist/unstable/socket/SocketServer.d.ts +1 -1
- package/dist/unstable/socket/SocketServer.js +1 -1
- package/dist/unstable/sql/Migrator.d.ts +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +3 -3
- package/dist/unstable/sql/SqlClient.js +2 -2
- package/dist/unstable/sql/SqlConnection.d.ts +1 -1
- package/dist/unstable/sql/SqlConnection.js +1 -1
- package/dist/unstable/sql/Statement.d.ts +2 -2
- package/dist/unstable/sql/Statement.js +2 -2
- package/dist/unstable/workers/Transferable.d.ts +1 -1
- package/dist/unstable/workers/Transferable.js +1 -1
- package/dist/unstable/workers/Worker.d.ts +1 -1
- package/dist/unstable/workers/Worker.js +1 -1
- package/dist/unstable/workflow/Activity.d.ts +1 -1
- package/dist/unstable/workflow/Activity.js +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +1 -1
- package/package.json +1 -1
- package/src/Array.ts +16 -16
- package/src/Boolean.ts +2 -2
- package/src/Channel.ts +67 -67
- package/src/Chunk.ts +18 -18
- package/src/Context.ts +4 -4
- package/src/Cron.ts +4 -4
- package/src/Deferred.ts +37 -37
- package/src/Duration.ts +6 -6
- package/src/Effect.ts +58 -58
- package/src/Equal.ts +2 -2
- package/src/Equivalence.ts +1 -1
- package/src/ExecutionPlan.ts +2 -2
- package/src/FileSystem.ts +6 -6
- package/src/Function.ts +5 -5
- package/src/Graph.ts +11 -11
- package/src/HKT.ts +1 -1
- package/src/HashMap.ts +3 -3
- package/src/HashSet.ts +1 -1
- package/src/Iterable.ts +15 -15
- package/src/Layer.ts +16 -16
- package/src/Logger.ts +7 -7
- package/src/ManagedRuntime.ts +2 -2
- package/src/Match.ts +20 -20
- package/src/Metric.ts +20 -20
- package/src/Option.ts +36 -36
- package/src/Order.ts +1 -1
- package/src/Path.ts +1 -1
- package/src/Pipeable.ts +1 -1
- package/src/Predicate.ts +5 -5
- package/src/PubSub.ts +9 -9
- package/src/Queue.ts +24 -24
- package/src/Record.ts +15 -15
- package/src/Redacted.ts +2 -2
- package/src/Ref.ts +18 -18
- package/src/RegExp.ts +1 -1
- package/src/Request.ts +4 -4
- package/src/RequestResolver.ts +8 -8
- package/src/Resource.ts +1 -1
- package/src/Result.ts +18 -18
- package/src/Schedule.ts +45 -45
- package/src/Schema.ts +177 -459
- package/src/SchemaAST.ts +1 -1
- package/src/SchemaGetter.ts +13 -13
- package/src/SchemaParser.ts +3 -3
- package/src/Scope.ts +1 -1
- package/src/Sink.ts +5 -5
- package/src/Stream.ts +57 -57
- package/src/String.ts +5 -5
- package/src/Struct.ts +8 -8
- package/src/SynchronizedRef.ts +57 -57
- package/src/Terminal.ts +1 -1
- package/src/Tracer.ts +5 -5
- package/src/Tuple.ts +14 -14
- package/src/TxHashMap.ts +3 -3
- package/src/TxHashSet.ts +1 -1
- package/src/Unify.ts +7 -7
- package/src/testing/TestClock.ts +5 -5
- package/src/testing/TestConsole.ts +3 -3
- package/src/unstable/ai/Chat.ts +2 -2
- package/src/unstable/ai/EmbeddingModel.ts +1 -1
- package/src/unstable/ai/IdGenerator.ts +2 -2
- package/src/unstable/ai/LanguageModel.ts +4 -4
- package/src/unstable/ai/Prompt.ts +15 -15
- package/src/unstable/ai/Telemetry.ts +5 -5
- package/src/unstable/ai/Tokenizer.ts +1 -1
- package/src/unstable/ai/Tool.ts +6 -6
- package/src/unstable/cli/Command.ts +5 -1
- package/src/unstable/cli/Param.ts +1 -1
- package/src/unstable/cli/Primitive.ts +3 -3
- package/src/unstable/cli/Prompt.ts +11 -11
- package/src/unstable/cli/internal/parser.ts +204 -10
- package/src/unstable/cluster/Entity.ts +1 -1
- package/src/unstable/cluster/EntityResource.ts +8 -4
- package/src/unstable/cluster/HttpRunner.ts +2 -2
- package/src/unstable/cluster/K8sHttpClient.ts +1 -1
- package/src/unstable/cluster/Runners.ts +1 -1
- package/src/unstable/cluster/Sharding.ts +1 -1
- package/src/unstable/cluster/SingletonAddress.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +5 -5
- package/src/unstable/devtools/DevToolsClient.ts +1 -1
- package/src/unstable/eventlog/EventLog.ts +1 -1
- package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
- package/src/unstable/eventlog/EventLogRemote.ts +1 -1
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +3 -3
- package/src/unstable/http/Cookies.ts +1 -1
- package/src/unstable/http/Etag.ts +1 -1
- package/src/unstable/http/FetchHttpClient.ts +2 -2
- package/src/unstable/http/HttpClient.ts +1 -1
- package/src/unstable/http/HttpClientRequest.ts +2 -2
- package/src/unstable/http/HttpMiddleware.ts +1 -1
- package/src/unstable/http/HttpPlatform.ts +1 -1
- package/src/unstable/http/HttpRouter.ts +4 -4
- package/src/unstable/http/HttpServerResponse.ts +3 -3
- package/src/unstable/http/Url.ts +33 -33
- package/src/unstable/httpapi/HttpApi.ts +1 -1
- package/src/unstable/httpapi/HttpApiBuilder.ts +2 -3
- package/src/unstable/httpapi/HttpApiError.ts +13 -13
- package/src/unstable/httpapi/HttpApiSecurity.ts +36 -8
- package/src/unstable/httpapi/OpenApi.ts +2 -2
- package/src/unstable/observability/PrometheusMetrics.ts +4 -4
- package/src/unstable/persistence/KeyValueStore.ts +3 -3
- package/src/unstable/persistence/Persistable.ts +2 -2
- package/src/unstable/persistence/PersistedQueue.ts +8 -8
- package/src/unstable/persistence/RateLimiter.ts +1 -1
- package/src/unstable/process/ChildProcess.ts +5 -5
- package/src/unstable/reactivity/AsyncResult.ts +4 -4
- package/src/unstable/reactivity/Atom.ts +1 -1
- package/src/unstable/reactivity/AtomRegistry.ts +1 -1
- package/src/unstable/reactivity/Reactivity.ts +1 -1
- package/src/unstable/rpc/Rpc.ts +5 -5
- package/src/unstable/rpc/RpcMiddleware.ts +1 -1
- package/src/unstable/rpc/RpcSchema.ts +3 -3
- package/src/unstable/schema/Model.ts +2 -2
- package/src/unstable/socket/Socket.ts +3 -3
- package/src/unstable/socket/SocketServer.ts +1 -1
- package/src/unstable/sql/Migrator.ts +1 -1
- package/src/unstable/sql/SqlClient.ts +3 -3
- package/src/unstable/sql/SqlConnection.ts +1 -1
- package/src/unstable/sql/Statement.ts +2 -2
- package/src/unstable/workers/Transferable.ts +1 -1
- package/src/unstable/workers/Worker.ts +1 -1
- package/src/unstable/workflow/Activity.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +1 -1
package/src/SchemaAST.ts
CHANGED
|
@@ -513,7 +513,7 @@ export type Encoding = readonly [Link, ...Array<Link>]
|
|
|
513
513
|
* - `concurrency` — maximum number of async parse effects to run concurrently;
|
|
514
514
|
* defaults to `1`, or use `"unbounded"`.
|
|
515
515
|
*
|
|
516
|
-
* @category
|
|
516
|
+
* @category options
|
|
517
517
|
* @since 3.10.0
|
|
518
518
|
*/
|
|
519
519
|
export interface ParseOptions {
|
package/src/SchemaGetter.ts
CHANGED
|
@@ -1048,7 +1048,7 @@ type ParseJsonOptions = {
|
|
|
1048
1048
|
*
|
|
1049
1049
|
* @see {@link stringifyJson} for the inverse operation
|
|
1050
1050
|
*
|
|
1051
|
-
* @category
|
|
1051
|
+
* @category JSON getters
|
|
1052
1052
|
* @since 4.0.0
|
|
1053
1053
|
*/
|
|
1054
1054
|
export function parseJson<E extends string>(): Getter<Schema.MutableJson, E>
|
|
@@ -1096,7 +1096,7 @@ type StringifyJsonOptions = {
|
|
|
1096
1096
|
*
|
|
1097
1097
|
* @see {@link parseJson} for the inverse operation
|
|
1098
1098
|
*
|
|
1099
|
-
* @category
|
|
1099
|
+
* @category JSON getters
|
|
1100
1100
|
* @since 4.0.0
|
|
1101
1101
|
*/
|
|
1102
1102
|
export function stringifyJson(options?: StringifyJsonOptions): Getter<string, unknown> {
|
|
@@ -1244,7 +1244,7 @@ export function split<E extends string>(options?: {
|
|
|
1244
1244
|
* @see {@link decodeBase64String} for the inverse operation to `string`
|
|
1245
1245
|
* @see {@link encodeBase64Url} for the URL-safe variant
|
|
1246
1246
|
*
|
|
1247
|
-
* @category Base64
|
|
1247
|
+
* @category Base64 getters
|
|
1248
1248
|
* @since 4.0.0
|
|
1249
1249
|
*/
|
|
1250
1250
|
export function encodeBase64<E extends Uint8Array | string>(): Getter<string, E> {
|
|
@@ -1270,7 +1270,7 @@ export function encodeBase64<E extends Uint8Array | string>(): Getter<string, E>
|
|
|
1270
1270
|
* @see {@link decodeBase64UrlString} for the inverse operation to `string`
|
|
1271
1271
|
* @see {@link encodeBase64} for the standard Base64 variant
|
|
1272
1272
|
*
|
|
1273
|
-
* @category Base64
|
|
1273
|
+
* @category Base64 getters
|
|
1274
1274
|
* @since 4.0.0
|
|
1275
1275
|
*/
|
|
1276
1276
|
export function encodeBase64Url<E extends Uint8Array | string>(): Getter<string, E> {
|
|
@@ -1295,7 +1295,7 @@ export function encodeBase64Url<E extends Uint8Array | string>(): Getter<string,
|
|
|
1295
1295
|
* @see {@link decodeHex} for the inverse operation to `Uint8Array`
|
|
1296
1296
|
* @see {@link decodeHexString} for the inverse operation to `string`
|
|
1297
1297
|
*
|
|
1298
|
-
* @category Hex
|
|
1298
|
+
* @category Hex getters
|
|
1299
1299
|
* @since 4.0.0
|
|
1300
1300
|
*/
|
|
1301
1301
|
export function encodeHex<E extends Uint8Array | string>(): Getter<string, E> {
|
|
@@ -1321,7 +1321,7 @@ export function encodeHex<E extends Uint8Array | string>(): Getter<string, E> {
|
|
|
1321
1321
|
* @see {@link decodeBase64String} to decode to `string` instead
|
|
1322
1322
|
* @see {@link encodeBase64} for the inverse operation
|
|
1323
1323
|
*
|
|
1324
|
-
* @category Base64
|
|
1324
|
+
* @category Base64 getters
|
|
1325
1325
|
* @since 4.0.0
|
|
1326
1326
|
*/
|
|
1327
1327
|
export function decodeBase64<E extends string>(): Getter<Uint8Array, E> {
|
|
@@ -1352,7 +1352,7 @@ export function decodeBase64<E extends string>(): Getter<Uint8Array, E> {
|
|
|
1352
1352
|
* @see {@link decodeBase64} to decode to `Uint8Array` instead
|
|
1353
1353
|
* @see {@link encodeBase64} for the inverse operation
|
|
1354
1354
|
*
|
|
1355
|
-
* @category Base64
|
|
1355
|
+
* @category Base64 getters
|
|
1356
1356
|
* @since 4.0.0
|
|
1357
1357
|
*/
|
|
1358
1358
|
export function decodeBase64String<E extends string>(): Getter<string, E> {
|
|
@@ -1383,7 +1383,7 @@ export function decodeBase64String<E extends string>(): Getter<string, E> {
|
|
|
1383
1383
|
* @see {@link decodeBase64UrlString} to decode to `string` instead
|
|
1384
1384
|
* @see {@link encodeBase64Url} for the inverse operation
|
|
1385
1385
|
*
|
|
1386
|
-
* @category Base64
|
|
1386
|
+
* @category Base64 getters
|
|
1387
1387
|
* @since 4.0.0
|
|
1388
1388
|
*/
|
|
1389
1389
|
export function decodeBase64Url<E extends string>(): Getter<Uint8Array, E> {
|
|
@@ -1414,7 +1414,7 @@ export function decodeBase64Url<E extends string>(): Getter<Uint8Array, E> {
|
|
|
1414
1414
|
* @see {@link decodeBase64Url} to decode to `Uint8Array` instead
|
|
1415
1415
|
* @see {@link encodeBase64Url} for the inverse operation
|
|
1416
1416
|
*
|
|
1417
|
-
* @category Base64
|
|
1417
|
+
* @category Base64 getters
|
|
1418
1418
|
* @since 4.0.0
|
|
1419
1419
|
*/
|
|
1420
1420
|
export function decodeBase64UrlString<E extends string>(): Getter<string, E> {
|
|
@@ -1445,7 +1445,7 @@ export function decodeBase64UrlString<E extends string>(): Getter<string, E> {
|
|
|
1445
1445
|
* @see {@link decodeHexString} to decode to `string` instead
|
|
1446
1446
|
* @see {@link encodeHex} for the inverse operation
|
|
1447
1447
|
*
|
|
1448
|
-
* @category Hex
|
|
1448
|
+
* @category Hex getters
|
|
1449
1449
|
* @since 4.0.0
|
|
1450
1450
|
*/
|
|
1451
1451
|
export function decodeHex<E extends string>(): Getter<Uint8Array, E> {
|
|
@@ -1476,7 +1476,7 @@ export function decodeHex<E extends string>(): Getter<Uint8Array, E> {
|
|
|
1476
1476
|
* @see {@link decodeHex} to decode to `Uint8Array` instead
|
|
1477
1477
|
* @see {@link encodeHex} for the inverse operation
|
|
1478
1478
|
*
|
|
1479
|
-
* @category Hex
|
|
1479
|
+
* @category Hex getters
|
|
1480
1480
|
* @since 4.0.0
|
|
1481
1481
|
*/
|
|
1482
1482
|
export function decodeHexString<E extends string>(): Getter<string, E> {
|
|
@@ -1693,7 +1693,7 @@ export function encodeFormData(): Getter<FormData, unknown> {
|
|
|
1693
1693
|
* @see {@link makeTreeRecord} for the underlying bracket-path parser
|
|
1694
1694
|
* @see {@link decodeFormData} for the FormData variant
|
|
1695
1695
|
*
|
|
1696
|
-
* @category
|
|
1696
|
+
* @category search params
|
|
1697
1697
|
* @since 4.0.0
|
|
1698
1698
|
*/
|
|
1699
1699
|
export function decodeURLSearchParams(): Getter<Schema.TreeRecord<string>, URLSearchParams> {
|
|
@@ -1728,7 +1728,7 @@ const collectURLSearchParamsEntries = collectBracketPathEntries(Predicate.isStri
|
|
|
1728
1728
|
* @see {@link collectBracketPathEntries} for the underlying flattener
|
|
1729
1729
|
* @see {@link encodeFormData} for the FormData variant
|
|
1730
1730
|
*
|
|
1731
|
-
* @category
|
|
1731
|
+
* @category search params
|
|
1732
1732
|
* @since 4.0.0
|
|
1733
1733
|
*/
|
|
1734
1734
|
export function encodeURLSearchParams(): Getter<URLSearchParams, unknown> {
|
package/src/SchemaParser.ts
CHANGED
|
@@ -97,7 +97,7 @@ const recurDefaults = memoize((ast: AST.AST): AST.AST => {
|
|
|
97
97
|
* runs type-side validation unless checks are disabled, and fails with a
|
|
98
98
|
* `SchemaIssue.Issue` when construction fails.
|
|
99
99
|
*
|
|
100
|
-
* @category
|
|
100
|
+
* @category constructors
|
|
101
101
|
* @since 4.0.0
|
|
102
102
|
*/
|
|
103
103
|
export function makeEffect<S extends Schema.Top>(schema: S) {
|
|
@@ -122,7 +122,7 @@ export function makeEffect<S extends Schema.Top>(schema: S) {
|
|
|
122
122
|
* Use when you only need to know whether constructor input is valid and do
|
|
123
123
|
* not need error details.
|
|
124
124
|
*
|
|
125
|
-
* @category
|
|
125
|
+
* @category constructors
|
|
126
126
|
* @since 4.0.0
|
|
127
127
|
*/
|
|
128
128
|
export function makeOption<S extends Schema.Top>(schema: S) {
|
|
@@ -145,7 +145,7 @@ export function makeOption<S extends Schema.Top>(schema: S) {
|
|
|
145
145
|
* The returned function constructs a value from constructor input and throws an
|
|
146
146
|
* `Error` with the `SchemaIssue.Issue` in its `cause` when construction fails.
|
|
147
147
|
*
|
|
148
|
-
* @category
|
|
148
|
+
* @category constructors
|
|
149
149
|
* @since 4.0.0
|
|
150
150
|
*/
|
|
151
151
|
export function make<S extends Schema.Top>(schema: S) {
|
package/src/Scope.ts
CHANGED
package/src/Sink.ts
CHANGED
|
@@ -694,7 +694,7 @@ export const never: Sink<unknown> = fromEffectEnd(Effect.never)
|
|
|
694
694
|
* instead of being returned to downstream sink composition. This does not
|
|
695
695
|
* continue pulling additional elements from the upstream stream.
|
|
696
696
|
*
|
|
697
|
-
* @category
|
|
697
|
+
* @category filtering
|
|
698
698
|
* @since 2.0.0
|
|
699
699
|
*/
|
|
700
700
|
export const ignoreLeftover = <A, In, L, E, R>(self: Sink<A, In, L, E, R>): Sink<A, In, never, E, R> =>
|
|
@@ -2245,21 +2245,21 @@ export const unwrap = <A, In, L, E, R, R2>(
|
|
|
2245
2245
|
/**
|
|
2246
2246
|
* Runs a summary effect when the sink starts and again when it completes.
|
|
2247
2247
|
*
|
|
2248
|
-
* @category
|
|
2248
|
+
* @category mapping
|
|
2249
2249
|
* @since 2.0.0
|
|
2250
2250
|
*/
|
|
2251
2251
|
export const summarized: {
|
|
2252
2252
|
/**
|
|
2253
2253
|
* Runs a summary effect when the sink starts and again when it completes.
|
|
2254
2254
|
*
|
|
2255
|
-
* @category
|
|
2255
|
+
* @category mapping
|
|
2256
2256
|
* @since 2.0.0
|
|
2257
2257
|
*/
|
|
2258
2258
|
<A2, E2, R2, A3>(summary: Effect.Effect<A2, E2, R2>, f: (start: A2, end: A2) => A3): <A, In, L, E, R>(self: Sink<A, In, L, E, R>) => Sink<[A, A3], In, L, E2 | E, R2 | R>
|
|
2259
2259
|
/**
|
|
2260
2260
|
* Runs a summary effect when the sink starts and again when it completes.
|
|
2261
2261
|
*
|
|
2262
|
-
* @category
|
|
2262
|
+
* @category mapping
|
|
2263
2263
|
* @since 2.0.0
|
|
2264
2264
|
*/
|
|
2265
2265
|
<A, In, L, E, R, A2, E2, R2, A3>(
|
|
@@ -2282,7 +2282,7 @@ export const summarized: {
|
|
|
2282
2282
|
/**
|
|
2283
2283
|
* Returns the sink that executes this one and times its execution.
|
|
2284
2284
|
*
|
|
2285
|
-
* @category
|
|
2285
|
+
* @category mapping
|
|
2286
2286
|
* @since 2.0.0
|
|
2287
2287
|
*/
|
|
2288
2288
|
export const withDuration = <A, In, L, E, R>(
|
package/src/Stream.ts
CHANGED
|
@@ -234,7 +234,7 @@ export interface StreamUnifyIgnore {
|
|
|
234
234
|
* // Equivalent to: Stream<number, string, never>
|
|
235
235
|
* ```
|
|
236
236
|
*
|
|
237
|
-
* @category
|
|
237
|
+
* @category type lambdas
|
|
238
238
|
* @since 2.0.0
|
|
239
239
|
*/
|
|
240
240
|
export interface StreamTypeLambda extends TypeLambda {
|
|
@@ -286,7 +286,7 @@ export interface VarianceStruct<out A, out E, out R> {
|
|
|
286
286
|
* // SuccessType is number
|
|
287
287
|
* ```
|
|
288
288
|
*
|
|
289
|
-
* @category
|
|
289
|
+
* @category utility types
|
|
290
290
|
* @since 3.4.0
|
|
291
291
|
*/
|
|
292
292
|
export type Success<T extends Stream<any, any, any>> = [T] extends [Stream<infer _A, infer _E, infer _R>] ? _A : never
|
|
@@ -304,7 +304,7 @@ export type Success<T extends Stream<any, any, any>> = [T] extends [Stream<infer
|
|
|
304
304
|
* // ErrorType is string
|
|
305
305
|
* ```
|
|
306
306
|
*
|
|
307
|
-
* @category
|
|
307
|
+
* @category utility types
|
|
308
308
|
* @since 3.4.0
|
|
309
309
|
*/
|
|
310
310
|
export type Error<T extends Stream<any, any, any>> = [T] extends [Stream<infer _A, infer _E, infer _R>] ? _E : never
|
|
@@ -325,7 +325,7 @@ export type Error<T extends Stream<any, any, any>> = [T] extends [Stream<infer _
|
|
|
325
325
|
* // RequiredServices is { db: Database }
|
|
326
326
|
* ```
|
|
327
327
|
*
|
|
328
|
-
* @category
|
|
328
|
+
* @category utility types
|
|
329
329
|
* @since 4.0.0
|
|
330
330
|
*/
|
|
331
331
|
export type Services<T extends Stream<any, any, any>> = [T] extends [Stream<infer _A, infer _E, infer _R>] ? _R
|
|
@@ -373,7 +373,7 @@ export const isStream = (u: unknown): u is Stream<unknown, unknown, unknown> =>
|
|
|
373
373
|
* // Output: 4096
|
|
374
374
|
* ```
|
|
375
375
|
*
|
|
376
|
-
* @category
|
|
376
|
+
* @category constants
|
|
377
377
|
* @since 2.0.0
|
|
378
378
|
*/
|
|
379
379
|
export const DefaultChunkSize: number = Channel.DefaultChunkSize
|
|
@@ -464,7 +464,7 @@ export const fromEffect = <A, E, R>(effect: Effect.Effect<A, E, R>): Stream<A, E
|
|
|
464
464
|
* // Output: [ "Hello, World!" ]
|
|
465
465
|
* ```
|
|
466
466
|
*
|
|
467
|
-
* @category
|
|
467
|
+
* @category context
|
|
468
468
|
* @since 4.0.0
|
|
469
469
|
*/
|
|
470
470
|
export const service = <I, S>(service: Context.Key<I, S>): Stream<S, never, I> => fromEffect(Effect.service(service))
|
|
@@ -509,7 +509,7 @@ export const service = <I, S>(service: Context.Key<I, S>): Stream<S, never, I> =
|
|
|
509
509
|
* // Output: [ "Hello, World!" ]
|
|
510
510
|
* ```
|
|
511
511
|
*
|
|
512
|
-
* @category
|
|
512
|
+
* @category context
|
|
513
513
|
* @since 4.0.0
|
|
514
514
|
*/
|
|
515
515
|
export const serviceOption = <I, S>(service: Context.Key<I, S>): Stream<Option.Option<S>> =>
|
|
@@ -4146,7 +4146,7 @@ export const prepend: {
|
|
|
4146
4146
|
* // Output: [ 1, 2, 3, 4 ]
|
|
4147
4147
|
* ```
|
|
4148
4148
|
*
|
|
4149
|
-
* @category
|
|
4149
|
+
* @category merging
|
|
4150
4150
|
* @since 2.0.0
|
|
4151
4151
|
*/
|
|
4152
4152
|
export const merge: {
|
|
@@ -4175,7 +4175,7 @@ export const merge: {
|
|
|
4175
4175
|
* // Output: [ 1, 2, 3, 4 ]
|
|
4176
4176
|
* ```
|
|
4177
4177
|
*
|
|
4178
|
-
* @category
|
|
4178
|
+
* @category merging
|
|
4179
4179
|
* @since 2.0.0
|
|
4180
4180
|
*/
|
|
4181
4181
|
<A2, E2, R2>(
|
|
@@ -4209,7 +4209,7 @@ export const merge: {
|
|
|
4209
4209
|
* // Output: [ 1, 2, 3, 4 ]
|
|
4210
4210
|
* ```
|
|
4211
4211
|
*
|
|
4212
|
-
* @category
|
|
4212
|
+
* @category merging
|
|
4213
4213
|
* @since 2.0.0
|
|
4214
4214
|
*/
|
|
4215
4215
|
<A, E, R, A2, E2, R2>(
|
|
@@ -4257,7 +4257,7 @@ export const merge: {
|
|
|
4257
4257
|
* // Output: [ 1, 2, 3 ]
|
|
4258
4258
|
* ```
|
|
4259
4259
|
*
|
|
4260
|
-
* @category
|
|
4260
|
+
* @category merging
|
|
4261
4261
|
* @since 4.0.0
|
|
4262
4262
|
*/
|
|
4263
4263
|
export const mergeEffect: {
|
|
@@ -4288,7 +4288,7 @@ export const mergeEffect: {
|
|
|
4288
4288
|
* // Output: [ 1, 2, 3 ]
|
|
4289
4289
|
* ```
|
|
4290
4290
|
*
|
|
4291
|
-
* @category
|
|
4291
|
+
* @category merging
|
|
4292
4292
|
* @since 4.0.0
|
|
4293
4293
|
*/
|
|
4294
4294
|
<A2, E2, R2>(effect: Effect.Effect<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
@@ -4319,7 +4319,7 @@ export const mergeEffect: {
|
|
|
4319
4319
|
* // Output: [ 1, 2, 3 ]
|
|
4320
4320
|
* ```
|
|
4321
4321
|
*
|
|
4322
|
-
* @category
|
|
4322
|
+
* @category merging
|
|
4323
4323
|
* @since 4.0.0
|
|
4324
4324
|
*/
|
|
4325
4325
|
<A, E, R, A2, E2, R2>(self: Stream<A, E, R>, effect: Effect.Effect<A2, E2, R2>): Stream<A, E | E2, R | R2>
|
|
@@ -4363,7 +4363,7 @@ export const mergeEffect: {
|
|
|
4363
4363
|
* // Output: [ "left:left", "right:right" ]
|
|
4364
4364
|
* ```
|
|
4365
4365
|
*
|
|
4366
|
-
* @category
|
|
4366
|
+
* @category merging
|
|
4367
4367
|
* @since 4.0.0
|
|
4368
4368
|
*/
|
|
4369
4369
|
export const mergeResult: {
|
|
@@ -4398,7 +4398,7 @@ export const mergeResult: {
|
|
|
4398
4398
|
* // Output: [ "left:left", "right:right" ]
|
|
4399
4399
|
* ```
|
|
4400
4400
|
*
|
|
4401
|
-
* @category
|
|
4401
|
+
* @category merging
|
|
4402
4402
|
* @since 4.0.0
|
|
4403
4403
|
*/
|
|
4404
4404
|
<A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<Result.Result<A, A2>, E2 | E, R2 | R>
|
|
@@ -4433,7 +4433,7 @@ export const mergeResult: {
|
|
|
4433
4433
|
* // Output: [ "left:left", "right:right" ]
|
|
4434
4434
|
* ```
|
|
4435
4435
|
*
|
|
4436
|
-
* @category
|
|
4436
|
+
* @category merging
|
|
4437
4437
|
* @since 4.0.0
|
|
4438
4438
|
*/
|
|
4439
4439
|
<A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<Result.Result<A, A2>, E | E2, R | R2>
|
|
@@ -4474,7 +4474,7 @@ export const mergeResult: {
|
|
|
4474
4474
|
* // Output: [ 1, 2 ]
|
|
4475
4475
|
* ```
|
|
4476
4476
|
*
|
|
4477
|
-
* @category
|
|
4477
|
+
* @category merging
|
|
4478
4478
|
* @since 2.0.0
|
|
4479
4479
|
*/
|
|
4480
4480
|
export const mergeLeft: {
|
|
@@ -4503,7 +4503,7 @@ export const mergeLeft: {
|
|
|
4503
4503
|
* // Output: [ 1, 2 ]
|
|
4504
4504
|
* ```
|
|
4505
4505
|
*
|
|
4506
|
-
* @category
|
|
4506
|
+
* @category merging
|
|
4507
4507
|
* @since 2.0.0
|
|
4508
4508
|
*/
|
|
4509
4509
|
<AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<AL, ER | EL, RR | RL>
|
|
@@ -4532,7 +4532,7 @@ export const mergeLeft: {
|
|
|
4532
4532
|
* // Output: [ 1, 2 ]
|
|
4533
4533
|
* ```
|
|
4534
4534
|
*
|
|
4535
|
-
* @category
|
|
4535
|
+
* @category merging
|
|
4536
4536
|
* @since 2.0.0
|
|
4537
4537
|
*/
|
|
4538
4538
|
<AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<AL, EL | ER, RL | RR>
|
|
@@ -4572,7 +4572,7 @@ export const mergeLeft: {
|
|
|
4572
4572
|
* // Output: [ 1, 2 ]
|
|
4573
4573
|
* ```
|
|
4574
4574
|
*
|
|
4575
|
-
* @category
|
|
4575
|
+
* @category merging
|
|
4576
4576
|
* @since 2.0.0
|
|
4577
4577
|
*/
|
|
4578
4578
|
export const mergeRight: {
|
|
@@ -4606,7 +4606,7 @@ export const mergeRight: {
|
|
|
4606
4606
|
* // Output: [ 1, 2 ]
|
|
4607
4607
|
* ```
|
|
4608
4608
|
*
|
|
4609
|
-
* @category
|
|
4609
|
+
* @category merging
|
|
4610
4610
|
* @since 2.0.0
|
|
4611
4611
|
*/
|
|
4612
4612
|
<AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<AR, ER | EL, RR | RL>
|
|
@@ -4640,7 +4640,7 @@ export const mergeRight: {
|
|
|
4640
4640
|
* // Output: [ 1, 2 ]
|
|
4641
4641
|
* ```
|
|
4642
4642
|
*
|
|
4643
|
-
* @category
|
|
4643
|
+
* @category merging
|
|
4644
4644
|
* @since 2.0.0
|
|
4645
4645
|
*/
|
|
4646
4646
|
<AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<AR, EL | ER, RL | RR>
|
|
@@ -4688,7 +4688,7 @@ export const mergeRight: {
|
|
|
4688
4688
|
* @see {@link merge} for merging exactly two streams and choosing a halt strategy
|
|
4689
4689
|
* @see {@link flatten} for flattening a stream that already emits streams
|
|
4690
4690
|
*
|
|
4691
|
-
* @category
|
|
4691
|
+
* @category merging
|
|
4692
4692
|
* @since 2.0.0
|
|
4693
4693
|
*/
|
|
4694
4694
|
export const mergeAll: {
|
|
@@ -4730,7 +4730,7 @@ export const mergeAll: {
|
|
|
4730
4730
|
* @see {@link merge} for merging exactly two streams and choosing a halt strategy
|
|
4731
4731
|
* @see {@link flatten} for flattening a stream that already emits streams
|
|
4732
4732
|
*
|
|
4733
|
-
* @category
|
|
4733
|
+
* @category merging
|
|
4734
4734
|
* @since 2.0.0
|
|
4735
4735
|
*/
|
|
4736
4736
|
(
|
|
@@ -4777,7 +4777,7 @@ export const mergeAll: {
|
|
|
4777
4777
|
* @see {@link merge} for merging exactly two streams and choosing a halt strategy
|
|
4778
4778
|
* @see {@link flatten} for flattening a stream that already emits streams
|
|
4779
4779
|
*
|
|
4780
|
-
* @category
|
|
4780
|
+
* @category merging
|
|
4781
4781
|
* @since 2.0.0
|
|
4782
4782
|
*/
|
|
4783
4783
|
<A, E, R>(
|
|
@@ -6128,7 +6128,7 @@ export const zipLatestWith: {
|
|
|
6128
6128
|
* // Output: [ 0, 1, 2 ]
|
|
6129
6129
|
* ```
|
|
6130
6130
|
*
|
|
6131
|
-
* @category
|
|
6131
|
+
* @category racing
|
|
6132
6132
|
* @since 3.5.0
|
|
6133
6133
|
*/
|
|
6134
6134
|
export const raceAll = <S extends ReadonlyArray<Stream<any, any, any>>>(
|
|
@@ -6189,7 +6189,7 @@ export const raceAll = <S extends ReadonlyArray<Stream<any, any, any>>>(
|
|
|
6189
6189
|
* // Output: [ 0, 1, 2 ]
|
|
6190
6190
|
* ```
|
|
6191
6191
|
*
|
|
6192
|
-
* @category
|
|
6192
|
+
* @category racing
|
|
6193
6193
|
* @since 3.7.0
|
|
6194
6194
|
*/
|
|
6195
6195
|
export const race: {
|
|
@@ -6222,7 +6222,7 @@ export const race: {
|
|
|
6222
6222
|
* // Output: [ 0, 1, 2 ]
|
|
6223
6223
|
* ```
|
|
6224
6224
|
*
|
|
6225
|
-
* @category
|
|
6225
|
+
* @category racing
|
|
6226
6226
|
* @since 3.7.0
|
|
6227
6227
|
*/
|
|
6228
6228
|
<AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<AL | AR, EL | ER, RL | RR>
|
|
@@ -6255,7 +6255,7 @@ export const race: {
|
|
|
6255
6255
|
* // Output: [ 0, 1, 2 ]
|
|
6256
6256
|
* ```
|
|
6257
6257
|
*
|
|
6258
|
-
* @category
|
|
6258
|
+
* @category racing
|
|
6259
6259
|
* @since 3.7.0
|
|
6260
6260
|
*/
|
|
6261
6261
|
<AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<AL | AR, EL | ER, RL | RR>
|
|
@@ -12266,7 +12266,7 @@ export const split: {
|
|
|
12266
12266
|
* // Output: [ "L:A", "R:1", "L:B", "R:2", "L:C", "R:3" ]
|
|
12267
12267
|
* ```
|
|
12268
12268
|
*
|
|
12269
|
-
* @category
|
|
12269
|
+
* @category merging
|
|
12270
12270
|
* @since 2.0.0
|
|
12271
12271
|
*/
|
|
12272
12272
|
export const combine: {
|
|
@@ -12303,7 +12303,7 @@ export const combine: {
|
|
|
12303
12303
|
* // Output: [ "L:A", "R:1", "L:B", "R:2", "L:C", "R:3" ]
|
|
12304
12304
|
* ```
|
|
12305
12305
|
*
|
|
12306
|
-
* @category
|
|
12306
|
+
* @category merging
|
|
12307
12307
|
* @since 2.0.0
|
|
12308
12308
|
*/
|
|
12309
12309
|
<A2, E2, R2, S, E, A, A3, E3, R3>(
|
|
@@ -12348,7 +12348,7 @@ export const combine: {
|
|
|
12348
12348
|
* // Output: [ "L:A", "R:1", "L:B", "R:2", "L:C", "R:3" ]
|
|
12349
12349
|
* ```
|
|
12350
12350
|
*
|
|
12351
|
-
* @category
|
|
12351
|
+
* @category merging
|
|
12352
12352
|
* @since 2.0.0
|
|
12353
12353
|
*/
|
|
12354
12354
|
<A, E, R, A2, E2, R2, S, A3, E3, R3>(
|
|
@@ -16571,7 +16571,7 @@ export const intersperseAffixes: {
|
|
|
16571
16571
|
* // [2, 5, 3, 6, 7]
|
|
16572
16572
|
* ```
|
|
16573
16573
|
*
|
|
16574
|
-
* @category
|
|
16574
|
+
* @category merging
|
|
16575
16575
|
* @since 2.0.0
|
|
16576
16576
|
*/
|
|
16577
16577
|
export const interleave: {
|
|
@@ -16599,7 +16599,7 @@ export const interleave: {
|
|
|
16599
16599
|
* // [2, 5, 3, 6, 7]
|
|
16600
16600
|
* ```
|
|
16601
16601
|
*
|
|
16602
|
-
* @category
|
|
16602
|
+
* @category merging
|
|
16603
16603
|
* @since 2.0.0
|
|
16604
16604
|
*/
|
|
16605
16605
|
<A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A2 | A, E2 | E, R2 | R>
|
|
@@ -16627,7 +16627,7 @@ export const interleave: {
|
|
|
16627
16627
|
* // [2, 5, 3, 6, 7]
|
|
16628
16628
|
* ```
|
|
16629
16629
|
*
|
|
16630
|
-
* @category
|
|
16630
|
+
* @category merging
|
|
16631
16631
|
* @since 2.0.0
|
|
16632
16632
|
*/
|
|
16633
16633
|
<A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<A | A2, E | E2, R | R2>
|
|
@@ -16670,7 +16670,7 @@ export const interleave: {
|
|
|
16670
16670
|
* // [ 1, 2, 4, 3, 5 ]
|
|
16671
16671
|
* ```
|
|
16672
16672
|
*
|
|
16673
|
-
* @category
|
|
16673
|
+
* @category merging
|
|
16674
16674
|
* @since 2.0.0
|
|
16675
16675
|
*/
|
|
16676
16676
|
export const interleaveWith: {
|
|
@@ -16703,7 +16703,7 @@ export const interleaveWith: {
|
|
|
16703
16703
|
* // [ 1, 2, 4, 3, 5 ]
|
|
16704
16704
|
* ```
|
|
16705
16705
|
*
|
|
16706
|
-
* @category
|
|
16706
|
+
* @category merging
|
|
16707
16707
|
* @since 2.0.0
|
|
16708
16708
|
*/
|
|
16709
16709
|
<A2, E2, R2, E3, R3>(that: Stream<A2, E2, R2>, decider: Stream<boolean, E3, R3>): <A, E, R>(self: Stream<A, E, R>) => Stream<A2 | A, E2 | E3 | E, R2 | R3 | R>
|
|
@@ -16736,7 +16736,7 @@ export const interleaveWith: {
|
|
|
16736
16736
|
* // [ 1, 2, 4, 3, 5 ]
|
|
16737
16737
|
* ```
|
|
16738
16738
|
*
|
|
16739
|
-
* @category
|
|
16739
|
+
* @category merging
|
|
16740
16740
|
* @since 2.0.0
|
|
16741
16741
|
*/
|
|
16742
16742
|
<A, E, R, A2, E2, R2, E3, R3>(
|
|
@@ -16790,7 +16790,7 @@ export const interleaveWith: {
|
|
|
16790
16790
|
* // [ 1, 2, 4, 3, 5 ]
|
|
16791
16791
|
* ```
|
|
16792
16792
|
*
|
|
16793
|
-
* @category
|
|
16793
|
+
* @category merging
|
|
16794
16794
|
* @since 2.0.0
|
|
16795
16795
|
*/
|
|
16796
16796
|
retry>(retry);
|
|
@@ -16831,7 +16831,7 @@ export const interleaveWith: {
|
|
|
16831
16831
|
* // [ 1, 2, 4, 3, 5 ]
|
|
16832
16832
|
* ```
|
|
16833
16833
|
*
|
|
16834
|
-
* @category
|
|
16834
|
+
* @category merging
|
|
16835
16835
|
* @since 2.0.0
|
|
16836
16836
|
*/
|
|
16837
16837
|
retry>(retry);
|
|
@@ -16888,7 +16888,7 @@ export const interleaveWith: {
|
|
|
16888
16888
|
* // => [1, 2]
|
|
16889
16889
|
* ```
|
|
16890
16890
|
*
|
|
16891
|
-
* @category
|
|
16891
|
+
* @category interruption
|
|
16892
16892
|
* @since 2.0.0
|
|
16893
16893
|
*/
|
|
16894
16894
|
export const interruptWhen: {
|
|
@@ -16927,7 +16927,7 @@ export const interruptWhen: {
|
|
|
16927
16927
|
* // => [1, 2]
|
|
16928
16928
|
* ```
|
|
16929
16929
|
*
|
|
16930
|
-
* @category
|
|
16930
|
+
* @category interruption
|
|
16931
16931
|
* @since 2.0.0
|
|
16932
16932
|
*/
|
|
16933
16933
|
<X, E2, R2>(effect: Effect.Effect<X, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
@@ -16966,7 +16966,7 @@ export const interruptWhen: {
|
|
|
16966
16966
|
* // => [1, 2]
|
|
16967
16967
|
* ```
|
|
16968
16968
|
*
|
|
16969
|
-
* @category
|
|
16969
|
+
* @category interruption
|
|
16970
16970
|
* @since 2.0.0
|
|
16971
16971
|
*/
|
|
16972
16972
|
<A, E, R, X, E2, R2>(self: Stream<A, E, R>, effect: Effect.Effect<X, E2, R2>): Stream<A, E | E2, R | R2>
|
|
@@ -17013,7 +17013,7 @@ export const interruptWhen: {
|
|
|
17013
17013
|
* // [1, 2]
|
|
17014
17014
|
* ```
|
|
17015
17015
|
*
|
|
17016
|
-
* @category
|
|
17016
|
+
* @category interruption
|
|
17017
17017
|
* @since 2.0.0
|
|
17018
17018
|
*/
|
|
17019
17019
|
export const haltWhen: {
|
|
@@ -17054,7 +17054,7 @@ export const haltWhen: {
|
|
|
17054
17054
|
* // [1, 2]
|
|
17055
17055
|
* ```
|
|
17056
17056
|
*
|
|
17057
|
-
* @category
|
|
17057
|
+
* @category interruption
|
|
17058
17058
|
* @since 2.0.0
|
|
17059
17059
|
*/
|
|
17060
17060
|
<X, E2, R2>(effect: Effect.Effect<X, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
@@ -17095,7 +17095,7 @@ export const haltWhen: {
|
|
|
17095
17095
|
* // [1, 2]
|
|
17096
17096
|
* ```
|
|
17097
17097
|
*
|
|
17098
|
-
* @category
|
|
17098
|
+
* @category interruption
|
|
17099
17099
|
* @since 2.0.0
|
|
17100
17100
|
*/
|
|
17101
17101
|
<A, E, R, X, E2, R2>(self: Stream<A, E, R>, effect: Effect.Effect<X, E2, R2>): Stream<A, E | E2, R | R2>
|
|
@@ -18450,7 +18450,7 @@ export const withSpan: {
|
|
|
18450
18450
|
* //=> [{ value: 1, next: 2 }, { value: 2, next: 3 }]
|
|
18451
18451
|
* ```
|
|
18452
18452
|
*
|
|
18453
|
-
* @category
|
|
18453
|
+
* @category do notation
|
|
18454
18454
|
* @since 2.0.0
|
|
18455
18455
|
*/
|
|
18456
18456
|
export const Do: Stream<{}> = succeed({})
|
|
@@ -18494,7 +18494,7 @@ export {
|
|
|
18494
18494
|
* // [{ x: 2, y: 6 }]
|
|
18495
18495
|
* ```
|
|
18496
18496
|
*
|
|
18497
|
-
* @category
|
|
18497
|
+
* @category do notation
|
|
18498
18498
|
* @since 2.0.0
|
|
18499
18499
|
*/
|
|
18500
18500
|
let_ as let
|
|
@@ -18519,7 +18519,7 @@ export {
|
|
|
18519
18519
|
* // [{ a: 1, b: 2 }, { a: 2, b: 3 }]
|
|
18520
18520
|
* ```
|
|
18521
18521
|
*
|
|
18522
|
-
* @category
|
|
18522
|
+
* @category do notation
|
|
18523
18523
|
* @since 2.0.0
|
|
18524
18524
|
*/
|
|
18525
18525
|
export const bind: {
|
|
@@ -18542,7 +18542,7 @@ export const bind: {
|
|
|
18542
18542
|
* // [{ a: 1, b: 2 }, { a: 2, b: 3 }]
|
|
18543
18543
|
* ```
|
|
18544
18544
|
*
|
|
18545
|
-
* @category
|
|
18545
|
+
* @category do notation
|
|
18546
18546
|
* @since 2.0.0
|
|
18547
18547
|
*/
|
|
18548
18548
|
<N extends string, A, B, E2, R2>(
|
|
@@ -18572,7 +18572,7 @@ export const bind: {
|
|
|
18572
18572
|
* // [{ a: 1, b: 2 }, { a: 2, b: 3 }]
|
|
18573
18573
|
* ```
|
|
18574
18574
|
*
|
|
18575
|
-
* @category
|
|
18575
|
+
* @category do notation
|
|
18576
18576
|
* @since 2.0.0
|
|
18577
18577
|
*/
|
|
18578
18578
|
<A, E, R, N extends string, B, E2, R2>(
|
|
@@ -18617,7 +18617,7 @@ export const bind: {
|
|
|
18617
18617
|
* // [{ value: 1, double: 2 }, { value: 2, double: 4 }]
|
|
18618
18618
|
* ```
|
|
18619
18619
|
*
|
|
18620
|
-
* @category
|
|
18620
|
+
* @category do notation
|
|
18621
18621
|
* @since 2.0.0
|
|
18622
18622
|
*/
|
|
18623
18623
|
export const bindEffect: {
|
|
@@ -18643,7 +18643,7 @@ export const bindEffect: {
|
|
|
18643
18643
|
* // [{ value: 1, double: 2 }, { value: 2, double: 4 }]
|
|
18644
18644
|
* ```
|
|
18645
18645
|
*
|
|
18646
|
-
* @category
|
|
18646
|
+
* @category do notation
|
|
18647
18647
|
* @since 2.0.0
|
|
18648
18648
|
*/
|
|
18649
18649
|
<N extends string, A, B, E2, R2>(
|
|
@@ -18677,7 +18677,7 @@ export const bindEffect: {
|
|
|
18677
18677
|
* // [{ value: 1, double: 2 }, { value: 2, double: 4 }]
|
|
18678
18678
|
* ```
|
|
18679
18679
|
*
|
|
18680
|
-
* @category
|
|
18680
|
+
* @category do notation
|
|
18681
18681
|
* @since 2.0.0
|
|
18682
18682
|
*/
|
|
18683
18683
|
<A, E, R, N extends string, B, E2, R2>(
|
|
@@ -18718,7 +18718,7 @@ export const bindEffect: {
|
|
|
18718
18718
|
* // [{ value: 1 }, { value: 2 }, { value: 3 }]
|
|
18719
18719
|
* ```
|
|
18720
18720
|
*
|
|
18721
|
-
* @category
|
|
18721
|
+
* @category do notation
|
|
18722
18722
|
* @since 2.0.0
|
|
18723
18723
|
*/
|
|
18724
18724
|
export const bindTo: {
|
|
@@ -18738,7 +18738,7 @@ export const bindTo: {
|
|
|
18738
18738
|
* // [{ value: 1 }, { value: 2 }, { value: 3 }]
|
|
18739
18739
|
* ```
|
|
18740
18740
|
*
|
|
18741
|
-
* @category
|
|
18741
|
+
* @category do notation
|
|
18742
18742
|
* @since 2.0.0
|
|
18743
18743
|
*/
|
|
18744
18744
|
<N extends string>(name: N): <A, E, R>(self: Stream<A, E, R>) => Stream<{ [K in N]: A }, E, R>
|
|
@@ -18758,7 +18758,7 @@ export const bindTo: {
|
|
|
18758
18758
|
* // [{ value: 1 }, { value: 2 }, { value: 3 }]
|
|
18759
18759
|
* ```
|
|
18760
18760
|
*
|
|
18761
|
-
* @category
|
|
18761
|
+
* @category do notation
|
|
18762
18762
|
* @since 2.0.0
|
|
18763
18763
|
*/
|
|
18764
18764
|
<A, E, R, N extends string>(self: Stream<A, E, R>, name: N): Stream<{ [K in N]: A }, E, R>
|