UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

28 lines (27 loc) 803 B
import * as Actions from '../actions'; import { CourierModel, CourierLocationModel } from '@lml/cosmo-ts-data'; /** * Map of refId to courier location */ export interface CourierLocations { [refId: string]: CourierLocationModel; } /** * Map of refId to courier model */ export interface CouriersDataByIdState { [refId: string]: CourierModel; } /** * Map of callsigns to courier refId */ export interface CourierCallsignState { [callsign: string]: string; } export interface CourierDataState { byId: CouriersDataByIdState; callsigns: CourierCallsignState; lastStatusUpdate: number | null; } export declare const initialCouriersState: CourierDataState; export declare const courierDataReducer: (state: CourierDataState, action: Actions.CourierApiAction) => CourierDataState;