Skip to content

Build your personal knowledge base with Trilium Notes

server-ts: Fix build errors after merge

Elian Dorana420129631a2
diff --git a/src/becca/becca_loader.ts b/src/becca/becca_loader.ts
index 507828ad59..b7ea941c8a 100644
--- a/src/becca/becca_loader.ts
+++ b/src/becca/becca_loader.ts
@@ -20,7 +20,7 @@ const beccaLoaded = new Promise<void>((res, rej) => {
cls.init(() => {
load();
- require('../services/options_init.js').initStartupOptions();
+ require('../services/options_init').initStartupOptions();
res();
});
diff --git a/src/services/search/expressions/note_content_fulltext.ts b/src/services/search/expressions/note_content_fulltext.ts
index 6cae689d1e..ada9705a27 100644
--- a/src/services/search/expressions/note_content_fulltext.ts
+++ b/src/services/search/expressions/note_content_fulltext.ts
@@ -137,7 +137,7 @@ class NoteContentFulltextExp extends Expression {
return content.trim();
}
- stripTags(content) {
+ stripTags(content: string) {
// we want to allow link to preserve URLs: https://github.com/zadam/trilium/issues/2412
// we want to insert space in place of block tags (because they imply text separation)
// but we don't want to insert text for typical formatting inline tags which can occur within one word