1
0
Эх сурвалжийг харах

fix: registerSlashCommand/registerBlockContextMenu do not need to expose this

Peng Xiao 4 жил өмнө
parent
commit
b9bc68c243

+ 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>>