1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Chore: Fix TS errors

This commit is contained in:
Laurent Cozic
2025-05-05 10:06:47 +01:00
parent 370f6bd70e
commit 981759691d
3 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -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.');

View File

@@ -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');