fix(cli): drop unused export from tree-picker toggleSelectAllVisible

Knip flagged the export as unused; the function is only consumed by the
internal reducer via the 'toggle-select-all-visible' command, so demote
it to a module-local helper to keep CI's dead-code check green.
This commit is contained in:
Andrey Avtomonov 2026-05-14 14:18:50 +02:00
parent aeef02b52e
commit ec864ab45b

View file

@ -362,7 +362,7 @@ export function selectNone(state: PickerState): PickerState {
return cloneState(state, { checked: new Set(), transientHint: null });
}
export function toggleSelectAllVisible(state: PickerState): PickerState {
function toggleSelectAllVisible(state: PickerState): PickerState {
const next = selectAllVisible(state);
const unchanged =
next.checked.size === state.checked.size && [...next.checked].every((id) => state.checked.has(id));