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 <xyhp915@qq.com>
This commit is contained in:
Sal Rahman
2025-11-24 17:57:07 -08:00
committed by GitHub
parent 98b474e0ef
commit 2dd0193166

View File

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