member_webapp/@overflow/probe/store/detail/detail.state.ts
crusader d59d9379f9 ing
2018-05-24 15:44:13 +09:00

19 lines
520 B
TypeScript

import { RPCClientError } from '@loafer/ng-rpc';
import { Probe } from '@overflow/commons-typescript/model/probe';
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,
});