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"); }