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

Function handleRenderFloat

packages/effect/src/unstable/cli/Prompt.ts:2974–2982  ·  view source on GitHub ↗
(options: FloatOptionsReq)

Source from the content-addressed store, hash-verified

2972}
2973
2974const handleRenderFloat = (options: FloatOptionsReq) => {
2975 return (state: NumberState, action: Action<NumberState, number>) => {
2976 return Action.$match(action, {
2977 Beep: () => Effect.succeed(renderBeep),
2978 NextFrame: ({ state }) => renderNumberNextFrame(state, options),
2979 Submit: () => renderNumberSubmission(state, options)
2980 })
2981 }
2982}
2983
2984const handleProcessFloat = (options: FloatOptionsReq) => {
2985 return (input: Terminal.UserInput, state: NumberState) => {

Callers 1

floatFunction · 0.85

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected