(options: IntOptionsReq)
| 3130 | } |
| 3131 | |
| 3132 | const handleRenderInteger = (options: IntOptionsReq) => { |
| 3133 | return (state: NumberState, action: Action<NumberState, number>) => { |
| 3134 | return Action.$match(action, { |
| 3135 | Beep: () => Effect.succeed(renderBeep), |
| 3136 | NextFrame: ({ state }) => renderNumberNextFrame(state, options), |
| 3137 | Submit: () => renderNumberSubmission(state, options) |
| 3138 | }) |
| 3139 | } |
| 3140 | } |
| 3141 | |
| 3142 | const handleProcessInteger = (options: IntOptionsReq) => { |
| 3143 | return (input: Terminal.UserInput, state: NumberState) => { |