(value: Record<string, unknown> | null, keys: string[])
| 316 | } |
| 317 | |
| 318 | function readJsonString(value: Record<string, unknown> | null, keys: string[]): string | undefined { |
| 319 | if (!value) return undefined; |
| 320 | for (const key of keys) { |
| 321 | const next = value[key]; |
| 322 | if (typeof next === 'string' && next.trim().length > 0) { |
| 323 | return next.trim(); |
| 324 | } |
| 325 | } |
| 326 | return undefined; |
| 327 | } |
| 328 | |
| 329 | function readJsonNumber(value: Record<string, unknown> | null, keys: string[]): number | null { |
| 330 | if (!value) return null; |
no outgoing calls
no test coverage detected
searching dependent graphs…