Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(client): type error
Elian Doranc16c4788dae8
diff --git a/apps/client/src/widgets/note_tree.ts b/apps/client/src/widgets/note_tree.tsindex 301a61b6b8..85e0983381 100644--- a/apps/client/src/widgets/note_tree.ts+++ b/apps/client/src/widgets/note_tree.ts@@ -152,7 +152,7 @@ const TPL = /*html*/`const MAX_SEARCH_RESULTS_IN_TREE = 100;// this has to be hanged on the actual elements to effectively intercept and stop click event-const cancelClickPropagation: JQuery.TypeEventHandler<unknown, unknown, unknown, unknown, any> = (e) => e.stopPropagation();+const cancelClickPropagation: (e: JQuery.ClickEvent) => void = (e) => e.stopPropagation();// TODO: Fix once we remove Node.js API from publictype Timeout = NodeJS.Timeout | string | number | undefined;