diff --git a/src/components/use-map.tsx b/src/components/use-map.tsx index c8e02064f..4569525ca 100644 --- a/src/components/use-map.tsx +++ b/src/components/use-map.tsx @@ -52,7 +52,10 @@ export const MapProvider: React.FC<{children?: React.ReactNode}> = props => { ); }; -export function useMap() { +export function useMap(): { + [id: string]: MapRef | undefined; + current?: MapRef; +} { const maps = useContext(MountedMapsContext)?.maps; const currentMap = useContext(MapContext);