Skip to content

Build your personal knowledge base with Trilium Notes

chore(app/share): port to TypeScript

Panagiotis Papadopoulos3ed952849500
diff --git a/src/public/app/share.js b/src/public/app/share.ts
similarity index 92%
rename from src/public/app/share.js
rename to src/public/app/share.ts
index 3c3282497a..844d621a15 100644
--- a/src/public/app/share.js
+++ b/src/public/app/share.ts
@@ -3,7 +3,7 @@
*
* @param noteId of the given note to be fetched. If false, fetches current note.
*/
-async function fetchNote(noteId = null) {
+async function fetchNote(noteId: string | null = null) {
if (!noteId) {
noteId = document.body.getAttribute("data-note-id");
}