void -> unknown
This commit is contained in:
parent
49f2d69e59
commit
115c1067f9
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue