(item: NormalizedChoice<Value> | Separator)
| 106 | } |
| 107 | |
| 108 | function toggle<Value>(item: NormalizedChoice<Value> | Separator): NormalizedChoice<Value> | Separator { |
| 109 | return isSelectable(item) ? { ...item, checked: !item.checked } : item; |
| 110 | } |
| 111 | |
| 112 | function check(checked: boolean) { |
| 113 | return function <Value>(item: NormalizedChoice<Value> | Separator): NormalizedChoice<Value> | Separator { |
no test coverage detected