(chore): Update getAllPages typescript (#5908)

* Update getAllPages typescript

* Optionally add updatedAt to PageEntity
This commit is contained in:
Scott Block
2022-07-04 03:40:44 -04:00
committed by GitHub
parent 10bc9e2f9b
commit d15fb1c56a

View File

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