From f62d46a6538d768d2c00d2075fee4620bf24b864 Mon Sep 17 00:00:00 2001 From: Daniel Chao Date: Sat, 23 Jan 2016 23:19:24 -0800 Subject: [PATCH] Update redux-thunk.d.ts Namespace interface exports under another module --- redux-thunk/redux-thunk.d.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/redux-thunk/redux-thunk.d.ts b/redux-thunk/redux-thunk.d.ts index 334a02997..7208bcaf0 100644 --- a/redux-thunk/redux-thunk.d.ts +++ b/redux-thunk/redux-thunk.d.ts @@ -5,17 +5,15 @@ /// -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 { (dispatch: Dispatch, getState?: () => T): any; } - - var thunk: Thunk; - - export = thunk; } +declare module "redux-thunk" { + var thunk: ReduxThunk.Thunk; + export = thunk; +}