mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
enhance(plugin): api types
This commit is contained in:
@@ -194,6 +194,7 @@ export interface BlockEntity {
|
||||
createdAt: number
|
||||
updatedAt: number
|
||||
properties?: Record<string, any>
|
||||
'collapsed?': boolean
|
||||
|
||||
// optional fields in dummy page
|
||||
left?: IEntityID
|
||||
@@ -216,16 +217,19 @@ export interface PageEntity {
|
||||
id: EntityID
|
||||
uuid: BlockUUID
|
||||
name: string
|
||||
originalName: string
|
||||
format: 'markdown' | 'org'
|
||||
type: 'page' | 'journal' | 'whiteboard' | 'class' | 'property' | 'hidden'
|
||||
updatedAt: number
|
||||
createdAt: number
|
||||
'journal?': boolean
|
||||
|
||||
title?: string
|
||||
file?: IEntityID
|
||||
originalName?: string
|
||||
namespace?: IEntityID
|
||||
children?: Array<PageEntity>
|
||||
properties?: Record<string, any>
|
||||
format?: 'markdown' | 'org'
|
||||
journalDay?: number
|
||||
updatedAt?: number
|
||||
|
||||
[key: string]: unknown
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user