( options: Record<string, T>, propName: keyof T, )
| 23 | } |
| 24 | |
| 25 | export function formatNestedValues<T>( |
| 26 | options: Record<string, T>, |
| 27 | propName: keyof T, |
| 28 | ) { |
| 29 | return Object.fromEntries( |
| 30 | Object.entries(options).map(([key, opts]) => [ |
| 31 | key, |
| 32 | formatObjectValue(opts, propName), |
| 33 | ]), |
| 34 | ); |
| 35 | } |
no test coverage detected