Update redux-thunk.d.ts

Namespace interface exports under another module
This commit is contained in:
Daniel Chao
2016-01-23 23:19:24 -08:00
parent dc67e54677
commit f62d46a653
+6 -8
View File
@@ -5,17 +5,15 @@
/// <reference path="../redux/redux.d.ts" />
declare module "redux-thunk" {
declare module ReduxThunk {
import { Middleware, Dispatch } from 'redux';
export interface Thunk extends Middleware { }
export interface Thunk extends Middleware {};
export interface ThunkInterface {
<T>(dispatch: Dispatch, getState?: () => T): any;
}
var thunk: Thunk;
export = thunk;
}
declare module "redux-thunk" {
var thunk: ReduxThunk.Thunk;
export = thunk;
}