Skip to content

Commit

Permalink
fix(storage): DocumentListStorage type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Jul 22, 2022
1 parent 508bd56 commit f1c90b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/jatabase/src/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export interface DocumentObject {
_updated?: number;
}

export type DocumentListStorage<DocType extends DocumentObject> = Record<string, DocType> & {_last?: string};
export type DocumentListStorage<DocType extends DocumentObject> =
Record<string, DocType | undefined> & {_last?: string};

0 comments on commit f1c90b4

Please sign in to comment.