(record: Record<string, unknown>, key: string)
| 669 | } |
| 670 | |
| 671 | function readRecordField(record: Record<string, unknown>, key: string): Record<string, unknown> { |
| 672 | const value = record[key]; |
| 673 | if (!value || typeof value !== 'object' || Array.isArray(value)) { |
| 674 | throw new Error(`Expected ${key} to be an object.`); |
| 675 | } |
| 676 | return value as Record<string, unknown>; |
| 677 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…