member_webapp/@overflow/probe/store/container/probe-detail/probe-detail.state.ts
2018-05-26 18:08:40 +09:00

16 lines
395 B
TypeScript

import { Selector, createSelector } from '@ngrx/store';
import { createEntityAdapter, EntityState } from '@loafer/ng-entity';
export interface State {
pending: boolean;
}
export const initialState: State = {
pending: false,
};
export function getSelectors<S>(selector: Selector<any, State>) {
return {
selectPending: createSelector(selector, (state: State) => state.pending),
};
}