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

Function handleRenderFloat

packages/cli/src/internal/prompt/number.ts:299–307  ·  view source on GitHub ↗
(options: FloatOptions)

Source from the content-addressed store, hash-verified

297}
298
299function handleRenderFloat(options: FloatOptions) {
300 return (state: State, action: Prompt.Prompt.Action<State, number>) => {
301 return Action.$match(action, {
302 Beep: () => Effect.succeed(renderBeep),
303 NextFrame: ({ state }) => renderNextFrame(state, options),
304 Submit: () => renderSubmission(state, options)
305 })
306 }
307}
308
309function handleProcessFloat(options: FloatOptions) {
310 return (input: Terminal.UserInput, state: State) => {

Callers 1

floatFunction · 0.85

Calls 2

renderNextFrameFunction · 0.70
renderSubmissionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…