chore: Fix type errors from reverts.

This commit is contained in:
cpojer
2026-02-17 11:22:31 +09:00
parent 262b7a157a
commit 4b8f53979e
9 changed files with 30 additions and 22 deletions

View File

@@ -19,8 +19,8 @@ const NON_INTERACTIVE_DEFAULT_OPTIONS = {
export function createThrowingRuntime(): NonInteractiveRuntime {
return {
log: () => {},
error: (msg: string) => {
throw new Error(msg);
error: (...args: unknown[]) => {
throw new Error(args.map(String).join(" "));
},
exit: (code: number) => {
throw new Error(`exit:${code}`);