MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / check

Function check

packages/setupWizard/src/tabCheckbox.ts:112–116  ·  view source on GitHub ↗
(checked: boolean)

Source from the content-addressed store, hash-verified

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

Callers 1

tabCheckbox.tsFile · 0.85

Calls 1

isSelectableFunction · 0.85

Tested by

no test coverage detected