(item: NormalizedChoice<Value> | Separator)
| 102 | } |
| 103 | |
| 104 | function isChecked<Value>(item: NormalizedChoice<Value> | Separator): item is NormalizedChoice<Value> { |
| 105 | return !Separator.isSeparator(item) && item.checked; |
| 106 | } |
| 107 | |
| 108 | function toggle<Value>(item: NormalizedChoice<Value> | Separator): NormalizedChoice<Value> | Separator { |
| 109 | return isSelectable(item) ? { ...item, checked: !item.checked } : item; |
nothing calls this directly
no outgoing calls
no test coverage detected