(value: string, state: DateState)
| 1675 | } |
| 1676 | |
| 1677 | const defaultDateProcessor = (value: string, state: DateState) => { |
| 1678 | if (/\d/.test(value)) { |
| 1679 | const typed = state.typed + value |
| 1680 | state.dateParts[state.cursor].setValue(typed) |
| 1681 | return Action.NextFrame({ |
| 1682 | state: { ...state, typed } |
| 1683 | }) |
| 1684 | } |
| 1685 | return Action.Beep() |
| 1686 | } |
| 1687 | |
| 1688 | const defaultLocales: DateOptionsReq["locales"] = { |
| 1689 | months: [ |
no test coverage detected