Skip to content

Commit 5a3e450

Browse files
committed
test(cli): type the discovered command classes through unknown
Claude-Session: https://claude.ai/code/session_01LmjU2x1faLZ39DVTFyVca6 Co-authored-by: Claude <noreply@anthropic.com>
1 parent ddd7dfd commit 5a3e450

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/cli/test/migrate-confirmation-exit.pin.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const COMMANDS = new Map<string, Runnable>();
140140
for (const name of readdirSync(MIGRATE_DIR).sort()) {
141141
if (!name.endsWith('.ts') || /\.(test|spec)\.ts$/.test(name) || name.endsWith('.d.ts')) continue;
142142
const mod = (await import(join(MIGRATE_DIR, name))) as { default?: unknown };
143-
if (typeof mod.default === 'function') COMMANDS.set(basename(name, '.ts'), mod.default as Runnable);
143+
if (typeof mod.default === 'function') COMMANDS.set(basename(name, '.ts'), mod.default as unknown as Runnable);
144144
}
145145

146146
/** A mode that writes behind a confirmation: a `yes` flag, or an `apply` mode. */

0 commit comments

Comments
 (0)