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

Function renderNumberOutput

packages/effect/src/unstable/cli/Prompt.ts:2812–2822  ·  view source on GitHub ↗
(
  state: NumberState,
  leadingSymbol: string,
  trailingSymbol: string,
  options: IntegerOptionsReq,
  renderOptions?: RenderOptions | undefined,
  submitted: boolean = false
)

Source from the content-addressed store, hash-verified

2810}
2811
2812const renderNumberOutput = (
2813 state: NumberState,
2814 leadingSymbol: string,
2815 trailingSymbol: string,
2816 options: IntegerOptionsReq,
2817 renderOptions?: RenderOptions | undefined,
2818 submitted: boolean = false
2819) => {
2820 const value = renderNumberInput(state, submitted, renderOptions)
2821 return renderPrompt(value, options.message, leadingSymbol, trailingSymbol, renderOptions)
2822}
2823
2824const renderNumberNextFrame = Effect.fnUntraced(function*(state: NumberState, options: IntegerOptionsReq) {
2825 const figures = yield* platformFigures

Callers 2

handleNumberClearFunction · 0.85
Prompt.tsFile · 0.85

Calls 2

renderNumberInputFunction · 0.85
renderPromptFunction · 0.85

Tested by

no test coverage detected