Skip to content

Build your personal knowledge base with Trilium Notes

Merge branch 'beta'

zadam52244ddc99ff
diff --cc docs/backend_api/services_backend_script_api.js.html
index 54731a8d1d,4bc787c464..61e8b1ef09
--- a/docs/backend_api/services_backend_script_api.js.html
+++ b/docs/backend_api/services_backend_script_api.js.html
@@@ -47,19 -47,8 +47,20 @@@ const SpacedUpdate = require("./spaced_
const specialNotesService = require("./special_notes");
const branchService = require("./branches");
const exportService = require("./export/zip");
+ const syncMutex = require("./sync_mutex.js");
+
+/**
+ * A whole number
+ * @typedef {number} int
+ */
+
+/**
+ * An instance of the frontend api available globally.
+ * @global
+ * @var {BackendScriptApi} api
+ */
+
/**
* <p>This is the main backend API interface for scripts. All the properties and methods are published in the "api" object
* available in the JS backend notes. You can use e.g. <code>api.log(api.startNote.title);</code></p>
diff --cc src/services/backend_script_api.js
index 1294e8e2c0,5854e002fd..bbdc2b9347
--- a/src/services/backend_script_api.js
+++ b/src/services/backend_script_api.js
@@@ -19,19 -19,8 +19,20 @@@ const SpacedUpdate = require("./spaced_
const specialNotesService = require("./special_notes");
const branchService = require("./branches");
const exportService = require("./export/zip");
+ const syncMutex = require("./sync_mutex.js");
+
+/**
+ * A whole number
+ * @typedef {number} int
+ */
+
+/**
+ * An instance of the frontend api available globally.
+ * @global
+ * @var {BackendScriptApi} api
+ */
+
/**
* <p>This is the main backend API interface for scripts. All the properties and methods are published in the "api" object
* available in the JS backend notes. You can use e.g. <code>api.log(api.startNote.title);</code></p>