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

Function handleRender

packages/cli/src/internal/prompt/date.ts:234–242  ·  view source on GitHub ↗
(options: DateOptions)

Source from the content-addressed store, hash-verified

232}
233
234function handleRender(options: DateOptions) {
235 return (state: State, action: Prompt.Prompt.Action<State, globalThis.Date>) => {
236 return Action.$match(action, {
237 Beep: () => Effect.succeed(renderBeep),
238 NextFrame: ({ state }) => renderNextFrame(state, options),
239 Submit: () => renderSubmission(state, options)
240 })
241 }
242}
243
244function handleProcess(options: DateOptions) {
245 return (input: Terminal.UserInput, state: State) => {

Callers 1

dateFunction · 0.70

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…