From 7b3cb550fe1fbea67cafbdd7969d9448973b0bff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=BCtke?= Date: Sun, 5 Apr 2026 18:26:21 -0400 Subject: [PATCH] fix(cli): resolve strict TS build errors from #470/#502/#508 - Cast loadConfig() through unknown for editor_uri template lookup - Type cli.opts.json access and handle string[] collection in bench --- src/cli/qmd.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cli/qmd.ts b/src/cli/qmd.ts index bd03208..a09ffb3 100755 --- a/src/cli/qmd.ts +++ b/src/cli/qmd.ts @@ -1878,7 +1878,7 @@ function getEditorUriTemplate(): string { if (envTemplate) return envTemplate; try { - const config = loadConfig() as { + const config = loadConfig() as unknown as { editor_uri?: string; editor_uri_template?: string; editorUri?: string; @@ -3150,9 +3150,10 @@ if (isMain) { process.exit(1); } const { runBenchmark } = await import("../bench/bench.js"); + const benchCollection = cli.opts.collection; await runBenchmark(fixturePath, { - json: !!cli.opts.json, - collection: cli.opts.collection, + json: !!(cli.opts as { json?: boolean }).json, + collection: Array.isArray(benchCollection) ? benchCollection[0] : benchCollection, }); break; }