( record: UnknownRecord | undefined, field: string, )
| 321 | } |
| 322 | |
| 323 | function stringField( |
| 324 | record: UnknownRecord | undefined, |
| 325 | field: string, |
| 326 | ): string | undefined { |
| 327 | const value = record?.[field] |
| 328 | return typeof value === 'string' && value.length > 0 ? value : undefined |
| 329 | } |
| 330 | |
| 331 | function numberField( |
| 332 | record: UnknownRecord | undefined, |
no outgoing calls
no test coverage detected