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

Function defaultProcessor

packages/cli/src/internal/prompt/date.ts:203–212  ·  view source on GitHub ↗
(value: string, state: State)

Source from the content-addressed store, hash-verified

201}
202
203function defaultProcessor(value: string, state: State) {
204 if (/\d/.test(value)) {
205 const typed = state.typed + value
206 state.dateParts[state.cursor].setValue(typed)
207 return Action.NextFrame({
208 state: { ...state, typed }
209 })
210 }
211 return Action.Beep()
212}
213
214const defaultLocales: Prompt.Prompt.DateOptions["locales"] = {
215 months: [

Callers 1

handleProcessFunction · 0.70

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…