mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Update redux-thunk.d.ts
Namespace interface exports under another module
This commit is contained in:
Vendored
+6
-8
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user