Jelajahi Sumber

Fix: update logseq.Editor.getPageBlocksTree's return type. (#12212)

Changes the logseq.Editor.getPageBlocksTree's return type from
Promise<Array<BlockEntity>> to Promise<Array<BlockEntity> | null>.

Closes #12211.

Co-authored-by: Charlie <[email protected]>
Sal Rahman 1 bulan lalu
induk
melakukan
2dd0193166
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      libs/src/LSPlugin.ts

+ 1 - 1
libs/src/LSPlugin.ts

@@ -657,7 +657,7 @@ export interface IEditorProxy extends Record<string, any> {
    *
    * @param srcPage - the page name or uuid
    */
-  getPageBlocksTree: (srcPage: PageIdentity) => Promise<Array<BlockEntity>>
+  getPageBlocksTree: (srcPage: PageIdentity) => Promise<Array<BlockEntity> | null>
 
   /**
    * get all page/block linked references