refactor(client): solve type errors

This commit is contained in:
Elian Doran
2025-05-07 21:15:32 +03:00
parent 8d285e2cb3
commit 28266c5bd0
6 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -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>;
+1 -1
View File
@@ -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();