refactor(client): fix types

This commit is contained in:
Elian Doran 2025-06-01 15:23:35 +03:00
parent 1ee10ca209
commit 4509ef62b5
No known key found for this signature in database

View File

@ -31,3 +31,23 @@ declare module "katex/contrib/auto-render" {
}) => void;
export default renderMathInElement;
}
import * as L from "leaflet";
declare module "leaflet" {
interface GPXMarker {
startIcon?: DivIcon | Icon | string | undefined;
endIcon?: DivIcon | Icon | string | undefined;
wptIcons?: {
[key: string]: Icon | string;
};
wptTypeIcons?: {
[key: string]: Icon | string;
};
pointMatchers?: Array<{ regex: RegExp; icon: Icon | string}>;
}
interface GPXOptions {
markers?: GPXMarker | undefined;
}
}