From fd5bfaa8aff3bb15d6df74443c97fa7f40beee03 Mon Sep 17 00:00:00 2001 From: Daniel Heppner Date: Thu, 28 Sep 2023 20:28:26 -0700 Subject: [PATCH] also goes with that merge --- lib/components/util/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/components/util/types.ts b/lib/components/util/types.ts index 30af3f4f6..d83b236bf 100644 --- a/lib/components/util/types.ts +++ b/lib/components/util/types.ts @@ -1,4 +1,4 @@ -import { MapLocationActionArg, Route } from '@opentripplanner/types' +import { MapLocationActionArg, Route, Stop } from '@opentripplanner/types' // TYPESCRIPT TODO: move this to a larger shared types file, preferably within otp-ui export interface StopData { @@ -93,7 +93,7 @@ export interface ViewedRouteObject extends Route { export type SetViewedRouteHandler = (route?: ViewedRouteState) => void -export type SetViewedStopHandler = (payload: { stopId: string } | null) => void +export type SetViewedStopHandler = (payload: Stop | null) => void export type SetLocationHandler = (payload: MapLocationActionArg) => void