mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-27 00:15:09 +08:00
19 lines
547 B
TypeScript
19 lines
547 B
TypeScript
// Type definitions for redux-thunk v2.0.1
|
|
// Project: https://github.com/gaearon/redux-thunk
|
|
// Definitions by: Qubo <https://github.com/tkqubo>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference path="../redux/redux.d.ts" />
|
|
|
|
declare namespace ReduxThunk {
|
|
export interface Thunk extends Redux.Middleware {}
|
|
export interface ThunkInterface {
|
|
<T>(dispatch: Redux.Dispatch, getState?: () => T): any;
|
|
}
|
|
}
|
|
|
|
declare module "redux-thunk" {
|
|
var thunk: ReduxThunk.Thunk;
|
|
export default thunk;
|
|
}
|