clean-redux
Advanced tools
Comparing version 0.1.1 to 0.2.1
@@ -0,1 +1,6 @@ | ||
## **0.2.0** (2021-12-20) | ||
- Add annotation | ||
- Add pure function | ||
### **0.1.1** (2021-12-20) | ||
@@ -2,0 +7,0 @@ |
{ | ||
"name": "clean-redux", | ||
"version": "0.1.1", | ||
"version": "0.2.1", | ||
"description": "Toolkit for implementing clean architecture using Redux", | ||
@@ -27,2 +27,3 @@ "repository": { | ||
"src/usecasesToAutoDispatchThunks.ts", | ||
"src/usecasesToPureFunctions.ts", | ||
"src/usecasesToReducer.ts", | ||
@@ -36,2 +37,5 @@ "src/usecasesToSelectors.ts", | ||
"usecasesToAutoDispatchThunks.js.map", | ||
"usecasesToPureFunctions.d.ts", | ||
"usecasesToPureFunctions.js", | ||
"usecasesToPureFunctions.js.map", | ||
"usecasesToReducer.d.ts", | ||
@@ -38,0 +42,0 @@ "usecasesToReducer.js", |
@@ -11,2 +11,3 @@ import "minimal-polyfills/Object.fromEntries"; | ||
/** NOTE: Always returns the same ref for a given dispatch, no need to useMemo */ | ||
export function thunkToAutoDispatchThunk< | ||
@@ -13,0 +14,0 @@ Thunk extends (params: any) => ThunkAction<any, any, any, AnyAction>, |
@@ -5,2 +5,3 @@ import "minimal-polyfills/Object.fromEntries"; | ||
export declare type ThunkToAutoDispatchThunk<Thunk extends (params: any) => ThunkAction<any, any, any, any>> = (params: Param0<Thunk>) => ReturnType<Thunk> extends ThunkAction<infer R, any, any, any> ? R : never; | ||
/** NOTE: Always returns the same ref for a given dispatch, no need to useMemo */ | ||
export declare function thunkToAutoDispatchThunk<Thunk extends (params: any) => ThunkAction<any, any, any, AnyAction>>(params: { | ||
@@ -7,0 +8,0 @@ thunk: Thunk; |
@@ -7,2 +7,3 @@ "use strict"; | ||
var objectKeys_1 = require("tsafe/objectKeys"); | ||
/** NOTE: Always returns the same ref for a given dispatch, no need to useMemo */ | ||
function thunkToAutoDispatchThunk(params) { | ||
@@ -9,0 +10,0 @@ var dispatch = params.dispatch, thunk = params.thunk; |
Sorry, the diff of this file is not supported yet
33268
25
565