mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
@@ -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;
|
||||
|
||||
17
redux-thunk/redux-thunk.d.ts
vendored
17
redux-thunk/redux-thunk.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user