Skip to content

Build your personal knowledge base with Trilium Notes

server-ts: Address requested changes

Elian Doran1ac65fff4735
diff --git a/src/services/export/single.ts b/src/services/export/single.ts
index f4ac586929..b0f46e6e82 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 9d369e593b..b4093c848b 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,