Skip to content

Instantly share code, notes, and snippets.

@itayod
Last active May 25, 2019 14:00
Show Gist options
  • Save itayod/480d88fe96bb142fa020cffeb783b74b to your computer and use it in GitHub Desktop.
Save itayod/480d88fe96bb142fa020cffeb783b74b to your computer and use it in GitHub Desktop.
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