mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-11-01 12:17:18 +00:00
fix type errors
This commit is contained in:
1 parent
c3ace59527
commit
b3fe640575
4 files changed
+10
-5
No files matched your search
Vendored
+5
@@ -8,6 +8,11 @@ declare global {
|
|||||||
// interface PageState {}
|
// interface PageState {}
|
||||||
// interface Platform {}
|
// interface Platform {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface Window {
|
||||||
|
/** The map, for extensions (set once it has loaded). */
|
||||||
|
_map?: import('maplibre-gl').Map;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export {};
|
export {};
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<link rel="preconnect" href="https://21XLD94PE3-dsn.algolia.net" crossorigin />
|
<link rel="preconnect" href="https://21XLD94PE3-dsn.algolia.net" crossorigin="anonymous" />
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<div id="docsearch" class={props.class ?? ''}></div>
|
<div id="docsearch" class={props.class ?? ''}></div>
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ export class StyleManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e.message);
|
console.error(e instanceof Error ? e.message : e);
|
||||||
}
|
}
|
||||||
this.merge(style, basemapStyle);
|
this.merge(style, basemapStyle);
|
||||||
style.sky ??= sky;
|
style.sky ??= sky;
|
||||||
@@ -196,7 +196,7 @@ export class StyleManager {
|
|||||||
}
|
}
|
||||||
this._pastOverlays.add(overlay);
|
this._pastOverlays.add(overlay);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e.message);
|
console.error(e instanceof Error ? e.message : e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
|
|
||||||
let { data }: { data: { guideModule: any; guideTitles: Record<string, string> } } = $props();
|
let { data }: { data: { guideModule: any; guideTitles: Record<string, string> } } = $props();
|
||||||
|
|
||||||
let previousGuide = $derived(getPreviousGuide(page.params.guide));
|
let previousGuide = $derived(getPreviousGuide(page.params.guide ?? ''));
|
||||||
let nextGuide = $derived(getNextGuide(page.params.guide));
|
let nextGuide = $derived(getNextGuide(page.params.guide ?? ''));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="markdown flex flex-col gap-3">
|
<div class="markdown flex flex-col gap-3">
|
||||||
|
|||||||
Reference in new issue
Block a user