import { createSelector, createFeatureSelector, } from '@ngrx/store'; import { StateSelector } from '@overflow/core/ngrx/store'; import * as ListStore from './key-list'; import { MODULE } from '../sensor-item.constant'; export interface State { list: ListStore.State; } export const REDUCERS = { list: ListStore.reducer, }; export const EFFECTS = [ ListStore.Effects, ]; export const selectState = createFeatureSelector(MODULE.name); export const ReadSensorItemKeySelector = new StateSelector(createSelector( selectState, (state: State) => state.list ));