void -> unknown

This commit is contained in:
Andras Schmelczer 2025-08-23 09:50:22 +01:00
parent 49f2d69e59
commit 115c1067f9
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -37,7 +37,7 @@ export interface DocumentRecord {
documentId: DocumentId; documentId: DocumentId;
metadata: DocumentMetadata | undefined; metadata: DocumentMetadata | undefined;
isDeleted: boolean; isDeleted: boolean;
updates: Promise<void>[]; updates: Promise<unknown>[];
parallelVersion: number; parallelVersion: number;
} }
@ -135,7 +135,7 @@ export class Database {
this.save(); this.save();
} }
public removeDocumentPromise(promise: Promise<void>): void { public removeDocumentPromise(promise: Promise<unknown>): void {
const entry = this.documents.find(({ updates }) => const entry = this.documents.find(({ updates }) =>
updates.includes(promise) updates.includes(promise)
); );
@ -167,7 +167,7 @@ export class Database {
public async getResolvedDocumentByRelativePath( public async getResolvedDocumentByRelativePath(
relativePath: RelativePath, relativePath: RelativePath,
promise: Promise<void> promise: Promise<unknown>
): Promise<DocumentRecord> { ): Promise<DocumentRecord> {
const entry = this.getLatestDocumentByRelativePath(relativePath); const entry = this.getLatestDocumentByRelativePath(relativePath);
@ -191,7 +191,7 @@ export class Database {
public createNewPendingDocument( public createNewPendingDocument(
documentId: DocumentId, documentId: DocumentId,
relativePath: RelativePath, relativePath: RelativePath,
promise: Promise<void> promise: Promise<unknown>
): DocumentRecord { ): DocumentRecord {
const previousEntry = const previousEntry =
this.getLatestDocumentByRelativePath(relativePath); this.getLatestDocumentByRelativePath(relativePath);