( record: Record<string, unknown> | undefined, key: string )
| 433 | } |
| 434 | |
| 435 | function getStringProperty( |
| 436 | record: Record<string, unknown> | undefined, |
| 437 | key: string |
| 438 | ): string | undefined { |
| 439 | const value = record?.[key] |
| 440 | return typeof value === 'string' ? value : undefined |
| 441 | } |
| 442 | |
| 443 | function getNumberProperty( |
| 444 | record: Record<string, unknown> | undefined, |
no outgoing calls
no test coverage detected