@appnest/typed-actions
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -208,4 +208,4 @@ /** | ||
*/ | ||
export declare const tryCatchDispatch: (dispatch: (action: Action<unknown, unknown>) => void) => <Success, Meta>(actionCreator: import("../async-action/async-action-creator").AsyncActionCreatorWithMeta<void, Success, Error, Meta>, handler: () => Success | Promise<Success>) => Promise<void>; | ||
export declare const tryCatchDispatch: (dispatch: (action: Action<unknown, unknown>) => void) => <Success, Meta>(actionCreator: import("../async-action/async-action-creator").AsyncActionCreatorWithMeta<void, Success, Error, Meta>, handler: () => Success | Promise<Success>) => Promise<Success>; | ||
//# sourceMappingURL=index.cjs.d.ts.map |
@@ -140,2 +140,3 @@ 'use strict'; | ||
dispatch(actionCreator.success(data)); | ||
return data; | ||
} | ||
@@ -142,0 +143,0 @@ catch (e) { |
@@ -208,4 +208,4 @@ /** | ||
*/ | ||
export declare const tryCatchDispatch: (dispatch: (action: Action<unknown, unknown>) => void) => <Success, Meta>(actionCreator: import("../async-action/async-action-creator").AsyncActionCreatorWithMeta<void, Success, Error, Meta>, handler: () => Success | Promise<Success>) => Promise<void>; | ||
export declare const tryCatchDispatch: (dispatch: (action: Action<unknown, unknown>) => void) => <Success, Meta>(actionCreator: import("../async-action/async-action-creator").AsyncActionCreatorWithMeta<void, Success, Error, Meta>, handler: () => Success | Promise<Success>) => Promise<Success>; | ||
//# sourceMappingURL=index.esm.d.ts.map |
@@ -137,2 +137,3 @@ /** | ||
dispatch(actionCreator.success(data)); | ||
return data; | ||
} | ||
@@ -139,0 +140,0 @@ catch (e) { |
{ | ||
"name": "@appnest/typed-actions", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A lightweight library to create and type check flux/redux actions in typescript", | ||
@@ -5,0 +5,0 @@ "author": "runem", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
49927
700