diff --git a/redux-thunk/redux-thunk-tests.ts b/redux-thunk/redux-thunk-tests.ts
index 56cf81f4f..df46fb92e 100644
--- a/redux-thunk/redux-thunk-tests.ts
+++ b/redux-thunk/redux-thunk-tests.ts
@@ -4,8 +4,8 @@
///
import { createStore, applyMiddleware, Store, Dispatch } from 'redux';
-import thunk from 'redux-thunk';
-import { ThunkInterface } from 'redux-thunk';
+import * as thunk from 'redux-thunk';
+import ThunkInterface = ReduxThunk.ThunkInterface;
import { Promise } from 'es6-promise';
declare var rootReducer: Function;
diff --git a/redux-thunk/redux-thunk.d.ts b/redux-thunk/redux-thunk.d.ts
index 5e125e3bc..aafaa0453 100644
--- a/redux-thunk/redux-thunk.d.ts
+++ b/redux-thunk/redux-thunk.d.ts
@@ -5,17 +5,14 @@
///
-declare module "redux-thunk" {
- import { Middleware, Dispatch } from 'redux';
-
- export interface Thunk extends Middleware { }
-
+declare module ReduxThunk {
+ export interface Thunk extends Redux.Middleware {}
export interface ThunkInterface {
- (dispatch: Dispatch, getState?: () => T): any;
+ (dispatch: Redux.Dispatch, getState?: () => T): any;
}
-
- var thunk: Thunk;
-
- export default thunk;
}
+declare module "redux-thunk" {
+ var thunk: ReduxThunk.Thunk;
+ export = thunk;
+}