32 lines
622 B
TypeScript
32 lines
622 B
TypeScript
import {
|
|
createSelector,
|
|
createFeatureSelector,
|
|
ActionReducerMap,
|
|
} from '@ngrx/store';
|
|
|
|
import { StateSelector } from '@overflow/core/ngrx/store';
|
|
|
|
import { MODULE } from '../probe.constant';
|
|
|
|
import * as ProbeStore from './probe';
|
|
|
|
export interface State {
|
|
probes: ProbeStore.State;
|
|
}
|
|
|
|
export const REDUCERS = {
|
|
probes: ProbeStore.reducer,
|
|
};
|
|
|
|
export const EFFECTS = [
|
|
ProbeStore.Effects,
|
|
];
|
|
|
|
export const selectProbeState = createFeatureSelector<State>(MODULE.name);
|
|
|
|
export const ProbeSelector = new StateSelector<ProbeStore.State>(createSelector(
|
|
selectProbeState,
|
|
(state: State) => state.probes
|
|
));
|
|
|