import { UniqueId } from '@fulls1z3/shared/util-store' ; import { createEntityAdapter , EntityAdapter , EntityState } from '@ngrx/entity' ; import { Airline } from './airline.model' ; export const AIRLINE = 'flight--airline' ; export interface State extends EntityState < Airline > { selectedId : UniqueId ; isProcessing ? : boolean ; error ? : any ; } export const adapter = createEntityAdapter < Airline > ( { selectId : cur => cur . id } ) ; export const initialState = adapter . getInitialState ( { selectedId : undefined , isProcessing : false , error : undefined } ) ;