import { ActionCreatorsMapObject } from 'redux'; export type Coordinate = { latitude: number; longitude: number; }; export interface Action { type: T; } export interface ActionWithPayload extends Action { payload: P; } export type ActionsUnion = ReturnType;