import { RPCClientError } from '@loafer/ng-rpc'; import { Sensor } from '@overflow/commons-typescript/model/sensor'; import { createEntityAdapter, EntityAdapter, EntityState } from '@ngrx/entity'; export interface State extends EntityState { error: RPCClientError | null; isPending: boolean; sensor: Sensor | null; } export const adapter: EntityAdapter = createEntityAdapter(); export const initialState: State = adapter.getInitialState({ error: null, isPending: false, sensor: null, });