fixed typescript errors

This commit is contained in:
Fedor Katurov 2021-04-08 16:25:25 +07:00
parent 9a7a038032
commit fe311e7839
41 changed files with 786 additions and 777 deletions

View file

@ -1,5 +1,5 @@
import React from 'react';
import { Map, TileLayer } from 'leaflet';
export const MapContext = React.createContext<Map>(null);
export const TileContext = React.createContext<TileLayer>(null)
export const MapContext = React.createContext<Map | undefined>(undefined);
export const TileContext = React.createContext<TileLayer | undefined>(undefined)