From 981759691de25d4a356839df40993eb2a8738841 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 5 May 2025 10:06:47 +0100 Subject: [PATCH] Chore: Fix TS errors --- packages/app-desktop/commands/restoreNoteRevision.ts | 2 +- packages/app-mobile/commands/newNote.ts | 2 +- packages/lib/commands/showEditorPlugin.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/app-desktop/commands/restoreNoteRevision.ts b/packages/app-desktop/commands/restoreNoteRevision.ts index c80870643a..db0fd50774 100644 --- a/packages/app-desktop/commands/restoreNoteRevision.ts +++ b/packages/app-desktop/commands/restoreNoteRevision.ts @@ -9,7 +9,7 @@ export const declaration: CommandDeclaration = { export const runtime = (): CommandRuntime => { return { - execute: async (_context: CommandContext, noteId: string, reverseRevIndex = 0) => { + execute: async (_context: CommandContext, noteId: string, reverseRevIndex:number = 0) => { try { const note = await RevisionService.instance().restoreNoteById(noteId, reverseRevIndex); await shim.showMessageBox(RevisionService.instance().restoreSuccessMessage(note), { type: MessageBoxType.Info }); diff --git a/packages/app-mobile/commands/newNote.ts b/packages/app-mobile/commands/newNote.ts index a36b2f9f38..238a22f028 100644 --- a/packages/app-mobile/commands/newNote.ts +++ b/packages/app-mobile/commands/newNote.ts @@ -12,7 +12,7 @@ export const declaration: CommandDeclaration = { export const runtime = (): CommandRuntime => { return { - execute: async (_context: CommandContext, body = '', todo = false, options: GotoNoteOptions = null) => { + execute: async (_context: CommandContext, body:string = '', todo:boolean = false, options: GotoNoteOptions = null) => { const folderId = Setting.value('activeFolderId'); if (!folderId) { logger.warn('Not creating new note -- no active folder ID.'); diff --git a/packages/lib/commands/showEditorPlugin.ts b/packages/lib/commands/showEditorPlugin.ts index 2d25655627..2226ba5bfb 100644 --- a/packages/lib/commands/showEditorPlugin.ts +++ b/packages/lib/commands/showEditorPlugin.ts @@ -13,7 +13,7 @@ export const declaration: CommandDeclaration = { export const runtime = (): CommandRuntime => { return { - execute: async (context: CommandContext, editorViewId = '', show = true) => { + execute: async (context: CommandContext, editorViewId:string = '', show:boolean = true) => { logger.info('View:', editorViewId, 'Show:', show); const shownEditorViewIds = Setting.value('plugins.shownEditorViewIds');