member_webapp/@overflow/probe/store/trash/modify/modify.state.ts

19 lines
536 B
TypeScript
Raw Normal View History

2018-05-24 06:44:13 +00:00
import { RPCClientError } from '@loafer/ng-rpc';
2018-04-27 07:31:27 +00:00
2018-05-02 08:09:39 +00:00
import { Probe } from '@overflow/commons-typescript/model/probe';
2018-04-27 07:31:27 +00:00
import { createEntityAdapter, EntityAdapter, EntityState } from '@ngrx/entity';
export interface State extends EntityState<Probe> {
error: RPCClientError | null;
isPending: boolean;
2018-04-29 10:43:14 +00:00
modifiedProbe: Probe | null;
2018-04-27 07:31:27 +00:00
}
export const adapter: EntityAdapter<Probe> = createEntityAdapter<Probe>();
export const initialState: State = adapter.getInitialState({
error: null,
isPending: false,
2018-04-29 10:43:14 +00:00
modifiedProbe: null,
2018-04-27 07:31:27 +00:00
});