Skip to content

Commit e577688

Browse files
committed
🤖 fix: add missing isSSHRuntime export to runtime.ts
The previous commit referenced isSSHRuntime but the function wasn't actually added to the file. Generated with `cmux`
1 parent 53f717f commit e577688

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/types/runtime.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,13 @@ export function buildRuntimeString(mode: RuntimeMode, host: string): string | un
7474
}
7575
return undefined;
7676
}
77+
78+
79+
/**
80+
* Type guard to check if a runtime config is SSH
81+
*/
82+
export function isSSHRuntime(
83+
config: RuntimeConfig | undefined
84+
): config is Extract<RuntimeConfig, { type: "ssh" }> {
85+
return config?.type === "ssh";
86+
}

0 commit comments

Comments
 (0)