Skip to content

Commit f471b2f

Browse files
committed
fix: add missing unknown type annotation on catch parameters
nonInteractive.ts and cli.tsx catch blocks were missing the explicit : unknown annotation that all three TUI components already use. Aligns with the codebase convention for consistent error handling.
1 parent 66468bd commit f471b2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/cli.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ if (cli.flags.info) {
8080
name: cli.flags.name,
8181
mode: cli.flags.mode,
8282
features: cli.flags.features,
83-
}).catch((error) => {
83+
}).catch((error: unknown) => {
8484
if (process.exitCode === 1) {
8585
return
8686
}

source/nonInteractive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export async function runNonInteractive(flags: {
131131
}
132132

133133
console.log(JSON.stringify(result, null, 2))
134-
} catch (error) {
134+
} catch (error: unknown) {
135135
const message = error instanceof Error ? error.message : String(error)
136136
fail(message)
137137
}

0 commit comments

Comments
 (0)