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

Function handleRenderInteger

packages/effect/src/cli/Prompt.ts:3132–3140  ·  view source on GitHub ↗
(options: IntOptionsReq)

Source from the content-addressed store, hash-verified

3130}
3131
3132const 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
3142const handleProcessInteger = (options: IntOptionsReq) => {
3143 return (input: Terminal.UserInput, state: NumberState) => {

Callers 1

IntFunction · 0.85

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected