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
chore: enable intellisense for notesnook-core
thecodrr69823fa0951b
diff --git a/apps/web/src/common/export.ts b/apps/web/src/common/export.tsindex bcd5082da..a2add2cb7 100644--- a/apps/web/src/common/export.ts+++ b/apps/web/src/common/export.ts@@ -29,21 +29,21 @@ export async function exportNotes(subtitle: "Please wait while your notes are exported.",action: async (report) => {if (format === "pdf") {- const note = db.notes.note(noteIds[0]);- return await exportToPDF(await note.export("html"));+ const note = db.notes!.note(noteIds[0]);+ return await exportToPDF(await note.export("html", null));}var files = [];let index = 0;for (var noteId of noteIds) {- const note = db.notes.note(noteId);+ const note = db.notes!.note(noteId);report({current: ++index,total: noteIds.length,text: `Exporting "${note.title}"...`,});console.log("Exporting", note.title);- const content: string = await note.export(format).catch(() => {});+ const content: string = await note.export(format, null).catch(() => {});if (!content) continue;files.push({ filename: note.title, content });}diff --git a/apps/web/src/common/multi-select.ts b/apps/web/src/common/multi-select.tsindex 3eeac4655..0c54994b0 100644--- a/apps/web/src/common/multi-select.ts+++ b/apps/web/src/common/multi-select.ts@@ -19,7 +19,7 @@ async function moveNotesToTrash(notes: any[]) {}const items = notes.map((item) => {- if (item.locked || db.monographs.isPublished(item.id)) return 0;+ if (item.locked || db.monographs!.isPublished(item.id)) return 0;return item.id;});@@ -76,8 +76,8 @@ async function deleteTopics(notebookId: string, topics: any[]) {report({text: `Deleting ${topics.length} topics...`,});- await db.notebooks- .notebook(notebookId)+ await db+ .notebooks!.notebook(notebookId).topics.delete(...topics.map((t) => t.id));notebookStore.setSelectedNotebook(notebookId);},diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.jsonindex 9d379a3c4..61363e3e7 100644--- a/apps/web/tsconfig.json+++ b/apps/web/tsconfig.json@@ -14,7 +14,9 @@"resolveJsonModule": true,"isolatedModules": true,"noEmit": true,- "jsx": "react-jsx"+ "jsx": "react-jsx",+ "downlevelIteration": true,+ "maxNodeModuleJsDepth": 5},"include": ["src"]}