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

Function handleDateRender

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

Source from the content-addressed store, hash-verified

1868}
1869
1870const handleDateRender = (options: DateOptionsReq) => {
1871 return (state: DateState, action: Action<DateState, globalThis.Date>) => {
1872 return Action.$match(action, {
1873 Beep: () => Effect.succeed(renderBeep),
1874 NextFrame: ({ state }) => renderDateNextFrame(state, options),
1875 Submit: () => renderDateSubmission(state, options)
1876 })
1877 }
1878}
1879
1880const handleDateProcess = (options: DateOptionsReq) => {
1881 return (input: Terminal.UserInput, state: DateState) => {

Callers 1

DateFunction · 0.85

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected