This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Reducer, Store } from 'redux'; | ||
import { RouterState } from 'connected-react-router'; | ||
import { ILanguageProviderProps } from 'containers/LanguageProvider'; | ||
|
||
export interface LifeStore extends Store<{}> { | ||
injectedReducers?: any; | ||
injectedSagas?: any; | ||
runSaga(saga: () => IterableIterator<any>, args: any): any; | ||
} | ||
|
||
export interface InjectReducerParams { | ||
key: keyof ApplicationRootState; | ||
reducer: Reducer<any, any>; | ||
} | ||
|
||
export interface InjectSagaParams { | ||
key: keyof ApplicationRootState; | ||
saga: () => IterableIterator<any>; | ||
mode?: string | undefined; | ||
} | ||
|
||
// Your root reducer type, which is your redux state types also | ||
export interface ApplicationRootState { | ||
readonly router: RouterState; | ||
readonly language: ILanguageProviderProps; | ||
// for testing purposes | ||
readonly test: any; | ||
} |