MCPcopy Create free account
hub / github.com/Effect-TS/effect / processMultiSelectCursorDown

Function processMultiSelectCursorDown

packages/effect/src/cli/Prompt.ts:2871–2874  ·  view source on GitHub ↗
(state: MultiSelectState, totalChoices: number)

Source from the content-addressed store, hash-verified

2869}
2870
2871const processMultiSelectCursorDown = (state: MultiSelectState, totalChoices: number) => {
2872 const newIndex = (state.index + 1) % totalChoices
2873 return Effect.succeed(Action.NextFrame({ state: { ...state, index: newIndex } }))
2874}
2875
2876const processSpace = <A>(
2877 state: MultiSelectState,

Callers 1

handleMultiSelectProcessFunction · 0.85

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected