(checked: boolean)
| 110 | } |
| 111 | |
| 112 | function check(checked: boolean) { |
| 113 | return function <Value>(item: NormalizedChoice<Value> | Separator): NormalizedChoice<Value> | Separator { |
| 114 | return isSelectable(item) ? { ...item, checked } : item; |
| 115 | }; |
| 116 | } |
| 117 | |
| 118 | function normalizeChoices<Value>( |
| 119 | choices: readonly (Separator | Value | Choice<Value>)[], |
no test coverage detected