chore(app/share): port to TypeScript

This commit is contained in:
Panagiotis Papadopoulos 2025-01-26 20:54:30 +01:00
parent c6730c5467
commit 3ed9528495

View File

@ -3,7 +3,7 @@
* *
* @param noteId of the given note to be fetched. If false, fetches current note. * @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) { if (!noteId) {
noteId = document.body.getAttribute("data-note-id"); noteId = document.body.getAttribute("data-note-id");
} }