diff --git a/src/services/export/single.ts b/src/services/export/single.ts index f4ac58692..b0f46e6e8 100644 --- a/src/services/export/single.ts +++ b/src/services/export/single.ts @@ -24,7 +24,7 @@ function exportSingleNote(taskContext: TaskContext, branch: BBranch, format: "ht let content = note.getContent(); if (typeof content !== "string") { - throw new Error("Unsupported context type for export."); + throw new Error("Unsupported content type for export."); } if (note.type === 'text') { diff --git a/src/services/export/zip.ts b/src/services/export/zip.ts index 9d369e593..b4093c848 100644 --- a/src/services/export/zip.ts +++ b/src/services/export/zip.ts @@ -142,7 +142,7 @@ async function exportToZip(taskContext: TaskContext, branch: BBranch, format: "h meta.type = note.type; meta.mime = note.mime; meta.attributes = note.getOwnedAttributes().map(attribute => { - const attrMeta = { + const attrMeta: AttributeMeta = { type: attribute.type, name: attribute.name, value: attribute.value,