fix typings

This commit is contained in:
vcoppe
2024-05-03 16:19:11 +02:00
parent 6c9faf54b1
commit 28a50dd46e
4 changed files with 14 additions and 9 deletions

View File

@@ -10,8 +10,9 @@
import { _ } from 'svelte-i18n';
import type { GPXFile } from 'gpx';
import type { FreezedObject } from 'structurajs';
export let file: Readable<GPXFile | undefined>;
export let file: Readable<FreezedObject<GPXFile> | undefined>;
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->

View File

@@ -8,11 +8,12 @@ import { toast } from "svelte-sonner";
import { _ } from "svelte-i18n";
import { dbUtils } from "$lib/db";
import type { FreezedObject } from "structurajs";
export class RoutingControls {
map: mapboxgl.Map;
fileId: string = '';
file: Readable<GPXFile | undefined>;
file: Readable<FreezedObject<GPXFile> | undefined>;
anchors: AnchorWithMarker[] = [];
shownAnchors: AnchorWithMarker[] = [];
popup: mapboxgl.Popup;