( source: Record<string, unknown>, key: string, fallback: string, )
| 9 | } |
| 10 | |
| 11 | export function readString( |
| 12 | source: Record<string, unknown>, |
| 13 | key: string, |
| 14 | fallback: string, |
| 15 | ): string { |
| 16 | return typeof source[key] === 'string' ? String(source[key]) : fallback |
| 17 | } |
| 18 | |
| 19 | export function readNullableString( |
| 20 | source: Record<string, unknown>, |
no outgoing calls
no test coverage detected