(record: Record<string, unknown>, key: string)
| 56 | } |
| 57 | |
| 58 | function stringField(record: Record<string, unknown>, key: string): string | undefined { |
| 59 | return nonEmptyString(record[key]); |
| 60 | } |
| 61 | |
| 62 | function nonEmptyString(value: unknown): string | undefined { |
| 63 | if (typeof value !== 'string') return undefined; |
no test coverage detected