Skip to content

Instantly share code, notes, and snippets.

@vschoener
Created July 26, 2018 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vschoener/f30ddb9d4e5bbed3bb939a4fc7be85e7 to your computer and use it in GitHub Desktop.
Save vschoener/f30ddb9d4e5bbed3bb939a4fc7be85e7 to your computer and use it in GitHub Desktop.
reducer
import authReducer, { AuthStateInterface } from '../components/auth/authReducer';
// Interface inside my reducer file
// export interface AuthStateInterface {
// authenticated?: string | null;
// }
export interface IAppState {
//... Other state you need here
auth: AuthStateInterface;
}
const rootReducer = combineReducers<IAppState>({
auth: authReducer,
});
export default rootReducer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment