(value: unknown)
| 13 | * string inputs keep their type instead of collapsing to `never`. |
| 14 | */ |
| 15 | export function isWorkflowRunTaskId(value: unknown): value is `wfr_${string}` { |
| 16 | return typeof value === "string" && value.startsWith(WORKFLOW_RUN_TASK_ID_PREFIX); |
| 17 | } |
| 18 | |
| 19 | export function toBashTaskId(processId: string): string { |
| 20 | assert(typeof processId === "string", "toBashTaskId: processId must be a string"); |
no outgoing calls
no test coverage detected