mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Fixes to redux dependers (#20768)
This commit is contained in:
Vendored
+1
-1
@@ -3,7 +3,7 @@
|
||||
// Definitions by: Valbrand <https://github.com/Valbrand>
|
||||
// viggyfresh <https://github.com/viggyfresh>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
// TypeScript Version: 2.4
|
||||
|
||||
import {
|
||||
Dispatch,
|
||||
|
||||
@@ -32,9 +32,7 @@ const {
|
||||
initialDispatch: false
|
||||
});
|
||||
|
||||
const dumbMiddleware: Middleware = (store: MiddlewareAPI<LocationState>) => (next: Dispatch<LocationState>) => (action: Action) => {
|
||||
next(action);
|
||||
};
|
||||
const dumbMiddleware: Middleware = store => next => action => next(action);
|
||||
|
||||
const composedMiddleware = applyMiddleware(middleware, dumbMiddleware);
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
// TODO
|
||||
"no-any-union": false
|
||||
"no-any-union": false,
|
||||
"no-unnecessary-callback-wrapper": false,
|
||||
"no-unnecessary-generics": false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ function counter(state: any, action: any) {
|
||||
function loggingMiddleware() {
|
||||
return (next: Redux.Dispatch<any>) => (action: any) => {
|
||||
console.log(action.type);
|
||||
next(action);
|
||||
return next(action);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
// TODO
|
||||
"dt-header": false
|
||||
"dt-header": false,
|
||||
"no-unnecessary-generics": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user