effect 4.0.0-beta.73 → 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/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/HttpApiError.d.ts +13 -13
- package/dist/unstable/httpapi/HttpApiError.js +13 -13
- 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/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/HttpApiError.ts +13 -13
- 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/dist/Effect.js
CHANGED
|
@@ -430,7 +430,7 @@ export const whileLoop = internal.whileLoop;
|
|
|
430
430
|
* ```
|
|
431
431
|
*
|
|
432
432
|
* @see {@link tryPromise} for a version that can handle failures.
|
|
433
|
-
* @category
|
|
433
|
+
* @category constructors
|
|
434
434
|
* @since 2.0.0
|
|
435
435
|
*/
|
|
436
436
|
export const promise = internal.promise;
|
|
@@ -496,7 +496,7 @@ export const promise = internal.promise;
|
|
|
496
496
|
* ```
|
|
497
497
|
*
|
|
498
498
|
* @see {@link promise} if the effectful computation is asynchronous and does not throw errors.
|
|
499
|
-
* @category
|
|
499
|
+
* @category constructors
|
|
500
500
|
* @since 2.0.0
|
|
501
501
|
*/
|
|
502
502
|
export const tryPromise = internal.tryPromise;
|
|
@@ -521,7 +521,7 @@ export const tryPromise = internal.tryPromise;
|
|
|
521
521
|
* ```
|
|
522
522
|
*
|
|
523
523
|
* @see {@link fail} to create an effect that represents a failure.
|
|
524
|
-
* @category
|
|
524
|
+
* @category constructors
|
|
525
525
|
* @since 2.0.0
|
|
526
526
|
*/
|
|
527
527
|
export const succeed = internal.succeed;
|
|
@@ -539,7 +539,7 @@ export const succeed = internal.succeed;
|
|
|
539
539
|
* // Output: { _id: 'Option', _tag: 'None' }
|
|
540
540
|
* ```
|
|
541
541
|
*
|
|
542
|
-
* @category
|
|
542
|
+
* @category constructors
|
|
543
543
|
* @since 2.0.0
|
|
544
544
|
*/
|
|
545
545
|
export const succeedNone = internal.succeedNone;
|
|
@@ -557,7 +557,7 @@ export const succeedNone = internal.succeedNone;
|
|
|
557
557
|
* // Output: { _id: 'Option', _tag: 'Some', value: 42 }
|
|
558
558
|
* ```
|
|
559
559
|
*
|
|
560
|
-
* @category
|
|
560
|
+
* @category constructors
|
|
561
561
|
* @since 2.0.0
|
|
562
562
|
*/
|
|
563
563
|
export const succeedSome = internal.succeedSome;
|
|
@@ -644,7 +644,7 @@ export const succeedSome = internal.succeedSome;
|
|
|
644
644
|
* )
|
|
645
645
|
* ```
|
|
646
646
|
*
|
|
647
|
-
* @category
|
|
647
|
+
* @category constructors
|
|
648
648
|
* @since 2.0.0
|
|
649
649
|
*/
|
|
650
650
|
export const suspend = internal.suspend;
|
|
@@ -680,7 +680,7 @@ export const suspend = internal.suspend;
|
|
|
680
680
|
* ```
|
|
681
681
|
*
|
|
682
682
|
* @see {@link try_ | try} for a version that can handle failures.
|
|
683
|
-
* @category
|
|
683
|
+
* @category constructors
|
|
684
684
|
* @since 2.0.0
|
|
685
685
|
*/
|
|
686
686
|
export const sync = internal.sync;
|
|
@@ -689,7 +689,7 @@ export {
|
|
|
689
689
|
/**
|
|
690
690
|
* Returns an effect that succeeds with `void`.
|
|
691
691
|
*
|
|
692
|
-
* @category
|
|
692
|
+
* @category constructors
|
|
693
693
|
* @since 2.0.0
|
|
694
694
|
*/
|
|
695
695
|
void_ as void };
|
|
@@ -698,7 +698,7 @@ export {
|
|
|
698
698
|
/**
|
|
699
699
|
* Returns an effect that succeeds with `undefined`.
|
|
700
700
|
*
|
|
701
|
-
* @category
|
|
701
|
+
* @category constructors
|
|
702
702
|
* @since 4.0.0
|
|
703
703
|
*/
|
|
704
704
|
undefined_ as undefined };
|
|
@@ -734,7 +734,7 @@ undefined_ as undefined };
|
|
|
734
734
|
* const program = delay(1000)
|
|
735
735
|
* ```
|
|
736
736
|
*
|
|
737
|
-
* @category
|
|
737
|
+
* @category constructors
|
|
738
738
|
* @since 4.0.0
|
|
739
739
|
*/
|
|
740
740
|
export const callback = internal.callback;
|
|
@@ -757,7 +757,7 @@ export const callback = internal.callback;
|
|
|
757
757
|
* const timedProgram = Effect.timeout(program, "1 second")
|
|
758
758
|
* ```
|
|
759
759
|
*
|
|
760
|
-
* @category
|
|
760
|
+
* @category constructors
|
|
761
761
|
* @since 2.0.0
|
|
762
762
|
*/
|
|
763
763
|
export const never = internal.never;
|
|
@@ -899,7 +899,7 @@ export const bind = internal.bind;
|
|
|
899
899
|
* })
|
|
900
900
|
* ```
|
|
901
901
|
*
|
|
902
|
-
* @category
|
|
902
|
+
* @category constructors
|
|
903
903
|
* @since 2.0.0
|
|
904
904
|
*/
|
|
905
905
|
export const gen = internal.gen;
|
|
@@ -927,7 +927,7 @@ export const gen = internal.gen;
|
|
|
927
927
|
* ```
|
|
928
928
|
*
|
|
929
929
|
* @see {@link succeed} to create an effect that represents a successful value.
|
|
930
|
-
* @category
|
|
930
|
+
* @category constructors
|
|
931
931
|
* @since 2.0.0
|
|
932
932
|
*/
|
|
933
933
|
export const fail = internal.fail;
|
|
@@ -955,7 +955,7 @@ export const fail = internal.fail;
|
|
|
955
955
|
* // Output: { _id: 'Exit', _tag: 'Failure', cause: ... }
|
|
956
956
|
* ```
|
|
957
957
|
*
|
|
958
|
-
* @category
|
|
958
|
+
* @category constructors
|
|
959
959
|
* @since 2.0.0
|
|
960
960
|
*/
|
|
961
961
|
export const failSync = internal.failSync;
|
|
@@ -980,7 +980,7 @@ export const failSync = internal.failSync;
|
|
|
980
980
|
* // Output: { _id: 'Exit', _tag: 'Failure', cause: ... }
|
|
981
981
|
* ```
|
|
982
982
|
*
|
|
983
|
-
* @category
|
|
983
|
+
* @category constructors
|
|
984
984
|
* @since 2.0.0
|
|
985
985
|
*/
|
|
986
986
|
export const failCause = internal.failCause;
|
|
@@ -1008,7 +1008,7 @@ export const failCause = internal.failCause;
|
|
|
1008
1008
|
* // Output: { _id: 'Exit', _tag: 'Failure', cause: ... }
|
|
1009
1009
|
* ```
|
|
1010
1010
|
*
|
|
1011
|
-
* @category
|
|
1011
|
+
* @category constructors
|
|
1012
1012
|
* @since 2.0.0
|
|
1013
1013
|
*/
|
|
1014
1014
|
export const failCauseSync = internal.failCauseSync;
|
|
@@ -1049,7 +1049,7 @@ export const failCauseSync = internal.failCauseSync;
|
|
|
1049
1049
|
* // ...stack trace...
|
|
1050
1050
|
* ```
|
|
1051
1051
|
*
|
|
1052
|
-
* @category
|
|
1052
|
+
* @category constructors
|
|
1053
1053
|
* @since 2.0.0
|
|
1054
1054
|
*/
|
|
1055
1055
|
export const die = internal.die;
|
|
@@ -1116,7 +1116,7 @@ export {
|
|
|
1116
1116
|
*
|
|
1117
1117
|
* @see {@link sync} if the effectful computation is synchronous and does not
|
|
1118
1118
|
* throw errors.
|
|
1119
|
-
* @category
|
|
1119
|
+
* @category constructors
|
|
1120
1120
|
* @since 2.0.0
|
|
1121
1121
|
*/
|
|
1122
1122
|
try_ as try };
|
|
@@ -1137,7 +1137,7 @@ try_ as try };
|
|
|
1137
1137
|
* Effect.runPromise(program)
|
|
1138
1138
|
* ```
|
|
1139
1139
|
*
|
|
1140
|
-
* @category
|
|
1140
|
+
* @category constructors
|
|
1141
1141
|
* @since 2.0.0
|
|
1142
1142
|
*/
|
|
1143
1143
|
export const yieldNow = internal.yieldNow;
|
|
@@ -1158,7 +1158,7 @@ export const yieldNow = internal.yieldNow;
|
|
|
1158
1158
|
* Effect.runPromise(program)
|
|
1159
1159
|
* ```
|
|
1160
1160
|
*
|
|
1161
|
-
* @category
|
|
1161
|
+
* @category constructors
|
|
1162
1162
|
* @since 4.0.0
|
|
1163
1163
|
*/
|
|
1164
1164
|
export const yieldNowWith = internal.yieldNowWith;
|
|
@@ -1178,7 +1178,7 @@ export const yieldNowWith = internal.yieldNowWith;
|
|
|
1178
1178
|
* // Output: Fiber ID: 1
|
|
1179
1179
|
* ```
|
|
1180
1180
|
*
|
|
1181
|
-
* @category
|
|
1181
|
+
* @category constructors
|
|
1182
1182
|
* @since 4.0.0
|
|
1183
1183
|
*/
|
|
1184
1184
|
export const withFiber = core.withFiber;
|
|
@@ -2729,7 +2729,7 @@ export const tapDefect = internal.tapDefect;
|
|
|
2729
2729
|
* // Ready
|
|
2730
2730
|
* ```
|
|
2731
2731
|
*
|
|
2732
|
-
* @category repetition
|
|
2732
|
+
* @category repetition
|
|
2733
2733
|
* @since 2.0.0
|
|
2734
2734
|
*/
|
|
2735
2735
|
export const eventually = internal.eventually;
|
|
@@ -5445,7 +5445,7 @@ export const abortSignal = internal.abortSignal;
|
|
|
5445
5445
|
* })
|
|
5446
5446
|
* ```
|
|
5447
5447
|
*
|
|
5448
|
-
* @category repetition
|
|
5448
|
+
* @category repetition
|
|
5449
5449
|
* @since 2.0.0
|
|
5450
5450
|
*/
|
|
5451
5451
|
export const forever = internal.forever;
|
|
@@ -5522,7 +5522,7 @@ export const forever = internal.forever;
|
|
|
5522
5522
|
* @see {@link retry} for failure-based repetition
|
|
5523
5523
|
* @see {@link repeatOrElse} for fallback handling when repetition fails
|
|
5524
5524
|
*
|
|
5525
|
-
* @category repetition
|
|
5525
|
+
* @category repetition
|
|
5526
5526
|
* @since 2.0.0
|
|
5527
5527
|
*/
|
|
5528
5528
|
export const repeat = internalSchedule.repeat;
|
|
@@ -5565,7 +5565,7 @@ export const repeat = internalSchedule.repeat;
|
|
|
5565
5565
|
* )
|
|
5566
5566
|
* ```
|
|
5567
5567
|
*
|
|
5568
|
-
* @category repetition
|
|
5568
|
+
* @category repetition
|
|
5569
5569
|
* @since 2.0.0
|
|
5570
5570
|
*/
|
|
5571
5571
|
export const repeatOrElse = internalSchedule.repeatOrElse;
|
|
@@ -5655,7 +5655,7 @@ export const replicateEffect = internal.replicateEffect;
|
|
|
5655
5655
|
* @see {@link scheduleFrom} for a variant that allows the schedule's decision
|
|
5656
5656
|
* to depend on the result of this effect.
|
|
5657
5657
|
*
|
|
5658
|
-
* @category repetition
|
|
5658
|
+
* @category repetition
|
|
5659
5659
|
* @since 2.0.0
|
|
5660
5660
|
*/
|
|
5661
5661
|
export const schedule = /*#__PURE__*/dual(2, (self, schedule) => scheduleFrom(self, undefined, schedule));
|
|
@@ -5693,7 +5693,7 @@ export const schedule = /*#__PURE__*/dual(2, (self, schedule) => scheduleFrom(se
|
|
|
5693
5693
|
* // Returns the schedule count
|
|
5694
5694
|
* ```
|
|
5695
5695
|
*
|
|
5696
|
-
* @category repetition
|
|
5696
|
+
* @category repetition
|
|
5697
5697
|
* @since 2.0.0
|
|
5698
5698
|
*/
|
|
5699
5699
|
export const scheduleFrom = internalSchedule.scheduleFrom;
|
|
@@ -6461,7 +6461,7 @@ export const fiberId = internal.fiberId;
|
|
|
6461
6461
|
* }, 500)
|
|
6462
6462
|
* ```
|
|
6463
6463
|
*
|
|
6464
|
-
* @category running
|
|
6464
|
+
* @category running
|
|
6465
6465
|
* @since 2.0.0
|
|
6466
6466
|
*/
|
|
6467
6467
|
export const runFork = internal.runFork;
|
|
@@ -6492,7 +6492,7 @@ export const runFork = internal.runFork;
|
|
|
6492
6492
|
* const fiber = Effect.runForkWith(services)(program)
|
|
6493
6493
|
* ```
|
|
6494
6494
|
*
|
|
6495
|
-
* @category running
|
|
6495
|
+
* @category running
|
|
6496
6496
|
* @since 4.0.0
|
|
6497
6497
|
*/
|
|
6498
6498
|
export const runForkWith = internal.runForkWith;
|
|
@@ -6536,7 +6536,7 @@ export const runForkWith = internal.runForkWith;
|
|
|
6536
6536
|
* interrupt()
|
|
6537
6537
|
* ```
|
|
6538
6538
|
*
|
|
6539
|
-
* @category running
|
|
6539
|
+
* @category running
|
|
6540
6540
|
* @since 4.0.0
|
|
6541
6541
|
*/
|
|
6542
6542
|
export const runCallbackWith = internal.runCallbackWith;
|
|
@@ -6577,7 +6577,7 @@ export const runCallbackWith = internal.runCallbackWith;
|
|
|
6577
6577
|
* // interrupt() to cancel the fiber if needed
|
|
6578
6578
|
* ```
|
|
6579
6579
|
*
|
|
6580
|
-
* @category running
|
|
6580
|
+
* @category running
|
|
6581
6581
|
* @since 2.0.0
|
|
6582
6582
|
*/
|
|
6583
6583
|
export const runCallback = internal.runCallback;
|
|
@@ -6614,7 +6614,7 @@ export const runCallback = internal.runCallback;
|
|
|
6614
6614
|
* ```
|
|
6615
6615
|
*
|
|
6616
6616
|
* @see {@link runPromiseExit} for a version that returns an `Exit` type instead of rejecting.
|
|
6617
|
-
* @category running
|
|
6617
|
+
* @category running
|
|
6618
6618
|
* @since 2.0.0
|
|
6619
6619
|
*/
|
|
6620
6620
|
export const runPromise = internal.runPromise;
|
|
@@ -6644,7 +6644,7 @@ export const runPromise = internal.runPromise;
|
|
|
6644
6644
|
* Effect.runPromiseWith(context)(program).then(console.log)
|
|
6645
6645
|
* ```
|
|
6646
6646
|
*
|
|
6647
|
-
* @category running
|
|
6647
|
+
* @category running
|
|
6648
6648
|
* @since 4.0.0
|
|
6649
6649
|
*/
|
|
6650
6650
|
export const runPromiseWith = internal.runPromiseWith;
|
|
@@ -6694,7 +6694,7 @@ export const runPromiseWith = internal.runPromiseWith;
|
|
|
6694
6694
|
*
|
|
6695
6695
|
* @see {@link runPromise} for a version that rejects on failure.
|
|
6696
6696
|
*
|
|
6697
|
-
* @category running
|
|
6697
|
+
* @category running
|
|
6698
6698
|
* @since 2.0.0
|
|
6699
6699
|
*/
|
|
6700
6700
|
export const runPromiseExit = internal.runPromiseExit;
|
|
@@ -6728,7 +6728,7 @@ export const runPromiseExit = internal.runPromiseExit;
|
|
|
6728
6728
|
* })
|
|
6729
6729
|
* ```
|
|
6730
6730
|
*
|
|
6731
|
-
* @category running
|
|
6731
|
+
* @category running
|
|
6732
6732
|
* @since 4.0.0
|
|
6733
6733
|
*/
|
|
6734
6734
|
export const runPromiseExitWith = internal.runPromiseExitWith;
|
|
@@ -6789,7 +6789,7 @@ export const runPromiseExitWith = internal.runPromiseExitWith;
|
|
|
6789
6789
|
*
|
|
6790
6790
|
* @see {@link runSyncExit} for a version that returns an `Exit` type instead of
|
|
6791
6791
|
* throwing an error.
|
|
6792
|
-
* @category running
|
|
6792
|
+
* @category running
|
|
6793
6793
|
* @since 2.0.0
|
|
6794
6794
|
*/
|
|
6795
6795
|
export const runSync = internal.runSync;
|
|
@@ -6820,7 +6820,7 @@ export const runSync = internal.runSync;
|
|
|
6820
6820
|
* console.log(result) // 5
|
|
6821
6821
|
* ```
|
|
6822
6822
|
*
|
|
6823
|
-
* @category running
|
|
6823
|
+
* @category running
|
|
6824
6824
|
* @since 4.0.0
|
|
6825
6825
|
*/
|
|
6826
6826
|
export const runSyncWith = internal.runSyncWith;
|
|
@@ -6894,7 +6894,7 @@ export const runSyncWith = internal.runSyncWith;
|
|
|
6894
6894
|
*
|
|
6895
6895
|
* @see {@link runSync} for a version that throws on failure.
|
|
6896
6896
|
*
|
|
6897
|
-
* @category running
|
|
6897
|
+
* @category running
|
|
6898
6898
|
* @since 2.0.0
|
|
6899
6899
|
*/
|
|
6900
6900
|
export const runSyncExit = internal.runSyncExit;
|
|
@@ -6934,7 +6934,7 @@ export const runSyncExit = internal.runSyncExit;
|
|
|
6934
6934
|
* // Success: 42
|
|
6935
6935
|
* ```
|
|
6936
6936
|
*
|
|
6937
|
-
* @category running
|
|
6937
|
+
* @category running
|
|
6938
6938
|
* @since 4.0.0
|
|
6939
6939
|
*/
|
|
6940
6940
|
export const runSyncExitWith = internal.runSyncExitWith;
|
package/dist/Equal.d.ts
CHANGED
|
@@ -347,7 +347,7 @@ export declare const asEquivalence: <A>() => Equivalence<A>;
|
|
|
347
347
|
* @see {@link byReferenceUnsafe} — same effect without a proxy (mutates the
|
|
348
348
|
* original)
|
|
349
349
|
* @see {@link equals} — the comparison function affected by this opt-out
|
|
350
|
-
* @category
|
|
350
|
+
* @category equality
|
|
351
351
|
* @since 4.0.0
|
|
352
352
|
*/
|
|
353
353
|
export declare const byReference: <T extends object>(obj: T) => T;
|
|
@@ -390,7 +390,7 @@ export declare const byReference: <T extends object>(obj: T) => T;
|
|
|
390
390
|
*
|
|
391
391
|
* @see {@link byReference} — safer alternative that creates a proxy
|
|
392
392
|
* @see {@link equals} — the comparison function affected by this opt-out
|
|
393
|
-
* @category
|
|
393
|
+
* @category unsafe
|
|
394
394
|
* @since 4.0.0
|
|
395
395
|
*/
|
|
396
396
|
export declare const byReferenceUnsafe: <T extends object>(obj: T) => T;
|
package/dist/Equal.js
CHANGED
|
@@ -333,7 +333,7 @@ export const asEquivalence = () => equals;
|
|
|
333
333
|
* @see {@link byReferenceUnsafe} — same effect without a proxy (mutates the
|
|
334
334
|
* original)
|
|
335
335
|
* @see {@link equals} — the comparison function affected by this opt-out
|
|
336
|
-
* @category
|
|
336
|
+
* @category equality
|
|
337
337
|
* @since 4.0.0
|
|
338
338
|
*/
|
|
339
339
|
export const byReference = obj => byReferenceUnsafe(new Proxy(obj, {}));
|
|
@@ -376,7 +376,7 @@ export const byReference = obj => byReferenceUnsafe(new Proxy(obj, {}));
|
|
|
376
376
|
*
|
|
377
377
|
* @see {@link byReference} — safer alternative that creates a proxy
|
|
378
378
|
* @see {@link equals} — the comparison function affected by this opt-out
|
|
379
|
-
* @category
|
|
379
|
+
* @category unsafe
|
|
380
380
|
* @since 4.0.0
|
|
381
381
|
*/
|
|
382
382
|
export const byReferenceUnsafe = obj => {
|
package/dist/Equivalence.d.ts
CHANGED
|
@@ -962,7 +962,7 @@ export declare function Record<A>(value: Equivalence<A>): Equivalence<Record<Pro
|
|
|
962
962
|
* @see {@link combine} Combine two equivalences
|
|
963
963
|
* @see {@link combineAll} Combine multiple equivalences
|
|
964
964
|
* @see {@link Reducer} Reducer type for collection operations
|
|
965
|
-
* @category
|
|
965
|
+
* @category constructors
|
|
966
966
|
* @since 4.0.0
|
|
967
967
|
*/
|
|
968
968
|
export declare function makeReducer<A>(): Reducer.Reducer<Equivalence<A>>;
|
package/dist/Equivalence.js
CHANGED
|
@@ -746,7 +746,7 @@ export function Record(value) {
|
|
|
746
746
|
* @see {@link combine} Combine two equivalences
|
|
747
747
|
* @see {@link combineAll} Combine multiple equivalences
|
|
748
748
|
* @see {@link Reducer} Reducer type for collection operations
|
|
749
|
-
* @category
|
|
749
|
+
* @category constructors
|
|
750
750
|
* @since 4.0.0
|
|
751
751
|
*/
|
|
752
752
|
export function makeReducer() {
|
package/dist/ExecutionPlan.d.ts
CHANGED
|
@@ -340,7 +340,7 @@ export declare namespace make {
|
|
|
340
340
|
*
|
|
341
341
|
* @see {@link make} for building a plan from individual steps instead of combining existing plans
|
|
342
342
|
*
|
|
343
|
-
* @category
|
|
343
|
+
* @category combining
|
|
344
344
|
* @since 3.16.0
|
|
345
345
|
*/
|
|
346
346
|
export declare const merge: <const Plans extends NonEmptyReadonlyArray<ExecutionPlan<any>>>(...plans: Plans) => ExecutionPlan<{
|
|
@@ -357,7 +357,7 @@ export declare const merge: <const Plans extends NonEmptyReadonlyArray<Execution
|
|
|
357
357
|
* `attempt` is the current 1-based attempt number, and `stepIndex` is the
|
|
358
358
|
* 0-based index of the plan step currently being evaluated.
|
|
359
359
|
*
|
|
360
|
-
* @category
|
|
360
|
+
* @category metadata
|
|
361
361
|
* @since 4.0.0
|
|
362
362
|
*/
|
|
363
363
|
export interface Metadata {
|
package/dist/ExecutionPlan.js
CHANGED
|
@@ -126,7 +126,7 @@ const makeProto = steps => {
|
|
|
126
126
|
*
|
|
127
127
|
* @see {@link make} for building a plan from individual steps instead of combining existing plans
|
|
128
128
|
*
|
|
129
|
-
* @category
|
|
129
|
+
* @category combining
|
|
130
130
|
* @since 3.16.0
|
|
131
131
|
*/
|
|
132
132
|
export const merge = (...plans) => makeProto(plans.flatMap(plan => plan.steps));
|
package/dist/FileSystem.d.ts
CHANGED
|
@@ -620,7 +620,7 @@ export type OpenFlag = "r" | "r+" | "w" | "wx" | "w+" | "wx+" | "a" | "ax" | "a+
|
|
|
620
620
|
* )
|
|
621
621
|
* ```
|
|
622
622
|
*
|
|
623
|
-
* @category
|
|
623
|
+
* @category services
|
|
624
624
|
* @since 4.0.0
|
|
625
625
|
*/
|
|
626
626
|
export declare const FileSystem: Context.Service<FileSystem, FileSystem>;
|
|
@@ -764,7 +764,7 @@ export declare const FileTypeId = "~effect/platform/FileSystem/File";
|
|
|
764
764
|
* @see {@link File} for the file-handle interface narrowed by this guard
|
|
765
765
|
* @see {@link FileTypeId} for the runtime marker checked by this guard
|
|
766
766
|
*
|
|
767
|
-
* @category
|
|
767
|
+
* @category file
|
|
768
768
|
* @since 4.0.0
|
|
769
769
|
*/
|
|
770
770
|
export declare const isFile: (u: unknown) => u is File;
|
|
@@ -809,7 +809,7 @@ export declare const isFile: (u: unknown) => u is File;
|
|
|
809
809
|
* })
|
|
810
810
|
* ```
|
|
811
811
|
*
|
|
812
|
-
* @category
|
|
812
|
+
* @category file
|
|
813
813
|
* @since 4.0.0
|
|
814
814
|
*/
|
|
815
815
|
export interface File {
|
|
@@ -839,7 +839,7 @@ export declare namespace File {
|
|
|
839
839
|
* File descriptors are numeric handles used by the operating system
|
|
840
840
|
* to identify open files. The branded type ensures type safety.
|
|
841
841
|
*
|
|
842
|
-
* @category
|
|
842
|
+
* @category file
|
|
843
843
|
* @since 4.0.0
|
|
844
844
|
*/
|
|
845
845
|
type Descriptor = Brand.Branded<number, "FileDescriptor">;
|
|
@@ -851,7 +851,7 @@ export declare namespace File {
|
|
|
851
851
|
* Represents the different types of entries that can exist in a file system,
|
|
852
852
|
* from regular files to special device files and symbolic links.
|
|
853
853
|
*
|
|
854
|
-
* @category
|
|
854
|
+
* @category file
|
|
855
855
|
* @since 4.0.0
|
|
856
856
|
*/
|
|
857
857
|
type Type = "File" | "Directory" | "SymbolicLink" | "BlockDevice" | "CharacterDevice" | "FIFO" | "Socket" | "Unknown";
|
|
@@ -897,7 +897,7 @@ export declare namespace File {
|
|
|
897
897
|
* })
|
|
898
898
|
* ```
|
|
899
899
|
*
|
|
900
|
-
* @category
|
|
900
|
+
* @category file
|
|
901
901
|
* @since 4.0.0
|
|
902
902
|
*/
|
|
903
903
|
interface Info {
|
package/dist/FileSystem.js
CHANGED
|
@@ -320,7 +320,7 @@ export const PiB = n => Size(BigInt(n) * bigintPiB);
|
|
|
320
320
|
* )
|
|
321
321
|
* ```
|
|
322
322
|
*
|
|
323
|
-
* @category
|
|
323
|
+
* @category services
|
|
324
324
|
* @since 4.0.0
|
|
325
325
|
*/
|
|
326
326
|
export const FileSystem = /*#__PURE__*/Context.Service("effect/platform/FileSystem");
|
|
@@ -611,7 +611,7 @@ export const FileTypeId = "~effect/platform/FileSystem/File";
|
|
|
611
611
|
* @see {@link File} for the file-handle interface narrowed by this guard
|
|
612
612
|
* @see {@link FileTypeId} for the runtime marker checked by this guard
|
|
613
613
|
*
|
|
614
|
-
* @category
|
|
614
|
+
* @category file
|
|
615
615
|
* @since 4.0.0
|
|
616
616
|
*/
|
|
617
617
|
export const isFile = u => hasProperty(u, FileTypeId);
|
package/dist/Function.d.ts
CHANGED
|
@@ -377,7 +377,7 @@ export declare const identity: <A>(a: A) => A;
|
|
|
377
377
|
*
|
|
378
378
|
* @see {@link cast} for changing only the static TypeScript type
|
|
379
379
|
*
|
|
380
|
-
* @category
|
|
380
|
+
* @category utility types
|
|
381
381
|
* @since 2.0.0
|
|
382
382
|
*/
|
|
383
383
|
export declare const satisfies: <A>() => <B extends A>(b: B) => B;
|
|
@@ -396,7 +396,7 @@ export declare const satisfies: <A>() => <B extends A>(b: B) => B;
|
|
|
396
396
|
*
|
|
397
397
|
* @see {@link satisfies} for checking assignability without changing the resulting type
|
|
398
398
|
*
|
|
399
|
-
* @category
|
|
399
|
+
* @category utility types
|
|
400
400
|
* @since 4.0.0
|
|
401
401
|
*/
|
|
402
402
|
export declare const cast: <A, B>(a: A) => B;
|
|
@@ -655,7 +655,7 @@ export declare const compose: {
|
|
|
655
655
|
* }
|
|
656
656
|
* ```
|
|
657
657
|
*
|
|
658
|
-
* @category
|
|
658
|
+
* @category utility types
|
|
659
659
|
* @since 2.0.0
|
|
660
660
|
*/
|
|
661
661
|
export declare const absurd: <A>(_: never) => A;
|
|
@@ -901,7 +901,7 @@ export declare function flow<A extends ReadonlyArray<unknown>, B = never, C = ne
|
|
|
901
901
|
* console.log(typeof buildUser) // "function"
|
|
902
902
|
* ```
|
|
903
903
|
*
|
|
904
|
-
* @category
|
|
904
|
+
* @category utility types
|
|
905
905
|
* @since 2.0.0
|
|
906
906
|
*/
|
|
907
907
|
export declare const hole: <T>() => T;
|
|
@@ -948,7 +948,7 @@ export declare const SK: <A, B>(_: A, b: B) => B;
|
|
|
948
948
|
* mutated after its first call, later calls still return the cached result for
|
|
949
949
|
* that reference.
|
|
950
950
|
*
|
|
951
|
-
* @category
|
|
951
|
+
* @category caching
|
|
952
952
|
* @since 4.0.0
|
|
953
953
|
*/
|
|
954
954
|
export declare function memoize<A extends object, O>(f: (a: A) => O): (ast: A) => O;
|
package/dist/Function.js
CHANGED
|
@@ -176,7 +176,7 @@ export const identity = a => a;
|
|
|
176
176
|
*
|
|
177
177
|
* @see {@link cast} for changing only the static TypeScript type
|
|
178
178
|
*
|
|
179
|
-
* @category
|
|
179
|
+
* @category utility types
|
|
180
180
|
* @since 2.0.0
|
|
181
181
|
*/
|
|
182
182
|
export const satisfies = () => b => b;
|
|
@@ -195,7 +195,7 @@ export const satisfies = () => b => b;
|
|
|
195
195
|
*
|
|
196
196
|
* @see {@link satisfies} for checking assignability without changing the resulting type
|
|
197
197
|
*
|
|
198
|
-
* @category
|
|
198
|
+
* @category utility types
|
|
199
199
|
* @since 4.0.0
|
|
200
200
|
*/
|
|
201
201
|
export const cast = identity;
|
|
@@ -399,7 +399,7 @@ export const compose = /*#__PURE__*/dual(2, (ab, bc) => a => bc(ab(a)));
|
|
|
399
399
|
* }
|
|
400
400
|
* ```
|
|
401
401
|
*
|
|
402
|
-
* @category
|
|
402
|
+
* @category utility types
|
|
403
403
|
* @since 2.0.0
|
|
404
404
|
*/
|
|
405
405
|
export const absurd = _ => {
|
|
@@ -521,7 +521,7 @@ export function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
|
|
|
521
521
|
* console.log(typeof buildUser) // "function"
|
|
522
522
|
* ```
|
|
523
523
|
*
|
|
524
|
-
* @category
|
|
524
|
+
* @category utility types
|
|
525
525
|
* @since 2.0.0
|
|
526
526
|
*/
|
|
527
527
|
export const hole = /*#__PURE__*/cast(absurd);
|
|
@@ -568,7 +568,7 @@ export const SK = (_, b) => b;
|
|
|
568
568
|
* mutated after its first call, later calls still return the cached result for
|
|
569
569
|
* that reference.
|
|
570
570
|
*
|
|
571
|
-
* @category
|
|
571
|
+
* @category caching
|
|
572
572
|
* @since 4.0.0
|
|
573
573
|
*/
|
|
574
574
|
export function memoize(f) {
|
package/dist/Graph.d.ts
CHANGED
|
@@ -1739,7 +1739,7 @@ export declare const neighborsDirected: {
|
|
|
1739
1739
|
* }
|
|
1740
1740
|
* ```
|
|
1741
1741
|
*
|
|
1742
|
-
* @category
|
|
1742
|
+
* @category options
|
|
1743
1743
|
* @since 3.18.0
|
|
1744
1744
|
*/
|
|
1745
1745
|
export interface GraphVizOptions<N, E> {
|
|
@@ -1788,7 +1788,7 @@ export interface GraphVizOptions<N, E> {
|
|
|
1788
1788
|
* // }
|
|
1789
1789
|
* ```
|
|
1790
1790
|
*
|
|
1791
|
-
* @category
|
|
1791
|
+
* @category converting
|
|
1792
1792
|
* @since 3.18.0
|
|
1793
1793
|
*/
|
|
1794
1794
|
export declare const toGraphViz: {
|
|
@@ -1821,7 +1821,7 @@ export declare const toGraphViz: {
|
|
|
1821
1821
|
* // }
|
|
1822
1822
|
* ```
|
|
1823
1823
|
*
|
|
1824
|
-
* @category
|
|
1824
|
+
* @category converting
|
|
1825
1825
|
* @since 3.18.0
|
|
1826
1826
|
*/
|
|
1827
1827
|
<N, E>(options?: GraphVizOptions<N, E>): <T extends Kind = "directed">(graph: Graph<N, E, T> | MutableGraph<N, E, T>) => string;
|
|
@@ -1854,7 +1854,7 @@ export declare const toGraphViz: {
|
|
|
1854
1854
|
* // }
|
|
1855
1855
|
* ```
|
|
1856
1856
|
*
|
|
1857
|
-
* @category
|
|
1857
|
+
* @category converting
|
|
1858
1858
|
* @since 3.18.0
|
|
1859
1859
|
*/
|
|
1860
1860
|
<N, E, T extends Kind = "directed">(graph: Graph<N, E, T> | MutableGraph<N, E, T>, options?: GraphVizOptions<N, E>): string;
|
|
@@ -2003,7 +2003,7 @@ export type MermaidDiagramType = "flowchart" | "graph";
|
|
|
2003
2003
|
* }
|
|
2004
2004
|
* ```
|
|
2005
2005
|
*
|
|
2006
|
-
* @category
|
|
2006
|
+
* @category options
|
|
2007
2007
|
* @since 3.18.0
|
|
2008
2008
|
*/
|
|
2009
2009
|
export interface MermaidOptions<N, E> {
|
|
@@ -2210,7 +2210,7 @@ export interface MermaidOptions<N, E> {
|
|
|
2210
2210
|
* // 0 -->|"builds with"| 3
|
|
2211
2211
|
* ```
|
|
2212
2212
|
*
|
|
2213
|
-
* @category
|
|
2213
|
+
* @category converting
|
|
2214
2214
|
* @since 3.18.0
|
|
2215
2215
|
*/
|
|
2216
2216
|
export declare const toMermaid: {
|
|
@@ -2390,7 +2390,7 @@ export declare const toMermaid: {
|
|
|
2390
2390
|
* // 0 -->|"builds with"| 3
|
|
2391
2391
|
* ```
|
|
2392
2392
|
*
|
|
2393
|
-
* @category
|
|
2393
|
+
* @category converting
|
|
2394
2394
|
* @since 3.18.0
|
|
2395
2395
|
*/
|
|
2396
2396
|
<N, E>(options?: MermaidOptions<N, E>): <T extends Kind = "directed">(graph: Graph<N, E, T> | MutableGraph<N, E, T>) => string;
|
|
@@ -2570,7 +2570,7 @@ export declare const toMermaid: {
|
|
|
2570
2570
|
* // 0 -->|"builds with"| 3
|
|
2571
2571
|
* ```
|
|
2572
2572
|
*
|
|
2573
|
-
* @category
|
|
2573
|
+
* @category converting
|
|
2574
2574
|
* @since 3.18.0
|
|
2575
2575
|
*/
|
|
2576
2576
|
<N, E, T extends Kind = "directed">(graph: Graph<N, E, T> | MutableGraph<N, E, T>, options?: MermaidOptions<N, E>): string;
|
|
@@ -3523,7 +3523,7 @@ export type EdgeWalker<E> = Walker<EdgeIndex, Edge<E>>;
|
|
|
3523
3523
|
* console.log(indices) // [0, 1]
|
|
3524
3524
|
* ```
|
|
3525
3525
|
*
|
|
3526
|
-
* @category
|
|
3526
|
+
* @category iterators
|
|
3527
3527
|
* @since 3.18.0
|
|
3528
3528
|
*/
|
|
3529
3529
|
export declare const indices: <T, N>(walker: Walker<T, N>) => Iterable<T>;
|
|
@@ -3546,7 +3546,7 @@ export declare const indices: <T, N>(walker: Walker<T, N>) => Iterable<T>;
|
|
|
3546
3546
|
* console.log(values) // ["A", "B"]
|
|
3547
3547
|
* ```
|
|
3548
3548
|
*
|
|
3549
|
-
* @category
|
|
3549
|
+
* @category iterators
|
|
3550
3550
|
* @since 3.18.0
|
|
3551
3551
|
*/
|
|
3552
3552
|
export declare const values: <T, N>(walker: Walker<T, N>) => Iterable<N>;
|
|
@@ -3569,7 +3569,7 @@ export declare const values: <T, N>(walker: Walker<T, N>) => Iterable<N>;
|
|
|
3569
3569
|
* console.log(entries) // [[0, "A"], [1, "B"]]
|
|
3570
3570
|
* ```
|
|
3571
3571
|
*
|
|
3572
|
-
* @category
|
|
3572
|
+
* @category iterators
|
|
3573
3573
|
* @since 3.18.0
|
|
3574
3574
|
*/
|
|
3575
3575
|
export declare const entries: <T, N>(walker: Walker<T, N>) => Iterable<[T, N]>;
|