redux-thunk-recursion-detect
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -19,2 +19,4 @@ import { | ||
* @template TBasicAction The (non-thunk) actions that can be dispatched. | ||
* @template TReturnTypeConstraint Gives the ability to restrain the possible | ||
* thunk return types | ||
*/ | ||
@@ -24,6 +26,6 @@ export interface ThunkDispatch< | ||
TExtraThunkArg, | ||
TBasicAction extends Action | ||
TBasicAction extends Action, | ||
> { | ||
<TReturnType>( | ||
thunkAction: ThunkAction<TReturnType, TState, TExtraThunkArg, TBasicAction> | ||
thunkAction: ThunkAction<TState, TExtraThunkArg, TBasicAction, TReturnType> | ||
): TReturnType; | ||
@@ -45,8 +47,10 @@ <A extends TBasicAction>(action: A): A; | ||
* @template TBasicAction The (non-thunk) actions that can be dispatched. | ||
* @template TReturnTypeConstraint Gives the ability to restrain the possible | ||
* thunk return types | ||
*/ | ||
export type ThunkAction< | ||
TReturnType, | ||
TState, | ||
TExtraThunkArg, | ||
TBasicAction extends Action | ||
TBasicAction extends Action, | ||
TReturnType | ||
> = ( | ||
@@ -77,2 +81,4 @@ dispatch: ThunkDispatch<TState, TExtraThunkArg, TBasicAction>, | ||
* inner function. (Only used if you call `thunk.withExtraArgument()`) | ||
* @template TReturnTypeConstraint Gives the ability to restrain the possible | ||
* thunk return types | ||
*/ | ||
@@ -82,7 +88,7 @@ export type ThunkMiddleware< | ||
TBasicAction extends Action = AnyAction, | ||
TExtraThunkARg = undefined | ||
TExtraThunkArg = undefined, | ||
> = Middleware< | ||
ThunkDispatch<TState, TExtraThunkARg, TBasicAction>, | ||
ThunkDispatch<TState, TExtraThunkArg, TBasicAction>, | ||
TState, | ||
ThunkDispatch<TState, TExtraThunkARg, TBasicAction> | ||
ThunkDispatch<TState, TExtraThunkArg, TBasicAction> | ||
>; | ||
@@ -98,2 +104,4 @@ | ||
export declare const isNestedThunkSymbol: symbol; | ||
/** | ||
@@ -100,0 +108,0 @@ * Redux behaviour changed by middleware, so overloads here |
{ | ||
"name": "redux-thunk-recursion-detect", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A drop-in replacement for `redux-thunk` that allows middleware to detect that a thunk has been dispatched from within another thunk", | ||
@@ -28,2 +28,6 @@ "main": "dist/reduxThunkRecursionDetect.cjs.js", | ||
], | ||
"peerDependencies": { | ||
"redux": "^4.0.3" | ||
}, | ||
"types": "index.d.ts", | ||
"author": "ian.b.taylor@gmail.com", | ||
@@ -34,6 +38,6 @@ "license": "MIT", | ||
"jest": "^24.8.0", | ||
"redux": "^4.0.1", | ||
"redux": "^4.0.3", | ||
"rollup": "^1.15.3" | ||
}, | ||
"gitHead": "de53733e1521554e712e7e60ca41a7b857eb0a45" | ||
"gitHead": "ce99a9a31342577e2c19976999ecab10ec1cdd7f" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11029
164
1