From 9c86a03accf835a42e5267f6bee65aa8dbd9419c Mon Sep 17 00:00:00 2001 From: perf3ct Date: Mon, 10 Feb 2025 16:03:01 +0000 Subject: [PATCH] Do this thing to make Pano happy :) --- src/routes/api_docs.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/api_docs.ts b/src/routes/api_docs.ts index 4f8e65b52..1535265c3 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(