member_webapp/src/packages/probe/store/modify/modify.state.ts

19 lines
500 B
TypeScript
Raw Normal View History

2018-04-27 07:31:27 +00:00
import { RPCClientError } from '@loafer/ng-rpc/protocol';
import { Probe } from '../../model';
import { createEntityAdapter, EntityAdapter, EntityState } from '@ngrx/entity';
export interface State extends EntityState<Probe> {
error: RPCClientError | null;
isPending: boolean;
probe: Probe | null;
}
export const adapter: EntityAdapter<Probe> = createEntityAdapter<Probe>();
export const initialState: State = adapter.getInitialState({
error: null,
isPending: false,
probe: null,
});