enhance(apis): types

This commit is contained in:
charlie
2025-11-06 11:46:04 +08:00
parent c10e41b5db
commit 0046fff9a2
3 changed files with 11 additions and 2 deletions

View File

@@ -781,6 +781,12 @@ 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>
addBlockTag: (blockId: BlockIdentity, tagId: BlockIdentity) => Promise<void>
removeBlockTag: (blockId: BlockIdentity, tagId: BlockIdentity) => Promise<void>