(opts: T, propName: keyof T)
| 13 | } |
| 14 | |
| 15 | export function formatObjectValue<T>(opts: T, propName: keyof T) { |
| 16 | const description = opts[propName]; |
| 17 | return { |
| 18 | ...opts, |
| 19 | ...(typeof description === 'string' && { |
| 20 | [propName]: descriptionStyle(description), |
| 21 | }), |
| 22 | }; |
| 23 | } |
| 24 | |
| 25 | export function formatNestedValues<T>( |
| 26 | options: Record<string, T>, |
no test coverage detected