Last active
May 25, 2019 14:00
-
-
Save itayod/480d88fe96bb142fa020cffeb783b74b to your computer and use it in GitHub Desktop.
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
import {InjectionToken} from '@angular/core'; | |
import {StoreConfig} from '@ngrx/store/src/store_module'; | |
import * as fromReducer from './reducers/courses.reducer'; | |
import * as fromActions from './actions/courses.actions'; | |
export const COURSES_STORAGE_KEYS = | |
new InjectionToken<keyof fromReducer.State[]>('CoursesStorageKeys'); | |
export const COURSES_LOCAL_STORAGE_KEY = | |
new InjectionToken<string[]>('CoursesStorage'); | |
export const COURSES_CONFIG_TOKEN = | |
new InjectionToken<StoreConfig<fromReducer.State, fromActions.CoursesActions>>('CoursesConfigToken'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment