From 4eb7404565cdf0696f3c96955d492c87e03d7e2a Mon Sep 17 00:00:00 2001 From: Wang Zhongliang Date: Wed, 28 Feb 2018 00:09:22 +0800 Subject: [PATCH] Remove unnecessary default values for some generic types --- index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index dafcf61..fa9b8a8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,21 +1,21 @@ import { Middleware, Action, AnyAction } from "redux"; -export type ThunkAction = AnyAction> = ( +export type ThunkAction = ( dispatch: ThunkDispatch, getState: () => S, extraArgument: E ) => R; -interface ThunkDispatch { +interface ThunkDispatch { (action: T): T; } -interface ThunkDispatch { +interface ThunkDispatch { (asyncAction: ThunkAction): R; } -type ThunkMiddleware = Middleware, S, ThunkDispatch>; +type ThunkMiddleware = Middleware, S, ThunkDispatch>; declare const thunk: ThunkMiddleware & { withExtraArgument(extraArgument: E): ThunkMiddleware