(value: string, state: DateState)
| 1837 | } |
| 1838 | |
| 1839 | const defaultDateProcessor = (value: string, state: DateState) => { |
| 1840 | if (/\d/.test(value)) { |
| 1841 | const typed = state.typed + value |
| 1842 | state.dateParts[state.cursor].setValue(typed) |
| 1843 | return Action.NextFrame({ |
| 1844 | state: { ...state, typed } |
| 1845 | }) |
| 1846 | } |
| 1847 | return Action.Beep() |
| 1848 | } |
| 1849 | |
| 1850 | const defaultLocales: DateOptionsReq["locales"] = { |
| 1851 | months: [ |
no test coverage detected