enhance(plugin): api types

This commit is contained in:
charlie
2024-09-03 11:14:21 +08:00
parent c7677c813e
commit 35a2c8ec40

View File

@@ -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
}