clutchit 0.0.14 → 0.0.15
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.
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type Try } from './try.js';
|
|
2
|
+
import { type TryAsync } from './try.async.js';
|
|
3
|
+
export type FaultOf<T extends (...args: any[]) => any> = ReturnType<T> extends TryAsync<any, infer E> ? E : ReturnType<T> extends Try<any, infer E> ? E : never;
|
|
4
|
+
//# sourceMappingURL=fault-of.d.ts.map
|
package/dist/unthrow/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare namespace Fault {
|
|
|
9
9
|
}
|
|
10
10
|
export { type Try, Ok, Err, ok, err } from './try.js';
|
|
11
11
|
export { TryAsync, okAsync, errAsync } from './try.async.js';
|
|
12
|
+
export { type FaultOf } from './fault-of.js';
|
|
12
13
|
export { fromPromise, fromSafePromise, fromThrowable, fromAsyncThrowable, combine, combineWithAllErrors, unwrap, flatten, race, } from './helpers.js';
|
|
13
14
|
export { Do, DoAsync } from './do.js';
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clutchit",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Resilience primitives for TypeScript
|
|
3
|
+
"version": "0.0.15",
|
|
4
|
+
"description": "Resilience primitives for TypeScript",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
7
7
|
"resilience",
|