From e4af82ee2d2728d8de2d896a6afb396d2040e5d8 Mon Sep 17 00:00:00 2001 From: Ionut Vizitiu Date: Tue, 13 Feb 2018 11:46:48 +0100 Subject: [PATCH] remove namespace from index.d.ts --- index.d.ts | 55 ++++++++++++++++++++++++++---------------------------- 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/index.d.ts b/index.d.ts index 1fbaec9..195bddc 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,40 +1,37 @@ import { Unsubscribe } from 'redux'; -declare namespace ngRedux { - export interface Reducer extends Function { - (state: any, action: any): any; - } +export interface Reducer extends Function { + (state: any, action: any): any; +} - export interface Dispatch extends Function { - (action: any): any; - } +export interface Dispatch extends Function { + (action: any): any; +} - export interface MiddlewareArg { - dispatch: Dispatch; - getState: Function; - } +export interface MiddlewareArg { + dispatch: Dispatch; + getState: Function; +} - export interface Middleware extends Function { - (obj: MiddlewareArg): Function; - } +export interface Middleware extends Function { + (obj: MiddlewareArg): Function; +} - export interface INgRedux { - getReducer(): Reducer; - replaceReducer(nextReducer: Reducer): void; - dispatch(action: any): any; - getState(): any; - subscribe(listener: Function): Unsubscribe; - connect( - mapStateToTarget: (state: any) => Object, - mapDispatchToTarget?: Object | ((dispatch: Function) => Object) - ): (target: Function | Object) => () => void; - } +export interface INgRedux { + getReducer(): Reducer; + replaceReducer(nextReducer: Reducer): void; + dispatch(action: any): any; + getState(): any; + subscribe(listener: Function): Unsubscribe; + connect( + mapStateToTarget: (state: any) => Object, + mapDispatchToTarget?: Object | ((dispatch: Function) => Object) + ): (target: Function | Object) => () => void; +} - export interface INgReduxProvider { - createStoreWith(reducer: Reducer, middlewares?: Array, storeEnhancers?: Function[], initialState?: any): void; - } +export interface INgReduxProvider { + createStoreWith(reducer: Reducer, middlewares?: Array, storeEnhancers?: Function[], initialState?: any): void; } declare var ngRedux: string; -export as namespace ngRedux; export default ngRedux;