(body: Record<string, unknown>, key: string)
| 136 | } |
| 137 | |
| 138 | function requiredString(body: Record<string, unknown>, key: string): string { |
| 139 | const value = body[key]; |
| 140 | if (typeof value !== "string" || value.length === 0) { |
| 141 | throw new Error(`Runtime API response is missing '${key}'`); |
| 142 | } |
| 143 | return value; |
| 144 | } |
no outgoing calls
no test coverage detected