unthrown 1.1.0 → 2.0.0
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/index.cjs +38 -11
- package/dist/index.d.cts +63 -36
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +63 -36
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +38 -12
- package/dist/index.mjs.map +1 -1
- package/docs/index.md +150 -127
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -845,13 +845,12 @@ function allFromDictAsync(results) {
|
|
|
845
845
|
//#endregion
|
|
846
846
|
//#region src/facade.ts
|
|
847
847
|
/**
|
|
848
|
-
* Companion object grouping the
|
|
849
|
-
* discoverable namespace: {@link Result.Ok}, {@link Result.Err},
|
|
850
|
-
* {@link Result.Defect}, {@link Result.
|
|
851
|
-
* {@link Result.
|
|
852
|
-
* {@link Result.
|
|
853
|
-
* {@link Result.
|
|
854
|
-
* {@link Result.isDefect}, {@link Result.isResult}.
|
|
848
|
+
* Companion object grouping the **`Result`-producing** entry points under a
|
|
849
|
+
* single, discoverable namespace: {@link Result.Ok}, {@link Result.Err},
|
|
850
|
+
* {@link Result.Defect}, {@link Result.Do}, {@link Result.fromNullable},
|
|
851
|
+
* {@link Result.fromThrowable}, {@link Result.all}, {@link Result.allFromDict},
|
|
852
|
+
* {@link Result.isOk}, {@link Result.isErr}, {@link Result.isDefect},
|
|
853
|
+
* {@link Result.isResult}.
|
|
855
854
|
*
|
|
856
855
|
* @remarks
|
|
857
856
|
* Purely additive sugar — each member **is** the corresponding free function.
|
|
@@ -859,6 +858,10 @@ function allFromDictAsync(results) {
|
|
|
859
858
|
* `{ Ok }` never pulls this object in. The value `Result` and the type
|
|
860
859
|
* {@link Result} share one name (the companion-object pattern).
|
|
861
860
|
*
|
|
861
|
+
* The **async** entry points live on the sibling {@link AsyncResult} companion
|
|
862
|
+
* (`AsyncResult.fromPromise`, `AsyncResult.all`, …), grouped by what they
|
|
863
|
+
* return — a static lives in exactly one namespace.
|
|
864
|
+
*
|
|
862
865
|
* @example
|
|
863
866
|
* ```ts
|
|
864
867
|
* import { Result } from "unthrown";
|
|
@@ -872,17 +875,40 @@ const Result = {
|
|
|
872
875
|
Do,
|
|
873
876
|
fromNullable,
|
|
874
877
|
fromThrowable,
|
|
875
|
-
fromPromise,
|
|
876
|
-
fromSafePromise,
|
|
877
878
|
all,
|
|
878
|
-
allAsync,
|
|
879
879
|
allFromDict,
|
|
880
|
-
allFromDictAsync,
|
|
881
880
|
isOk,
|
|
882
881
|
isErr,
|
|
883
882
|
isDefect,
|
|
884
883
|
isResult
|
|
885
884
|
};
|
|
885
|
+
/**
|
|
886
|
+
* Companion object grouping the **`AsyncResult`-producing** entry points under
|
|
887
|
+
* the matching namespace: {@link AsyncResult.fromPromise},
|
|
888
|
+
* {@link AsyncResult.fromSafePromise}, {@link AsyncResult.all},
|
|
889
|
+
* {@link AsyncResult.allFromDict}.
|
|
890
|
+
*
|
|
891
|
+
* @remarks
|
|
892
|
+
* The async sibling of {@link Result}. Statics are grouped by what they
|
|
893
|
+
* **return**, so `fromPromise`/`fromSafePromise` and the async aggregates sit
|
|
894
|
+
* here rather than on {@link Result}; the namespace already conveys "async", so
|
|
895
|
+
* the aggregates drop the `Async` suffix (`AsyncResult.all` is the free function
|
|
896
|
+
* `allAsync`; `AsyncResult.allFromDict` is `allFromDictAsync`). Like
|
|
897
|
+
* {@link Result}, the free functions remain the primary, tree-shakeable API; the
|
|
898
|
+
* value `AsyncResult` and the type {@link AsyncResult} share one name.
|
|
899
|
+
*
|
|
900
|
+
* @example
|
|
901
|
+
* ```ts
|
|
902
|
+
* import { AsyncResult, Defect } from "unthrown";
|
|
903
|
+
* const user = await AsyncResult.fromPromise(fetchUser(id), (c) => Defect(c));
|
|
904
|
+
* ```
|
|
905
|
+
*/
|
|
906
|
+
const AsyncResult = {
|
|
907
|
+
fromPromise,
|
|
908
|
+
fromSafePromise,
|
|
909
|
+
all: allAsync,
|
|
910
|
+
allFromDict: allFromDictAsync
|
|
911
|
+
};
|
|
886
912
|
//#endregion
|
|
887
913
|
//#region src/tagged.ts
|
|
888
914
|
/**
|
|
@@ -951,6 +977,7 @@ function matchTags(result, handlers) {
|
|
|
951
977
|
});
|
|
952
978
|
}
|
|
953
979
|
//#endregion
|
|
980
|
+
exports.AsyncResult = AsyncResult;
|
|
954
981
|
exports.Defect = Defect;
|
|
955
982
|
exports.Do = Do;
|
|
956
983
|
exports.Err = Err;
|
package/dist/index.d.cts
CHANGED
|
@@ -261,7 +261,7 @@ type ResultMethods<T, E> = {
|
|
|
261
261
|
isOk(): this is OkView<T, E>; /** Whether this result is `Err` — narrows `this` to its {@link ErrView} on `true`. */
|
|
262
262
|
isErr(): this is ErrView<E, T>; /** Whether this result is a `Defect` — narrows `this` to its {@link DefectView} on `true`. */
|
|
263
263
|
isDefect(): this is DefectView<T, E>; /** Lift this synchronous `Result` into an {@link AsyncResult}. */
|
|
264
|
-
toAsync(): AsyncResult<T, E>;
|
|
264
|
+
toAsync(): AsyncResult$1<T, E>;
|
|
265
265
|
};
|
|
266
266
|
/** The `Ok` variant of a {@link Result}: a success carrying a `value`. */
|
|
267
267
|
type OkView<T, E = never> = ResultMethods<T, E> & {
|
|
@@ -351,40 +351,40 @@ type Awaitable<T> = {
|
|
|
351
351
|
* @typeParam T - the success value type.
|
|
352
352
|
* @typeParam E - the modeled error type.
|
|
353
353
|
*/
|
|
354
|
-
type AsyncResult<T, E> = Awaitable<Result$1<T, E>> & {
|
|
355
|
-
/** Asynchronous `map`. `f` is synchronous; a throw becomes a `Defect`. */map<U>(f: (value: T) => U): AsyncResult<U, E>;
|
|
354
|
+
type AsyncResult$1<T, E> = Awaitable<Result$1<T, E>> & {
|
|
355
|
+
/** Asynchronous `map`. `f` is synchronous; a throw becomes a `Defect`. */map<U>(f: (value: T) => U): AsyncResult$1<U, E>;
|
|
356
356
|
/**
|
|
357
357
|
* Asynchronous `flatMap`. `f` may return a `Result` **or** an `AsyncResult`
|
|
358
358
|
* (never a raw `Promise`); a throw becomes a `Defect`.
|
|
359
359
|
*/
|
|
360
|
-
flatMap<U, E2>(f: (value: T) => Result$1<U, E2> | AsyncResult<U, E2>): AsyncResult<U, E | E2>; /** Asynchronous `tap`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
361
|
-
tap(f: (value: T) => void): AsyncResult<T, E>;
|
|
360
|
+
flatMap<U, E2>(f: (value: T) => Result$1<U, E2> | AsyncResult$1<U, E2>): AsyncResult$1<U, E | E2>; /** Asynchronous `tap`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
361
|
+
tap(f: (value: T) => void): AsyncResult$1<T, E>;
|
|
362
362
|
/**
|
|
363
363
|
* Asynchronous `flatTap` — a failable tap that keeps the original value. `f`
|
|
364
364
|
* may return a `Result` **or** an `AsyncResult`; its `Ok` value is discarded,
|
|
365
365
|
* an `Err`/`Defect` short-circuits, and a throw becomes a `Defect`.
|
|
366
366
|
*/
|
|
367
|
-
flatTap<E2>(f: (value: T) => Result$1<unknown, E2> | AsyncResult<unknown, E2>): AsyncResult<T, E | E2>;
|
|
367
|
+
flatTap<E2>(f: (value: T) => Result$1<unknown, E2> | AsyncResult$1<unknown, E2>): AsyncResult$1<T, E | E2>;
|
|
368
368
|
/**
|
|
369
369
|
* Asynchronous `bind` (do-notation). `f` may return a `Result` **or** an
|
|
370
370
|
* `AsyncResult`; its value is bound under `name` in the accumulating scope.
|
|
371
371
|
*/
|
|
372
|
-
bind<K extends string, U, E2>(name: K, f: (scope: T) => Result$1<U, E2> | AsyncResult<U, E2>): AsyncResult<Bound<T, K, U>, E | E2>; /** Asynchronous `let` (do-notation). `f` returns a plain value, bound under `name`. */
|
|
373
|
-
let<K extends string, U>(name: K, f: (scope: T) => U): AsyncResult<Bound<T, K, U>, E>; /** Asynchronous `as`. */
|
|
374
|
-
as<U>(value: U): AsyncResult<U, E>; /** Asynchronous `mapErr`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
375
|
-
mapErr<E2>(f: (error: E) => E2): AsyncResult<T, E2>; /** Asynchronous `orElse`. `f` may return a `Result` or an `AsyncResult`. */
|
|
376
|
-
orElse<U, E2>(f: (error: E) => Result$1<U, E2> | AsyncResult<U, E2>): AsyncResult<T | U, E2>; /** Asynchronous `recover`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
377
|
-
recover<U>(f: (error: E) => U): AsyncResult<T | U, never>; /** Asynchronous `tapErr`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
378
|
-
tapErr(f: (error: E) => void): AsyncResult<T, E>;
|
|
372
|
+
bind<K extends string, U, E2>(name: K, f: (scope: T) => Result$1<U, E2> | AsyncResult$1<U, E2>): AsyncResult$1<Bound<T, K, U>, E | E2>; /** Asynchronous `let` (do-notation). `f` returns a plain value, bound under `name`. */
|
|
373
|
+
let<K extends string, U>(name: K, f: (scope: T) => U): AsyncResult$1<Bound<T, K, U>, E>; /** Asynchronous `as`. */
|
|
374
|
+
as<U>(value: U): AsyncResult$1<U, E>; /** Asynchronous `mapErr`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
375
|
+
mapErr<E2>(f: (error: E) => E2): AsyncResult$1<T, E2>; /** Asynchronous `orElse`. `f` may return a `Result` or an `AsyncResult`. */
|
|
376
|
+
orElse<U, E2>(f: (error: E) => Result$1<U, E2> | AsyncResult$1<U, E2>): AsyncResult$1<T | U, E2>; /** Asynchronous `recover`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
377
|
+
recover<U>(f: (error: E) => U): AsyncResult$1<T | U, never>; /** Asynchronous `tapErr`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
378
|
+
tapErr(f: (error: E) => void): AsyncResult$1<T, E>;
|
|
379
379
|
/**
|
|
380
380
|
* Asynchronous `flatTapErr` — a failable tap on the error that keeps the
|
|
381
381
|
* original error. `f` may return a `Result` **or** an `AsyncResult`; its `Ok`
|
|
382
382
|
* value is discarded, an `Err`/`Defect` from `f` threads through, and a throw
|
|
383
383
|
* becomes a `Defect`.
|
|
384
384
|
*/
|
|
385
|
-
flatTapErr<E2>(f: (error: E) => Result$1<unknown, E2> | AsyncResult<unknown, E2>): AsyncResult<T, E | E2>; /** Asynchronous `recoverDefect`. `f` may return a `Result` or an `AsyncResult`. */
|
|
386
|
-
recoverDefect<U, E2>(f: (cause: unknown) => Result$1<U, E2> | AsyncResult<U, E2>): AsyncResult<T | U, E | E2>; /** Asynchronous `tapDefect`. */
|
|
387
|
-
tapDefect(f: (cause: unknown) => void): AsyncResult<T, E>; /** Asynchronous `match`. Handlers are synchronous; resolves to `R`. */
|
|
385
|
+
flatTapErr<E2>(f: (error: E) => Result$1<unknown, E2> | AsyncResult$1<unknown, E2>): AsyncResult$1<T, E | E2>; /** Asynchronous `recoverDefect`. `f` may return a `Result` or an `AsyncResult`. */
|
|
386
|
+
recoverDefect<U, E2>(f: (cause: unknown) => Result$1<U, E2> | AsyncResult$1<U, E2>): AsyncResult$1<T | U, E | E2>; /** Asynchronous `tapDefect`. */
|
|
387
|
+
tapDefect(f: (cause: unknown) => void): AsyncResult$1<T, E>; /** Asynchronous `match`. Handlers are synchronous; resolves to `R`. */
|
|
388
388
|
match<R>(cases: {
|
|
389
389
|
ok: (value: T) => R;
|
|
390
390
|
err: (error: E) => R;
|
|
@@ -420,13 +420,13 @@ type ErrOf<R> = R extends {
|
|
|
420
420
|
*
|
|
421
421
|
* @typeParam R - the `AsyncResult` type to inspect.
|
|
422
422
|
*/
|
|
423
|
-
type AsyncOkOf<R> = R extends AsyncResult<infer T, unknown> ? T : never;
|
|
423
|
+
type AsyncOkOf<R> = R extends AsyncResult$1<infer T, unknown> ? T : never;
|
|
424
424
|
/**
|
|
425
425
|
* Extract the error type `E` from an {@link AsyncResult}.
|
|
426
426
|
*
|
|
427
427
|
* @typeParam R - the `AsyncResult` type to inspect.
|
|
428
428
|
*/
|
|
429
|
-
type AsyncErrOf<R> = R extends AsyncResult<unknown, infer E> ? E : never;
|
|
429
|
+
type AsyncErrOf<R> = R extends AsyncResult$1<unknown, infer E> ? E : never;
|
|
430
430
|
//#endregion
|
|
431
431
|
//#region src/constructors.d.ts
|
|
432
432
|
/**
|
|
@@ -655,7 +655,7 @@ declare function fromThrowable<A extends unknown[], T, R>(fn: (...args: A) => T,
|
|
|
655
655
|
* );
|
|
656
656
|
* ```
|
|
657
657
|
*/
|
|
658
|
-
declare function fromPromise<T, R>(promise: Promise<T> | (() => Promise<T>), qualify: (cause: unknown) => R): AsyncResult<T, Exclude<R, Defect>>;
|
|
658
|
+
declare function fromPromise<T, R>(promise: Promise<T> | (() => Promise<T>), qualify: (cause: unknown) => R): AsyncResult$1<T, Exclude<R, Defect>>;
|
|
659
659
|
/**
|
|
660
660
|
* Wrap a `Promise` asserted **not** to fail in any modeled way: any rejection
|
|
661
661
|
* becomes a `Defect`.
|
|
@@ -668,7 +668,7 @@ declare function fromPromise<T, R>(promise: Promise<T> | (() => Promise<T>), qua
|
|
|
668
668
|
* @typeParam T - the resolved value type.
|
|
669
669
|
* @param promise - the promise, or a thunk returning one.
|
|
670
670
|
*/
|
|
671
|
-
declare function fromSafePromise<T>(promise: Promise<T> | (() => Promise<T>)): AsyncResult<T, never>;
|
|
671
|
+
declare function fromSafePromise<T>(promise: Promise<T> | (() => Promise<T>)): AsyncResult$1<T, never>;
|
|
672
672
|
/**
|
|
673
673
|
* The success channel of {@link all} / {@link allAsync}: a **positional tuple**
|
|
674
674
|
* for a fixed-length input (including the empty tuple), or a homogeneous
|
|
@@ -690,7 +690,7 @@ type AllOk<Rs extends readonly unknown[], Ts extends readonly unknown[]> = numbe
|
|
|
690
690
|
/** A record of `Result`s — the input to {@link allFromDict}. */
|
|
691
691
|
type ResultRecord = Record<string, Result$1<unknown, unknown>>;
|
|
692
692
|
/** A record of `AsyncResult`s — the input to {@link allFromDictAsync}. */
|
|
693
|
-
type AsyncResultRecord = Record<string, AsyncResult<unknown, unknown>>;
|
|
693
|
+
type AsyncResultRecord = Record<string, AsyncResult$1<unknown, unknown>>;
|
|
694
694
|
/**
|
|
695
695
|
* Collect a tuple/array of {@link Result}s into a single `Result` of all their
|
|
696
696
|
* success values.
|
|
@@ -744,7 +744,7 @@ declare function allFromDict<R extends ResultRecord>(results: R): Result$1<{ [K
|
|
|
744
744
|
* await allAsync([fromSafePromise(a()), fromSafePromise(b())]);
|
|
745
745
|
* ```
|
|
746
746
|
*/
|
|
747
|
-
declare function allAsync<Rs extends readonly AsyncResult<unknown, unknown>[]>(results: readonly [...Rs]): AsyncResult<AllOk<Rs, { [K in keyof Rs]: AsyncOkOf<Rs[K]> }>, AsyncErrOf<Rs[number]>>;
|
|
747
|
+
declare function allAsync<Rs extends readonly AsyncResult$1<unknown, unknown>[]>(results: readonly [...Rs]): AsyncResult$1<AllOk<Rs, { [K in keyof Rs]: AsyncOkOf<Rs[K]> }>, AsyncErrOf<Rs[number]>>;
|
|
748
748
|
/**
|
|
749
749
|
* The asynchronous counterpart of {@link allFromDict}: combine a record of
|
|
750
750
|
* {@link AsyncResult}s into one `AsyncResult` of a record of their values.
|
|
@@ -759,17 +759,16 @@ declare function allAsync<Rs extends readonly AsyncResult<unknown, unknown>[]>(r
|
|
|
759
759
|
* await allFromDictAsync({ a: fromSafePromise(a()), b: fromSafePromise(b()) });
|
|
760
760
|
* ```
|
|
761
761
|
*/
|
|
762
|
-
declare function allFromDictAsync<R extends AsyncResultRecord>(results: R): AsyncResult<{ [K in keyof R]: AsyncOkOf<R[K]> }, AsyncErrOf<R[keyof R]>>;
|
|
762
|
+
declare function allFromDictAsync<R extends AsyncResultRecord>(results: R): AsyncResult$1<{ [K in keyof R]: AsyncOkOf<R[K]> }, AsyncErrOf<R[keyof R]>>;
|
|
763
763
|
//#endregion
|
|
764
764
|
//#region src/facade.d.ts
|
|
765
765
|
/**
|
|
766
|
-
* Companion object grouping the
|
|
767
|
-
* discoverable namespace: {@link Result.Ok}, {@link Result.Err},
|
|
768
|
-
* {@link Result.Defect}, {@link Result.
|
|
769
|
-
* {@link Result.
|
|
770
|
-
* {@link Result.
|
|
771
|
-
* {@link Result.
|
|
772
|
-
* {@link Result.isDefect}, {@link Result.isResult}.
|
|
766
|
+
* Companion object grouping the **`Result`-producing** entry points under a
|
|
767
|
+
* single, discoverable namespace: {@link Result.Ok}, {@link Result.Err},
|
|
768
|
+
* {@link Result.Defect}, {@link Result.Do}, {@link Result.fromNullable},
|
|
769
|
+
* {@link Result.fromThrowable}, {@link Result.all}, {@link Result.allFromDict},
|
|
770
|
+
* {@link Result.isOk}, {@link Result.isErr}, {@link Result.isDefect},
|
|
771
|
+
* {@link Result.isResult}.
|
|
773
772
|
*
|
|
774
773
|
* @remarks
|
|
775
774
|
* Purely additive sugar — each member **is** the corresponding free function.
|
|
@@ -777,6 +776,10 @@ declare function allFromDictAsync<R extends AsyncResultRecord>(results: R): Asyn
|
|
|
777
776
|
* `{ Ok }` never pulls this object in. The value `Result` and the type
|
|
778
777
|
* {@link Result} share one name (the companion-object pattern).
|
|
779
778
|
*
|
|
779
|
+
* The **async** entry points live on the sibling {@link AsyncResult} companion
|
|
780
|
+
* (`AsyncResult.fromPromise`, `AsyncResult.all`, …), grouped by what they
|
|
781
|
+
* return — a static lives in exactly one namespace.
|
|
782
|
+
*
|
|
780
783
|
* @example
|
|
781
784
|
* ```ts
|
|
782
785
|
* import { Result } from "unthrown";
|
|
@@ -790,18 +793,42 @@ declare const Result: {
|
|
|
790
793
|
readonly Do: typeof Do;
|
|
791
794
|
readonly fromNullable: typeof fromNullable;
|
|
792
795
|
readonly fromThrowable: typeof fromThrowable;
|
|
793
|
-
readonly fromPromise: typeof fromPromise;
|
|
794
|
-
readonly fromSafePromise: typeof fromSafePromise;
|
|
795
796
|
readonly all: typeof all;
|
|
796
|
-
readonly allAsync: typeof allAsync;
|
|
797
797
|
readonly allFromDict: typeof allFromDict;
|
|
798
|
-
readonly allFromDictAsync: typeof allFromDictAsync;
|
|
799
798
|
readonly isOk: typeof isOk;
|
|
800
799
|
readonly isErr: typeof isErr;
|
|
801
800
|
readonly isDefect: typeof isDefect;
|
|
802
801
|
readonly isResult: typeof isResult;
|
|
803
802
|
};
|
|
804
803
|
type Result<T, E> = Result$1<T, E>;
|
|
804
|
+
/**
|
|
805
|
+
* Companion object grouping the **`AsyncResult`-producing** entry points under
|
|
806
|
+
* the matching namespace: {@link AsyncResult.fromPromise},
|
|
807
|
+
* {@link AsyncResult.fromSafePromise}, {@link AsyncResult.all},
|
|
808
|
+
* {@link AsyncResult.allFromDict}.
|
|
809
|
+
*
|
|
810
|
+
* @remarks
|
|
811
|
+
* The async sibling of {@link Result}. Statics are grouped by what they
|
|
812
|
+
* **return**, so `fromPromise`/`fromSafePromise` and the async aggregates sit
|
|
813
|
+
* here rather than on {@link Result}; the namespace already conveys "async", so
|
|
814
|
+
* the aggregates drop the `Async` suffix (`AsyncResult.all` is the free function
|
|
815
|
+
* `allAsync`; `AsyncResult.allFromDict` is `allFromDictAsync`). Like
|
|
816
|
+
* {@link Result}, the free functions remain the primary, tree-shakeable API; the
|
|
817
|
+
* value `AsyncResult` and the type {@link AsyncResult} share one name.
|
|
818
|
+
*
|
|
819
|
+
* @example
|
|
820
|
+
* ```ts
|
|
821
|
+
* import { AsyncResult, Defect } from "unthrown";
|
|
822
|
+
* const user = await AsyncResult.fromPromise(fetchUser(id), (c) => Defect(c));
|
|
823
|
+
* ```
|
|
824
|
+
*/
|
|
825
|
+
declare const AsyncResult: {
|
|
826
|
+
readonly fromPromise: typeof fromPromise;
|
|
827
|
+
readonly fromSafePromise: typeof fromSafePromise;
|
|
828
|
+
readonly all: typeof allAsync;
|
|
829
|
+
readonly allFromDict: typeof allFromDictAsync;
|
|
830
|
+
};
|
|
831
|
+
type AsyncResult<T, E> = AsyncResult$1<T, E>;
|
|
805
832
|
//#endregion
|
|
806
833
|
//#region src/tagged.d.ts
|
|
807
834
|
type Props = Record<string, unknown>;
|
|
@@ -923,7 +950,7 @@ declare function matchTags<T, E extends {
|
|
|
923
950
|
}, R>(result: Result$1<T, E>, handlers: TagHandlers<T, E, R>): R;
|
|
924
951
|
declare function matchTags<T, E extends {
|
|
925
952
|
_tag: string;
|
|
926
|
-
}, R>(result: AsyncResult<T, E>, handlers: TagHandlers<T, E, R>): Promise<R>;
|
|
953
|
+
}, R>(result: AsyncResult$1<T, E>, handlers: TagHandlers<T, E, R>): Promise<R>;
|
|
927
954
|
//#endregion
|
|
928
|
-
export { type AsyncErrOf, type AsyncOkOf,
|
|
955
|
+
export { type AsyncErrOf, type AsyncOkOf, AsyncResult, type Awaitable, Defect, type DefectView, Do, Err, type ErrOf, type ErrView, Ok, type OkOf, type OkView, Result, type TagHandlers, TaggedError, type TaggedErrorConstructor, type TaggedErrorInstance, UnwrapError, all, allAsync, allFromDict, allFromDictAsync, fromNullable, fromPromise, fromSafePromise, fromThrowable, isDefect, isErr, isOk, isResult, matchTags };
|
|
929
956
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types.ts","../src/constructors.ts","../src/core.ts","../src/defect.ts","../src/do.ts","../src/interop.ts","../src/facade.ts","../src/tagged.ts"],"mappings":";;AAQA;;;;;KAAY,QAAA,oBAA4B,CAAA,GAAI,CAAA,CAAE,CAAA;;;;;;;AAAC;AAU/C;KAAY,KAAA,2BAAgC,QAAA,CAAS,IAAA,CAAK,CAAA,EAAG,CAAA,qBAAsB,CAAA,GAAI,CAAA;;;;;;;;;;KAW3E,aAAA;EAXgC;;;;;;;;AAA4C;EAqBtF,GAAA,IAAO,CAAA,GAAI,KAAA,EAAO,CAAA,KAAM,CAAA,GAAI,QAAA,CAAO,CAAA,EAAG,CAAA;EAVf;;;;;;;;;;EAqBvB,OAAA,QAAe,CAAA,GAAI,KAAA,EAAO,CAAA,KAAM,QAAA,CAAO,CAAA,EAAG,EAAA,IAAM,QAAA,CAAO,CAAA,EAAG,CAAA,GAAI,EAAA;EAAP;;;;;;;;EASvD,GAAA,CAAI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;EAgJJ,UAAA,KAAe,CAAA,GAAI,KAAA,EAAO,CAAA,KAAM,QAAA,UAAgB,EAAA,IAAM,QAAA,CAAO,CAAA,EAAG,CAAA,GAAI,EAAA;EArIpB;;;;;;;;;;;;;EAoJhD,aAAA,QAAqB,CAAA,GAAI,KAAA,cAAmB,QAAA,CAAO,CAAA,EAAG,EAAA,IAAM,QAAA,CAAO,CAAA,GAAI,CAAA,EAAG,CAAA,GAAI,EAAA;EA1H9D;;;;;;EAiIhB,SAAA,CAAU,CAAA,GAAI,KAAA,qBAA0B,QAAA,CAAO,CAAA,EAAG,CAAA;EAjIe;;;;;;;;;;;;;EAgJjE,KAAA,IAAS,KAAA;IAAS,EAAA,GAAK,KAAA,EAAO,CAAA,KAAM,CAAA;IAAG,GAAA,GAAM,KAAA,EAAO,CAAA,KAAM,CAAA;IAAG,MAAA,GAAS,KAAA,cAAmB,CAAA;EAAA,IAAM,CAAA;EAzHrE;;;;;;;;EAkI1B,MAAA,IAAU,CAAA;EAnHyC;;;;;;;EA2HnD,SAAA,IAAa,CAAA;EAnHb;;;;;;;EA2HA,QAAA,CAAS,QAAA,EAAU,CAAA,GAAI,CAAA;EAhHhB;;;;;;EAuHP,YAAA,CAAa,CAAA,GAAI,KAAA,EAAO,CAAA,KAAM,CAAA,GAAI,CAAA;EAvHS;;;;;EA6H3C,SAAA,IAAa,CAAA;EAlHkB;;;;;EAwH/B,cAAA,IAAkB,CAAA,cAxHwC;EA2H1D,IAAA,YAAgB,MAAA,CAAO,CAAA,EAAG,CAAA,GA7G1B;EA+GA,KAAA,YAAiB,OAAA,CAAQ,CAAA,EAAG,CAAA,GA/GN;EAiHtB,QAAA,YAAoB,UAAA,CAAW,CAAA,EAAG,CAAA,GAjHN;EAoH5B,OAAA,IAAW,
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types.ts","../src/constructors.ts","../src/core.ts","../src/defect.ts","../src/do.ts","../src/interop.ts","../src/facade.ts","../src/tagged.ts"],"m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,CAAA;EAAK,IAAA,EAAM,CAAA;AAAA,OAAS,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgC5C,SAAA;EAAyB,IAAA;AAAA,MACvC,MAAA,EAAQ,QAAA,CAAO,CAAA,EAAG,CAAA,GAClB,QAAA,EAAU,WAAA,CAAY,CAAA,EAAG,CAAA,EAAG,CAAA,IAC3B,CAAA;AAAA,iBACa,SAAA;EAAyB,IAAA;AAAA,MACvC,MAAA,EAAQ,aAAA,CAAY,CAAA,EAAG,CAAA,GACvB,QAAA,EAAU,WAAA,CAAY,CAAA,EAAG,CAAA,EAAG,CAAA,IAC3B,OAAA,CAAQ,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -261,7 +261,7 @@ type ResultMethods<T, E> = {
|
|
|
261
261
|
isOk(): this is OkView<T, E>; /** Whether this result is `Err` — narrows `this` to its {@link ErrView} on `true`. */
|
|
262
262
|
isErr(): this is ErrView<E, T>; /** Whether this result is a `Defect` — narrows `this` to its {@link DefectView} on `true`. */
|
|
263
263
|
isDefect(): this is DefectView<T, E>; /** Lift this synchronous `Result` into an {@link AsyncResult}. */
|
|
264
|
-
toAsync(): AsyncResult<T, E>;
|
|
264
|
+
toAsync(): AsyncResult$1<T, E>;
|
|
265
265
|
};
|
|
266
266
|
/** The `Ok` variant of a {@link Result}: a success carrying a `value`. */
|
|
267
267
|
type OkView<T, E = never> = ResultMethods<T, E> & {
|
|
@@ -351,40 +351,40 @@ type Awaitable<T> = {
|
|
|
351
351
|
* @typeParam T - the success value type.
|
|
352
352
|
* @typeParam E - the modeled error type.
|
|
353
353
|
*/
|
|
354
|
-
type AsyncResult<T, E> = Awaitable<Result$1<T, E>> & {
|
|
355
|
-
/** Asynchronous `map`. `f` is synchronous; a throw becomes a `Defect`. */map<U>(f: (value: T) => U): AsyncResult<U, E>;
|
|
354
|
+
type AsyncResult$1<T, E> = Awaitable<Result$1<T, E>> & {
|
|
355
|
+
/** Asynchronous `map`. `f` is synchronous; a throw becomes a `Defect`. */map<U>(f: (value: T) => U): AsyncResult$1<U, E>;
|
|
356
356
|
/**
|
|
357
357
|
* Asynchronous `flatMap`. `f` may return a `Result` **or** an `AsyncResult`
|
|
358
358
|
* (never a raw `Promise`); a throw becomes a `Defect`.
|
|
359
359
|
*/
|
|
360
|
-
flatMap<U, E2>(f: (value: T) => Result$1<U, E2> | AsyncResult<U, E2>): AsyncResult<U, E | E2>; /** Asynchronous `tap`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
361
|
-
tap(f: (value: T) => void): AsyncResult<T, E>;
|
|
360
|
+
flatMap<U, E2>(f: (value: T) => Result$1<U, E2> | AsyncResult$1<U, E2>): AsyncResult$1<U, E | E2>; /** Asynchronous `tap`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
361
|
+
tap(f: (value: T) => void): AsyncResult$1<T, E>;
|
|
362
362
|
/**
|
|
363
363
|
* Asynchronous `flatTap` — a failable tap that keeps the original value. `f`
|
|
364
364
|
* may return a `Result` **or** an `AsyncResult`; its `Ok` value is discarded,
|
|
365
365
|
* an `Err`/`Defect` short-circuits, and a throw becomes a `Defect`.
|
|
366
366
|
*/
|
|
367
|
-
flatTap<E2>(f: (value: T) => Result$1<unknown, E2> | AsyncResult<unknown, E2>): AsyncResult<T, E | E2>;
|
|
367
|
+
flatTap<E2>(f: (value: T) => Result$1<unknown, E2> | AsyncResult$1<unknown, E2>): AsyncResult$1<T, E | E2>;
|
|
368
368
|
/**
|
|
369
369
|
* Asynchronous `bind` (do-notation). `f` may return a `Result` **or** an
|
|
370
370
|
* `AsyncResult`; its value is bound under `name` in the accumulating scope.
|
|
371
371
|
*/
|
|
372
|
-
bind<K extends string, U, E2>(name: K, f: (scope: T) => Result$1<U, E2> | AsyncResult<U, E2>): AsyncResult<Bound<T, K, U>, E | E2>; /** Asynchronous `let` (do-notation). `f` returns a plain value, bound under `name`. */
|
|
373
|
-
let<K extends string, U>(name: K, f: (scope: T) => U): AsyncResult<Bound<T, K, U>, E>; /** Asynchronous `as`. */
|
|
374
|
-
as<U>(value: U): AsyncResult<U, E>; /** Asynchronous `mapErr`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
375
|
-
mapErr<E2>(f: (error: E) => E2): AsyncResult<T, E2>; /** Asynchronous `orElse`. `f` may return a `Result` or an `AsyncResult`. */
|
|
376
|
-
orElse<U, E2>(f: (error: E) => Result$1<U, E2> | AsyncResult<U, E2>): AsyncResult<T | U, E2>; /** Asynchronous `recover`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
377
|
-
recover<U>(f: (error: E) => U): AsyncResult<T | U, never>; /** Asynchronous `tapErr`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
378
|
-
tapErr(f: (error: E) => void): AsyncResult<T, E>;
|
|
372
|
+
bind<K extends string, U, E2>(name: K, f: (scope: T) => Result$1<U, E2> | AsyncResult$1<U, E2>): AsyncResult$1<Bound<T, K, U>, E | E2>; /** Asynchronous `let` (do-notation). `f` returns a plain value, bound under `name`. */
|
|
373
|
+
let<K extends string, U>(name: K, f: (scope: T) => U): AsyncResult$1<Bound<T, K, U>, E>; /** Asynchronous `as`. */
|
|
374
|
+
as<U>(value: U): AsyncResult$1<U, E>; /** Asynchronous `mapErr`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
375
|
+
mapErr<E2>(f: (error: E) => E2): AsyncResult$1<T, E2>; /** Asynchronous `orElse`. `f` may return a `Result` or an `AsyncResult`. */
|
|
376
|
+
orElse<U, E2>(f: (error: E) => Result$1<U, E2> | AsyncResult$1<U, E2>): AsyncResult$1<T | U, E2>; /** Asynchronous `recover`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
377
|
+
recover<U>(f: (error: E) => U): AsyncResult$1<T | U, never>; /** Asynchronous `tapErr`. `f` is synchronous; a throw becomes a `Defect`. */
|
|
378
|
+
tapErr(f: (error: E) => void): AsyncResult$1<T, E>;
|
|
379
379
|
/**
|
|
380
380
|
* Asynchronous `flatTapErr` — a failable tap on the error that keeps the
|
|
381
381
|
* original error. `f` may return a `Result` **or** an `AsyncResult`; its `Ok`
|
|
382
382
|
* value is discarded, an `Err`/`Defect` from `f` threads through, and a throw
|
|
383
383
|
* becomes a `Defect`.
|
|
384
384
|
*/
|
|
385
|
-
flatTapErr<E2>(f: (error: E) => Result$1<unknown, E2> | AsyncResult<unknown, E2>): AsyncResult<T, E | E2>; /** Asynchronous `recoverDefect`. `f` may return a `Result` or an `AsyncResult`. */
|
|
386
|
-
recoverDefect<U, E2>(f: (cause: unknown) => Result$1<U, E2> | AsyncResult<U, E2>): AsyncResult<T | U, E | E2>; /** Asynchronous `tapDefect`. */
|
|
387
|
-
tapDefect(f: (cause: unknown) => void): AsyncResult<T, E>; /** Asynchronous `match`. Handlers are synchronous; resolves to `R`. */
|
|
385
|
+
flatTapErr<E2>(f: (error: E) => Result$1<unknown, E2> | AsyncResult$1<unknown, E2>): AsyncResult$1<T, E | E2>; /** Asynchronous `recoverDefect`. `f` may return a `Result` or an `AsyncResult`. */
|
|
386
|
+
recoverDefect<U, E2>(f: (cause: unknown) => Result$1<U, E2> | AsyncResult$1<U, E2>): AsyncResult$1<T | U, E | E2>; /** Asynchronous `tapDefect`. */
|
|
387
|
+
tapDefect(f: (cause: unknown) => void): AsyncResult$1<T, E>; /** Asynchronous `match`. Handlers are synchronous; resolves to `R`. */
|
|
388
388
|
match<R>(cases: {
|
|
389
389
|
ok: (value: T) => R;
|
|
390
390
|
err: (error: E) => R;
|
|
@@ -420,13 +420,13 @@ type ErrOf<R> = R extends {
|
|
|
420
420
|
*
|
|
421
421
|
* @typeParam R - the `AsyncResult` type to inspect.
|
|
422
422
|
*/
|
|
423
|
-
type AsyncOkOf<R> = R extends AsyncResult<infer T, unknown> ? T : never;
|
|
423
|
+
type AsyncOkOf<R> = R extends AsyncResult$1<infer T, unknown> ? T : never;
|
|
424
424
|
/**
|
|
425
425
|
* Extract the error type `E` from an {@link AsyncResult}.
|
|
426
426
|
*
|
|
427
427
|
* @typeParam R - the `AsyncResult` type to inspect.
|
|
428
428
|
*/
|
|
429
|
-
type AsyncErrOf<R> = R extends AsyncResult<unknown, infer E> ? E : never;
|
|
429
|
+
type AsyncErrOf<R> = R extends AsyncResult$1<unknown, infer E> ? E : never;
|
|
430
430
|
//#endregion
|
|
431
431
|
//#region src/constructors.d.ts
|
|
432
432
|
/**
|
|
@@ -655,7 +655,7 @@ declare function fromThrowable<A extends unknown[], T, R>(fn: (...args: A) => T,
|
|
|
655
655
|
* );
|
|
656
656
|
* ```
|
|
657
657
|
*/
|
|
658
|
-
declare function fromPromise<T, R>(promise: Promise<T> | (() => Promise<T>), qualify: (cause: unknown) => R): AsyncResult<T, Exclude<R, Defect>>;
|
|
658
|
+
declare function fromPromise<T, R>(promise: Promise<T> | (() => Promise<T>), qualify: (cause: unknown) => R): AsyncResult$1<T, Exclude<R, Defect>>;
|
|
659
659
|
/**
|
|
660
660
|
* Wrap a `Promise` asserted **not** to fail in any modeled way: any rejection
|
|
661
661
|
* becomes a `Defect`.
|
|
@@ -668,7 +668,7 @@ declare function fromPromise<T, R>(promise: Promise<T> | (() => Promise<T>), qua
|
|
|
668
668
|
* @typeParam T - the resolved value type.
|
|
669
669
|
* @param promise - the promise, or a thunk returning one.
|
|
670
670
|
*/
|
|
671
|
-
declare function fromSafePromise<T>(promise: Promise<T> | (() => Promise<T>)): AsyncResult<T, never>;
|
|
671
|
+
declare function fromSafePromise<T>(promise: Promise<T> | (() => Promise<T>)): AsyncResult$1<T, never>;
|
|
672
672
|
/**
|
|
673
673
|
* The success channel of {@link all} / {@link allAsync}: a **positional tuple**
|
|
674
674
|
* for a fixed-length input (including the empty tuple), or a homogeneous
|
|
@@ -690,7 +690,7 @@ type AllOk<Rs extends readonly unknown[], Ts extends readonly unknown[]> = numbe
|
|
|
690
690
|
/** A record of `Result`s — the input to {@link allFromDict}. */
|
|
691
691
|
type ResultRecord = Record<string, Result$1<unknown, unknown>>;
|
|
692
692
|
/** A record of `AsyncResult`s — the input to {@link allFromDictAsync}. */
|
|
693
|
-
type AsyncResultRecord = Record<string, AsyncResult<unknown, unknown>>;
|
|
693
|
+
type AsyncResultRecord = Record<string, AsyncResult$1<unknown, unknown>>;
|
|
694
694
|
/**
|
|
695
695
|
* Collect a tuple/array of {@link Result}s into a single `Result` of all their
|
|
696
696
|
* success values.
|
|
@@ -744,7 +744,7 @@ declare function allFromDict<R extends ResultRecord>(results: R): Result$1<{ [K
|
|
|
744
744
|
* await allAsync([fromSafePromise(a()), fromSafePromise(b())]);
|
|
745
745
|
* ```
|
|
746
746
|
*/
|
|
747
|
-
declare function allAsync<Rs extends readonly AsyncResult<unknown, unknown>[]>(results: readonly [...Rs]): AsyncResult<AllOk<Rs, { [K in keyof Rs]: AsyncOkOf<Rs[K]> }>, AsyncErrOf<Rs[number]>>;
|
|
747
|
+
declare function allAsync<Rs extends readonly AsyncResult$1<unknown, unknown>[]>(results: readonly [...Rs]): AsyncResult$1<AllOk<Rs, { [K in keyof Rs]: AsyncOkOf<Rs[K]> }>, AsyncErrOf<Rs[number]>>;
|
|
748
748
|
/**
|
|
749
749
|
* The asynchronous counterpart of {@link allFromDict}: combine a record of
|
|
750
750
|
* {@link AsyncResult}s into one `AsyncResult` of a record of their values.
|
|
@@ -759,17 +759,16 @@ declare function allAsync<Rs extends readonly AsyncResult<unknown, unknown>[]>(r
|
|
|
759
759
|
* await allFromDictAsync({ a: fromSafePromise(a()), b: fromSafePromise(b()) });
|
|
760
760
|
* ```
|
|
761
761
|
*/
|
|
762
|
-
declare function allFromDictAsync<R extends AsyncResultRecord>(results: R): AsyncResult<{ [K in keyof R]: AsyncOkOf<R[K]> }, AsyncErrOf<R[keyof R]>>;
|
|
762
|
+
declare function allFromDictAsync<R extends AsyncResultRecord>(results: R): AsyncResult$1<{ [K in keyof R]: AsyncOkOf<R[K]> }, AsyncErrOf<R[keyof R]>>;
|
|
763
763
|
//#endregion
|
|
764
764
|
//#region src/facade.d.ts
|
|
765
765
|
/**
|
|
766
|
-
* Companion object grouping the
|
|
767
|
-
* discoverable namespace: {@link Result.Ok}, {@link Result.Err},
|
|
768
|
-
* {@link Result.Defect}, {@link Result.
|
|
769
|
-
* {@link Result.
|
|
770
|
-
* {@link Result.
|
|
771
|
-
* {@link Result.
|
|
772
|
-
* {@link Result.isDefect}, {@link Result.isResult}.
|
|
766
|
+
* Companion object grouping the **`Result`-producing** entry points under a
|
|
767
|
+
* single, discoverable namespace: {@link Result.Ok}, {@link Result.Err},
|
|
768
|
+
* {@link Result.Defect}, {@link Result.Do}, {@link Result.fromNullable},
|
|
769
|
+
* {@link Result.fromThrowable}, {@link Result.all}, {@link Result.allFromDict},
|
|
770
|
+
* {@link Result.isOk}, {@link Result.isErr}, {@link Result.isDefect},
|
|
771
|
+
* {@link Result.isResult}.
|
|
773
772
|
*
|
|
774
773
|
* @remarks
|
|
775
774
|
* Purely additive sugar — each member **is** the corresponding free function.
|
|
@@ -777,6 +776,10 @@ declare function allFromDictAsync<R extends AsyncResultRecord>(results: R): Asyn
|
|
|
777
776
|
* `{ Ok }` never pulls this object in. The value `Result` and the type
|
|
778
777
|
* {@link Result} share one name (the companion-object pattern).
|
|
779
778
|
*
|
|
779
|
+
* The **async** entry points live on the sibling {@link AsyncResult} companion
|
|
780
|
+
* (`AsyncResult.fromPromise`, `AsyncResult.all`, …), grouped by what they
|
|
781
|
+
* return — a static lives in exactly one namespace.
|
|
782
|
+
*
|
|
780
783
|
* @example
|
|
781
784
|
* ```ts
|
|
782
785
|
* import { Result } from "unthrown";
|
|
@@ -790,18 +793,42 @@ declare const Result: {
|
|
|
790
793
|
readonly Do: typeof Do;
|
|
791
794
|
readonly fromNullable: typeof fromNullable;
|
|
792
795
|
readonly fromThrowable: typeof fromThrowable;
|
|
793
|
-
readonly fromPromise: typeof fromPromise;
|
|
794
|
-
readonly fromSafePromise: typeof fromSafePromise;
|
|
795
796
|
readonly all: typeof all;
|
|
796
|
-
readonly allAsync: typeof allAsync;
|
|
797
797
|
readonly allFromDict: typeof allFromDict;
|
|
798
|
-
readonly allFromDictAsync: typeof allFromDictAsync;
|
|
799
798
|
readonly isOk: typeof isOk;
|
|
800
799
|
readonly isErr: typeof isErr;
|
|
801
800
|
readonly isDefect: typeof isDefect;
|
|
802
801
|
readonly isResult: typeof isResult;
|
|
803
802
|
};
|
|
804
803
|
type Result<T, E> = Result$1<T, E>;
|
|
804
|
+
/**
|
|
805
|
+
* Companion object grouping the **`AsyncResult`-producing** entry points under
|
|
806
|
+
* the matching namespace: {@link AsyncResult.fromPromise},
|
|
807
|
+
* {@link AsyncResult.fromSafePromise}, {@link AsyncResult.all},
|
|
808
|
+
* {@link AsyncResult.allFromDict}.
|
|
809
|
+
*
|
|
810
|
+
* @remarks
|
|
811
|
+
* The async sibling of {@link Result}. Statics are grouped by what they
|
|
812
|
+
* **return**, so `fromPromise`/`fromSafePromise` and the async aggregates sit
|
|
813
|
+
* here rather than on {@link Result}; the namespace already conveys "async", so
|
|
814
|
+
* the aggregates drop the `Async` suffix (`AsyncResult.all` is the free function
|
|
815
|
+
* `allAsync`; `AsyncResult.allFromDict` is `allFromDictAsync`). Like
|
|
816
|
+
* {@link Result}, the free functions remain the primary, tree-shakeable API; the
|
|
817
|
+
* value `AsyncResult` and the type {@link AsyncResult} share one name.
|
|
818
|
+
*
|
|
819
|
+
* @example
|
|
820
|
+
* ```ts
|
|
821
|
+
* import { AsyncResult, Defect } from "unthrown";
|
|
822
|
+
* const user = await AsyncResult.fromPromise(fetchUser(id), (c) => Defect(c));
|
|
823
|
+
* ```
|
|
824
|
+
*/
|
|
825
|
+
declare const AsyncResult: {
|
|
826
|
+
readonly fromPromise: typeof fromPromise;
|
|
827
|
+
readonly fromSafePromise: typeof fromSafePromise;
|
|
828
|
+
readonly all: typeof allAsync;
|
|
829
|
+
readonly allFromDict: typeof allFromDictAsync;
|
|
830
|
+
};
|
|
831
|
+
type AsyncResult<T, E> = AsyncResult$1<T, E>;
|
|
805
832
|
//#endregion
|
|
806
833
|
//#region src/tagged.d.ts
|
|
807
834
|
type Props = Record<string, unknown>;
|
|
@@ -923,7 +950,7 @@ declare function matchTags<T, E extends {
|
|
|
923
950
|
}, R>(result: Result$1<T, E>, handlers: TagHandlers<T, E, R>): R;
|
|
924
951
|
declare function matchTags<T, E extends {
|
|
925
952
|
_tag: string;
|
|
926
|
-
}, R>(result: AsyncResult<T, E>, handlers: TagHandlers<T, E, R>): Promise<R>;
|
|
953
|
+
}, R>(result: AsyncResult$1<T, E>, handlers: TagHandlers<T, E, R>): Promise<R>;
|
|
927
954
|
//#endregion
|
|
928
|
-
export { type AsyncErrOf, type AsyncOkOf,
|
|
955
|
+
export { type AsyncErrOf, type AsyncOkOf, AsyncResult, type Awaitable, Defect, type DefectView, Do, Err, type ErrOf, type ErrView, Ok, type OkOf, type OkView, Result, type TagHandlers, TaggedError, type TaggedErrorConstructor, type TaggedErrorInstance, UnwrapError, all, allAsync, allFromDict, allFromDictAsync, fromNullable, fromPromise, fromSafePromise, fromThrowable, isDefect, isErr, isOk, isResult, matchTags };
|
|
929
956
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types.ts","../src/constructors.ts","../src/core.ts","../src/defect.ts","../src/do.ts","../src/interop.ts","../src/facade.ts","../src/tagged.ts"],"mappings":";;AAQA;;;;;KAAY,QAAA,oBAA4B,CAAA,GAAI,CAAA,CAAE,CAAA;;;;;;;AAAC;AAU/C;KAAY,KAAA,2BAAgC,QAAA,CAAS,IAAA,CAAK,CAAA,EAAG,CAAA,qBAAsB,CAAA,GAAI,CAAA;;;;;;;;;;KAW3E,aAAA;EAXgC;;;;;;;;AAA4C;EAqBtF,GAAA,IAAO,CAAA,GAAI,KAAA,EAAO,CAAA,KAAM,CAAA,GAAI,QAAA,CAAO,CAAA,EAAG,CAAA;EAVf;;;;;;;;;;EAqBvB,OAAA,QAAe,CAAA,GAAI,KAAA,EAAO,CAAA,KAAM,Q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index.d.mts","names":[],"sources":["../src/types.ts","../src/constructors.ts","../src/core.ts","../src/defect.ts","../src/do.ts","../src/interop.ts","../src/facade.ts","../src/tagged.ts"],"mappings":";;AAQA;;;;;KAAY,QAAA,oBAA4B,CAAA,GAAI,CAAA,CAAE,CAAA;;;;;;;AAAC;AAU/C;KAAY,KAAA,2BAAgC,QAAA,CAAS,IAAA,CAAK,CAAA,EAAG,CAAA,qBAAsB,CAAA,GAAI,CAAA;;;;;;;;;;KAW3E,aAAA;EAXgC;;;;;;;;AAA4C;EAqBtF,GAAA,IAAO,CAAA,GAAI,KAAA,EAAO,CAAA,KAAM,CAAA,GAAI,QAAA,CAAO,CAAA,EAAG,CAAA;EAVf;;;;;;;;;;EAqBvB,OAAA,QAAe,CAAA,GAAI,KAAA,EAAO,CAAA,KAAM,QAAA,CAAO,CAAA,EAAG,EAAA,IAAM,QAAA,CAAO,CAAA,EAAG,CAAA,GAAI,EAAA;EAAP;;;;;;;;EASvD,GAAA,CAAI,CAAA,GAAI,KAAA,EAAO,CAAA,YAAa,QAAA,CAAO,CAAA,EAAG,CAAA;EAiBO;;;;;;;;;;;;;;;;EAA7C,OAAA,KAAY,CAAA,GAAI,KAAA,EAAO,CAAA,KAAM,QAAA,UAAgB,EAAA,IAAM,QAAA,CAAO,CAAA,EAAG,CAAA,GAAI,EAAA;EAuB9D;;;;;;;;;;;;;;;;;;;EAHH,IAAA,0BACE,IAAA,EAAM,CAAA,EACN,CAAA,GAAI,KAAA,EAAO,CAAA,KAAM,QAAA,CAAO,CAAA,EAAG,EAAA,IAC1B,QAAA,CAAO,KAAA,CAAM,CAAA,EAAG,CAAA,EAAG,CAAA,GAAI,CAAA,GAAI,EAAA;EA6CQ;;;;;;;;;;;;;;EA9BtC,GAAA,sBAAyB,IAAA,EAAM,CAAA,EAAG,CAAA,GAAI,KAAA,EAAO,CAAA,KAAM,CAAA,GAAI,QAAA,CAAO,KAAA,CAAM,CAAA,EAAG,CAAA,EAAG,CAAA,GAAI,C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