( record: Record<string, unknown> | undefined, key: string )
| 46 | } |
| 47 | |
| 48 | export function getStringProp( |
| 49 | record: Record<string, unknown> | undefined, |
| 50 | key: string |
| 51 | ): string | undefined { |
| 52 | const value = record?.[key] |
| 53 | return typeof value === 'string' ? value : undefined |
| 54 | } |
| 55 | |
| 56 | export function getNumberProp( |
| 57 | record: Record<string, unknown> | undefined, |
no outgoing calls
no test coverage detected