瀏覽代碼

enhance(plugin): api types

charlie 1 年之前
父節點
當前提交
35a2c8ec40
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7 3
      libs/src/LSPlugin.ts

+ 7 - 3
libs/src/LSPlugin.ts

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