Comparing version 0.4.0 to 0.4.1
@@ -13,2 +13,9 @@ import { SyntheticEvent } from 'react'; | ||
/** | ||
* Use action as callback function. | ||
* | ||
* @param action Action that will be called | ||
* @returns Function that take React synthetic event as argument | ||
*/ | ||
export declare function useActionCallback<Event = SyntheticEvent>(action: Action<any, []>): (event: Event) => void; | ||
/** | ||
* Use action as callback function and convert the event to action argument. | ||
@@ -15,0 +22,0 @@ * |
{ | ||
"name": "el-state", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/abihf/el-state#readme", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
152535
1203