Skip to content

Build your personal knowledge base with Trilium Notes

Do this thing to make Pano happy :)

perf3ct9c86a03accf8
diff --git a/src/routes/api_docs.ts b/src/routes/api_docs.ts
index 4f8e65b52d..1535265c31 100644
--- a/src/routes/api_docs.ts
+++ b/src/routes/api_docs.ts
@@ -4,11 +4,12 @@ import { readFile } from "fs/promises";
import { fileURLToPath } from "url";
import { dirname, join } from "path";
import yaml from "js-yaml";
+import type { JsonObject } from "swagger-ui-express";
const __dirname = dirname(fileURLToPath(import.meta.url));
const swaggerDocument = yaml.load(
await readFile(join(__dirname, "../etapi/etapi.openapi.yaml"), "utf8")
-) as object;
+) as JsonObject;
function register(router: Router) {
router.use(