From 3ed952849500077bd151ccb0efad1ca389faa083 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Sun, 26 Jan 2025 20:54:30 +0100 Subject: [PATCH] chore(app/share): port to TypeScript --- src/public/app/{share.js => share.ts} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/public/app/{share.js => share.ts} (92%) 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 3c3282497..844d621a1 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"); }