mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
enhance(apis): types
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user