member_webapp/src/packages/probe/store/modify/modify.state.ts
2018-04-29 19:43:14 +09:00

19 lines
516 B
TypeScript

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;
modifiedProbe: Probe | null;
}
export const adapter: EntityAdapter<Probe> = createEntityAdapter<Probe>();
export const initialState: State = adapter.getInitialState({
error: null,
isPending: false,
modifiedProbe: null,
});