MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / isChecked

Function isChecked

packages/setupWizard/src/tabCheckbox.ts:104–106  ·  view source on GitHub ↗
(item: NormalizedChoice<Value> | Separator)

Source from the content-addressed store, hash-verified

102}
103
104function isChecked<Value>(item: NormalizedChoice<Value> | Separator): item is NormalizedChoice<Value> {
105 return !Separator.isSeparator(item) && item.checked;
106}
107
108function toggle<Value>(item: NormalizedChoice<Value> | Separator): NormalizedChoice<Value> | Separator {
109 return isSelectable(item) ? { ...item, checked: !item.checked } : item;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected