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