瀏覽代碼

fix: registerSlashCommand/registerBlockContextMenu do not need to expose this

Peng Xiao 4 年之前
父節點
當前提交
b9bc68c243
共有 1 個文件被更改,包括 2 次插入2 次删除
  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>>