Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
server-ts: Address requested changes
Elian Doran1ac65fff4735
diff --git a/src/services/export/single.ts b/src/services/export/single.tsindex 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: "htlet 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.tsindex 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: "hmeta.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,