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

Function processDateCursorRight

packages/effect/src/cli/Prompt.ts:1814–1826  ·  view source on GitHub ↗
(state: DateState)

Source from the content-addressed store, hash-verified

1812}
1813
1814const processDateCursorRight = (state: DateState) => {
1815 const next = state.dateParts[state.cursor].nextPart()
1816 if (Option.isSome(next)) {
1817 return Action.NextFrame({
1818 state: {
1819 ...state,
1820 typed: "",
1821 cursor: state.dateParts.indexOf(next.value)
1822 }
1823 })
1824 }
1825 return Action.Beep()
1826}
1827
1828const processDateNext = (state: DateState) => {
1829 const next = state.dateParts[state.cursor].nextPart()

Callers 1

handleDateProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected