import { createSelector, createFeatureSelector, ActionReducerMap, } from '@ngrx/store'; import { StateSelector } from 'packages/core/ngrx/store'; import { MODULE } from '../probe.constant'; import * as ProbeListStore from './list'; import * as ProbeDetailStore from './detail'; export interface State { list: ProbeListStore.State; detail: ProbeDetailStore.State; } export const REDUCERS = { list: ProbeListStore.reducer, detail: ProbeDetailStore.reducer, }; export const EFFECTS = [ ProbeListStore.Effects, ProbeDetailStore.Effects, ]; export const selectProbeState = createFeatureSelector(MODULE.name); export const ListSelector = new StateSelector(createSelector( selectProbeState, (state: State) => state.list )); export const DetailSelector = new StateSelector(createSelector( selectProbeState, (state: State) => state.detail ));