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

Function handleRenderInteger

packages/effect/src/unstable/cli/Prompt.ts:2901–2909  ·  view source on GitHub ↗
(options: IntegerOptionsReq)

Source from the content-addressed store, hash-verified

2899}
2900
2901const handleRenderInteger = (options: IntegerOptionsReq) => {
2902 return (state: NumberState, action: Action<NumberState, number>) => {
2903 return Action.$match(action, {
2904 Beep: () => Effect.succeed(renderBeep),
2905 NextFrame: ({ state }) => renderNumberNextFrame(state, options),
2906 Submit: () => renderNumberSubmission(state, options)
2907 })
2908 }
2909}
2910
2911const handleProcessInteger = (options: IntegerOptionsReq) => {
2912 return (input: Terminal.UserInput, state: NumberState) => {

Callers 1

integerFunction · 0.85

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected