A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
core: fix type error
Abdullah Atta4bff11bf1202
diff --git a/packages/core/src/api/sync/index.ts b/packages/core/src/api/sync/index.tsindex ae6342efb..2d2ea1d08 100644--- a/packages/core/src/api/sync/index.ts+++ b/packages/core/src/api/sync/index.ts@@ -36,7 +36,13 @@ import { Mutex } from "async-mutex";import Database from "..";import { migrateItem, migrateVaultKey } from "../../migrations";import { SerializedKey } from "@notesnook/crypto";-import { Item, MaybeDeletedItem, Note, Notebook } from "../../types";+import {+ Attachment,+ Item,+ MaybeDeletedItem,+ Note,+ Notebook+} from "../../types";import { SYNC_COLLECTIONS_MAP, SyncTransferItem } from "./types";import { DownloadableFile } from "../../database/fs";import { SyncDevices } from "./devices";@@ -311,7 +317,10 @@ class Sync {itemType === "attachment"? await Promise.all(deserialized.map((item) =>- this.merger.mergeAttachment(item, localItems[item.id])+ this.merger.mergeAttachment(+ item as MaybeDeletedItem<Attachment>,+ localItems[item.id] as MaybeDeletedItem<Attachment>+ ))): deserialized.map((item) =>