Commit 642cdb7b authored by Michael Underwood's avatar Michael Underwood
Browse files

Specify type for Leaflet imports

parent ab8591e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ export default {
    const { options, methods } = setupCircle(props, leafletObject, context);

    onMounted(async () => {
      const { circle, DomEvent } = useGlobalLeaflet
      const { circle, DomEvent }: typeof L = useGlobalLeaflet
        ? WINDOW_OR_GLOBAL.L
        : await import("leaflet/dist/leaflet-src.esm");

+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ export default {
    );

    onMounted(async () => {
      const { circleMarker, DomEvent } = useGlobalLeaflet
      const { circleMarker, DomEvent }: typeof L = useGlobalLeaflet
        ? WINDOW_OR_GLOBAL.L
        : await import("leaflet/dist/leaflet-src.esm");

+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ export default {
    const { options, methods } = setupControl(props, leafletObject);

    onMounted(async () => {
      const { Control, DomEvent } = useGlobalLeaflet
      const { Control, DomEvent }: typeof L = useGlobalLeaflet
        ? WINDOW_OR_GLOBAL.L
        : await import("leaflet/dist/leaflet-src.esm");

+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ export default {
    const { options, methods } = setupControlAttribution(props, leafletObject);

    onMounted(async () => {
      const { control } = useGlobalLeaflet
      const { control }: typeof L = useGlobalLeaflet
        ? WINDOW_OR_GLOBAL.L
        : await import("leaflet/dist/leaflet-src.esm");

+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ export default {
    const { options, methods } = setupControlLayers(props, leafletObject);

    onMounted(async () => {
      const { control } = useGlobalLeaflet
      const { control }: typeof L = useGlobalLeaflet
        ? WINDOW_OR_GLOBAL.L
        : await import("leaflet/dist/leaflet-src.esm");

Loading