Browse Source

enhance(apis): rename tag property functions for consistency

charlie 4 months ago
parent
commit
96ffb4d16d
1 changed files with 2 additions and 6 deletions
  1. 2 6
      libs/src/LSPlugin.ts

+ 2 - 6
libs/src/LSPlugin.ts

@@ -781,12 +781,8 @@ export interface IEditorProxy extends Record<string, any> {
   getAllProperties: () => Promise<PageEntity[] | null>
   getTagObjects: (PageIdentity) => Promise<BlockEntity[] | null>
   createTag: (tagName: string) => Promise<PageEntity | null>
-  addTagClassProperty: (tagId: BlockIdentity, propertyIdOrName: BlockIdentity,
-    opts?: Partial<{
-      type: stirng
-      [key: string]: any
-    }>) => Promise<void>
-  removeTagClassProperty: (tagId: BlockIdentity, propertyIdOrName: BlockIdentity) => Promise<void>
+  addTagProperty: (tagId: BlockIdentity, propertyIdOrName: BlockIdentity) => Promise<void>
+  removeTagProperty: (tagId: BlockIdentity, propertyIdOrName: BlockIdentity) => Promise<void>
   addBlockTag: (blockId: BlockIdentity, tagId: BlockIdentity) => Promise<void>
   removeBlockTag: (blockId: BlockIdentity, tagId: BlockIdentity) => Promise<void>