mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Fix useMap type (#1799)
This commit is contained in:
parent
74671ec92c
commit
29aa2098fe
@ -51,7 +51,7 @@ export const MapProvider: React.FC<{}> = props => {
|
||||
);
|
||||
};
|
||||
|
||||
export function useMap(): {current?: MapRef; [id: string]: MapRef} {
|
||||
export function useMap(): {current?: MapRef; [id: string]: MapRef | undefined} {
|
||||
const maps = useContext(MountedMapsContext)?.maps;
|
||||
const currentMap = useContext(MapContext);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user