Merge pull request #7758 from bioball/patch-2

Update redux-thunk.d.ts
This commit is contained in:
Horiuchi_H
2016-01-25 17:54:58 +09:00
2 changed files with 9 additions and 12 deletions

View File

@@ -4,8 +4,8 @@
/// <reference path="../express/express.d.ts" />
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;

View File

@@ -5,17 +5,14 @@
/// <reference path="../redux/redux.d.ts" />
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 {
<T>(dispatch: Dispatch, getState?: () => T): any;
<T>(dispatch: Redux.Dispatch, getState?: () => T): any;
}
var thunk: Thunk;
export default thunk;
}
declare module "redux-thunk" {
var thunk: ReduxThunk.Thunk;
export = thunk;
}