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

Function handleRenderFloat

packages/effect/src/cli/Prompt.ts:3205–3213  ·  view source on GitHub ↗
(options: NumberOptionsReq)

Source from the content-addressed store, hash-verified

3203}
3204
3205const handleRenderFloat = (options: NumberOptionsReq) => {
3206 return (state: NumberState, action: Action<NumberState, number>) => {
3207 return Action.$match(action, {
3208 Beep: () => Effect.succeed(renderBeep),
3209 NextFrame: ({ state }) => renderNumberNextFrame(state, options),
3210 Submit: () => renderNumberSubmission(state, options)
3211 })
3212 }
3213}
3214
3215const handleProcessFloat = (options: NumberOptionsReq) => {
3216 return (input: Terminal.UserInput, state: NumberState) => {

Callers 1

NumberFunction · 0.85

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected