mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
core: fix type errors
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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 & {
|
||||
|
||||
Reference in New Issue
Block a user