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

Function handleDateRender

packages/effect/src/unstable/cli/Prompt.ts:1708–1716  ·  view source on GitHub ↗
(options: DateOptionsReq)

Source from the content-addressed store, hash-verified

1706}
1707
1708const handleDateRender = (options: DateOptionsReq) => {
1709 return (state: DateState, action: Action<DateState, globalThis.Date>) => {
1710 return Action.$match(action, {
1711 Beep: () => Effect.succeed(renderBeep),
1712 NextFrame: ({ state }) => renderDateNextFrame(state, options),
1713 Submit: () => renderDateSubmission(state, options)
1714 })
1715 }
1716}
1717
1718const handleDateProcess = (options: DateOptionsReq) => {
1719 return (input: Terminal.UserInput, state: DateState) => {

Callers 1

dateFunction · 0.85

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected