mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
(chore): Update getAllPages typescript (#5908)
* Update getAllPages typescript * Optionally add updatedAt to PageEntity
This commit is contained in:
@@ -196,6 +196,7 @@ export interface PageEntity {
|
||||
children?: Array<PageEntity>
|
||||
format?: 'markdown' | 'org'
|
||||
journalDay?: number
|
||||
updatedAt?: number
|
||||
}
|
||||
|
||||
export type BlockIdentity = BlockUUID | Pick<BlockEntity, 'uuid'>
|
||||
@@ -622,7 +623,7 @@ export interface IEditorProxy extends Record<string, any> {
|
||||
|
||||
renamePage: (oldName: string, newName: string) => Promise<void>
|
||||
|
||||
getAllPages: (repo?: string) => Promise<any>
|
||||
getAllPages: (repo?: string) => Promise<PageEntity[] | null>
|
||||
|
||||
prependBlockInPage: (
|
||||
page: PageIdentity,
|
||||
|
||||
Reference in New Issue
Block a user