You've already forked joplin
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:
@@ -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 });
|
||||
|
@@ -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.');
|
||||
|
@@ -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');
|
||||
|
Reference in New Issue
Block a user