core: fix type errors

This commit is contained in:
Abdullah Atta
2024-02-09 11:06:11 +05:00
parent 5add1b1d48
commit b9c8ac091f
2 changed files with 13 additions and 1 deletions

View File

@@ -397,7 +397,10 @@ const migrations: Migration[] = [
delete item.resolved;
return true;
},
tiny: (item) => {
delete item.resolved;
return true;
},
all: () => true
},
async vaultKey(db, key) {

View File

@@ -205,6 +205,10 @@ export interface Notebook extends BaseItem<"notebook"> {
* @deprecated only kept here for migration purposes.
*/
totalNotes?: number;
/**
* @deprecated only kept here for migration purposes.
*/
topic?: never;
dateDeleted: null;
itemType: null;
@@ -365,6 +369,11 @@ export interface BaseContentItem extends BaseItem<ContentType> {
dateResolved?: number;
sessionId?: string;
conflicted?: UnencryptedContentItem;
/**
* @deprecated only kept here for migration purposes
*/
resolved?: never;
}
export type UnencryptedContentItem = BaseContentItem & {