Pārlūkot izejas kodu

fix: registerSlashCommand/registerBlockContextMenu do not need to expose this

Peng Xiao 4 gadi atpakaļ
vecāks
revīzija
b9bc68c243
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      libs/src/LSPlugin.d.ts

+ 2 - 2
libs/src/LSPlugin.d.ts

@@ -125,8 +125,8 @@ interface IAppProxy {
 }
 
 interface IEditorProxy {
-  registerSlashCommand: (this: LSPluginUser, tag: string, actions: Array<SlashCommandAction>) => boolean
-  registerBlockContextMenu: (this: LSPluginUser, tag: string, action: () => void) => boolean
+  registerSlashCommand: (tag: string, actions: Array<SlashCommandAction>) => boolean
+  registerBlockContextMenu: (tag: string, action: () => void) => boolean
 
   // block related APIs
   getCurrentPage: () => Promise<Partial<BlockEntity>>