1
- declare module ngRedux {
2
-
3
- interface Reducer extends Function {
4
- ( state : any , action : any ) : any ;
5
- }
1
+ export interface Reducer extends Function {
2
+ ( state : any , action : any ) : any ;
3
+ }
6
4
7
- interface Dispatch extends Function {
8
- ( action : any ) : any ;
9
- }
5
+ export interface Dispatch extends Function {
6
+ ( action : any ) : any ;
7
+ }
10
8
11
- interface MiddlewareArg {
12
- dispatch : Dispatch ;
13
- getState : Function ;
14
- }
9
+ export interface MiddlewareArg {
10
+ dispatch : Dispatch ;
11
+ getState : Function ;
12
+ }
15
13
16
- interface Middleware extends Function {
17
- ( obj : MiddlewareArg ) : Function ;
18
- }
14
+ export interface Middleware extends Function {
15
+ ( obj : MiddlewareArg ) : Function ;
16
+ }
19
17
20
- interface INgRedux {
21
- getReducer ( ) : Reducer ;
22
- replaceReducer ( nextReducer : Reducer ) : void ;
23
- dispatch ( action : any ) : any ;
24
- getState ( ) : any ;
25
- subscribe ( listener : Function ) : Function ;
26
- connect (
27
- mapStateToTarget : ( state : any ) => Object ,
28
- mapDispatchToTarget ?: Object | ( ( dispatch : Function ) => Object )
29
- ) : ( target : Function | Object ) => ( ) => void ;
30
- }
18
+ export interface INgRedux {
19
+ getReducer ( ) : Reducer ;
20
+ replaceReducer ( nextReducer : Reducer ) : void ;
21
+ dispatch ( action : any ) : any ;
22
+ getState ( ) : any ;
23
+ subscribe ( listener : Function ) : Function ;
24
+ connect (
25
+ mapStateToTarget : ( state : any ) => Object ,
26
+ mapDispatchToTarget ?: Object | ( ( dispatch : Function ) => Object )
27
+ ) : ( target : Function | Object ) => ( ) => void ;
28
+ }
31
29
32
- interface INgReduxProvider {
33
- createStoreWith ( reducer : Reducer , middlewares ?: Array < Middleware | string > , storeEnhancers ?: Function [ ] ) : void ;
34
- }
30
+ export interface INgReduxProvider {
31
+ createStoreWith ( reducer : Reducer , middlewares ?: Array < Middleware | string > , storeEnhancers ?: Function [ ] ) : void ;
35
32
}
36
33
37
- declare module "ngRedux" {
38
- export = ngRedux ;
39
- }
34
+ export var ngRedux : string ;
35
+ export default ngRedux ;
0 commit comments