Skip to content

Commit d327a03

Browse files
committed
fix gateway health result type narrowing
1 parent c4c8c4c commit d327a03

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/cli/gateway-cli/register.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,8 @@ export function registerGatewayCli(program: Command) {
575575
return;
576576
}
577577
const rich = isRich();
578-
const obj: Record<string, unknown> = result && typeof result === "object" ? result : {};
578+
const obj: Record<string, unknown> =
579+
result && typeof result === "object" ? (result as Record<string, unknown>) : {};
579580
const durationMs = typeof obj.durationMs === "number" ? obj.durationMs : null;
580581
defaultRuntime.log(colorize(rich, theme.heading, "Gateway Health"));
581582
defaultRuntime.log(

0 commit comments

Comments
 (0)