(value: string, state: State)
| 201 | } |
| 202 | |
| 203 | function 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 | |
| 214 | const defaultLocales: Prompt.Prompt.DateOptions["locales"] = { |
| 215 | months: [ |
no test coverage detected
searching dependent graphs…