diff --git a/types/redux-first-router/index.d.ts b/types/redux-first-router/index.d.ts index 5acbe08493..89be27f524 100644 --- a/types/redux-first-router/index.d.ts +++ b/types/redux-first-router/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Valbrand // viggyfresh // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 +// TypeScript Version: 2.4 import { Dispatch, diff --git a/types/redux-first-router/redux-first-router-tests.ts b/types/redux-first-router/redux-first-router-tests.ts index fc913aebcf..8b8a7b1c5d 100644 --- a/types/redux-first-router/redux-first-router-tests.ts +++ b/types/redux-first-router/redux-first-router-tests.ts @@ -32,9 +32,7 @@ const { initialDispatch: false }); -const dumbMiddleware: Middleware = (store: MiddlewareAPI) => (next: Dispatch) => (action: Action) => { - next(action); -}; +const dumbMiddleware: Middleware = store => next => action => next(action); const composedMiddleware = applyMiddleware(middleware, dumbMiddleware); diff --git a/types/redux-first-router/tsconfig.json b/types/redux-first-router/tsconfig.json index 98d9d3cb7c..774422aa4e 100644 --- a/types/redux-first-router/tsconfig.json +++ b/types/redux-first-router/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es6" + "es6", + "dom" ], "noImplicitAny": true, "noImplicitThis": true, diff --git a/types/redux-first-router/tslint.json b/types/redux-first-router/tslint.json index b1439230db..6bcb676ca2 100644 --- a/types/redux-first-router/tslint.json +++ b/types/redux-first-router/tslint.json @@ -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 } } diff --git a/types/redux-mock-store/redux-mock-store-tests.ts b/types/redux-mock-store/redux-mock-store-tests.ts index ca46364ca3..daa801b960 100644 --- a/types/redux-mock-store/redux-mock-store-tests.ts +++ b/types/redux-mock-store/redux-mock-store-tests.ts @@ -20,7 +20,7 @@ function counter(state: any, action: any) { function loggingMiddleware() { return (next: Redux.Dispatch) => (action: any) => { console.log(action.type); - next(action); + return next(action); }; } diff --git a/types/redux-mock-store/tslint.json b/types/redux-mock-store/tslint.json index 849acb7fd0..3337f86cdc 100644 --- a/types/redux-mock-store/tslint.json +++ b/types/redux-mock-store/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // TODO - "dt-header": false + "dt-header": false, + "no-unnecessary-generics": false } } \ No newline at end of file