mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-30 01:09:21 -05:00
refactor(client): solve type errors
This commit is contained in:
@@ -9,7 +9,7 @@ export interface Froca {
|
||||
branches: Record<string, FBranch>;
|
||||
attributes: Record<string, FAttribute>;
|
||||
attachments: Record<string, FAttachment>;
|
||||
blobPromises: Record<string, Promise<void | FBlob> | null>;
|
||||
blobPromises: Record<string, Promise<void | FBlob | null> | null>;
|
||||
|
||||
getBlob(entityType: string, entityId: string): Promise<FBlob | null>;
|
||||
getNote(noteId: string, silentNotFoundError?: boolean): Promise<FNote | null>;
|
||||
|
||||
@@ -36,7 +36,7 @@ class FrocaImpl implements Froca {
|
||||
branches!: Record<string, FBranch>;
|
||||
attributes!: Record<string, FAttribute>;
|
||||
attachments!: Record<string, FAttachment>;
|
||||
blobPromises!: Record<string, Promise<FBlob> | null>;
|
||||
blobPromises!: Record<string, Promise<FBlob | null> | null>;
|
||||
|
||||
constructor() {
|
||||
this.initializedPromise = this.loadInitialTree();
|
||||
|
||||
Reference in New Issue
Block a user