Skip to content

Commit 190ee4f

Browse files
committed
test(cli): type json exception map
1 parent e90376e commit 190ee4f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/cli/program/root-command-descriptions.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,15 @@ const JSON_NOT_APPLICABLE = {
191191
} as const;
192192

193193
// These subcommands intentionally consume --json from their parent and emit JSON.
194-
const JSON_OUTPUT_INHERITED_FROM_PARENT = new Set<string>([
194+
const JSON_OUTPUT_INHERITED_FROM_PARENT = new Set([
195195
"skills curator status",
196196
"skills curator pin",
197197
"skills curator unpin",
198198
"skills curator restore",
199199
]);
200200

201201
// Route-first parsing accepts JSON before Commander registration is reached.
202-
const JSON_OUTPUT_ROUTE_FIRST = new Set<string>(["agents"]);
202+
const JSON_OUTPUT_ROUTE_FIRST = new Set(["agents"]);
203203

204204
async function registerAllBuiltInCommands(): Promise<Command> {
205205
const program = new Command().name("openclaw");
@@ -293,7 +293,7 @@ describe("root command descriptions", () => {
293293
const notApplicableEntries = Object.values(JSON_NOT_APPLICABLE).flatMap((category) =>
294294
category.commands.map((command) => ({ command, reason: category.reason })),
295295
);
296-
const notApplicable = new Map(
296+
const notApplicable = new Map<string, string>(
297297
notApplicableEntries.map(({ command, reason }) => [command, reason]),
298298
);
299299

0 commit comments

Comments
 (0)