app-redux-utils
Advanced tools
Comparing version 1.4.0 to 1.4.1
# Changelog | ||
### 1.4.1 | ||
* fix type for watcher(); | ||
### 1.4.0 | ||
* add integration with cheap-di; |
@@ -5,10 +5,10 @@ import { Store } from 'redux'; | ||
import { ControllerBase } from './ControllerBase'; | ||
declare type Watcher<TState, TController extends Controller> = { | ||
declare type Watcher<State, TController extends Controller> = { | ||
has: (actionType: string) => boolean; | ||
get: (actionType: string) => (keyof TController) | undefined; | ||
instance: (reduxStore: Store<TState, Action>) => ControllerBase<TState>; | ||
type: new (reduxStore: Store<TState, Action>) => ControllerBase<TState>; | ||
instance: (reduxStore: Store<State, Action>) => ControllerBase<State>; | ||
type: new (reduxStore: Store<State, Action>, ...args: any[]) => ControllerBase<State>; | ||
}; | ||
declare function watcher<TState, TController extends Controller>(Controller: new (reduxStore: Store<TState, Action>) => ControllerBase<TState>, watchList: [string, keyof TController][]): Watcher<TState, TController>; | ||
declare function watcher<State, TController extends Controller>(Controller: new (reduxStore: Store<State, Action>, ...args: any[]) => ControllerBase<State>, watchList: [string, keyof TController][]): Watcher<State, TController>; | ||
export { watcher }; | ||
export type { Watcher }; |
{ | ||
"name": "app-redux-utils", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Helpful utils for redux", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
Sorry, the diff of this file is not supported yet
34671