@meteorwallet/utils
Advanced tools
Comparing version
@@ -1,3 +0,3 @@ | ||
type TErrorOrResult<T> = [null, T] | [Error, null]; | ||
type TErrorOrResultObj<T> = { | ||
export type TErrorOrResult<T> = [null, T] | [Error, null]; | ||
export type TErrorOrResultObj<T> = { | ||
error: Error; | ||
@@ -11,3 +11,2 @@ result: null; | ||
export declare function eorObj<T, R = T extends Promise<infer I> ? Promise<TErrorOrResultObj<I>> : TErrorOrResultObj<T>>(func: () => T): R; | ||
export {}; | ||
//# sourceMappingURL=errorOrResult.d.ts.map |
{ | ||
"name": "@meteorwallet/utils", | ||
"version": "1.1.0-0", | ||
"version": "1.2.0-0", | ||
"description": "Utility functions used in Meteor Wallet", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
62721
0.02%1349
-0.07%