Skip to content

Build your personal knowledge base with Trilium Notes

refactor(client): fix types

Elian Doran4509ef62b5ab
diff --git a/apps/client/src/types-lib.d.ts b/apps/client/src/types-lib.d.ts
index a19bffa9d9..c72a6216ca 100644
--- a/apps/client/src/types-lib.d.ts
+++ b/apps/client/src/types-lib.d.ts
@@ -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;
+ }
+}