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

Function succeed

packages/effect/src/unstable/cli/Prompt.ts:1245–1250  ·  view source on GitHub ↗
(value: A)

Source from the content-addressed store, hash-verified

1243 * @since 4.0.0
1244 */
1245export const succeed = <A>(value: A): Prompt<A> => {
1246 const op = Object.create(proto)
1247 op._tag = "Succeed"
1248 op.value = value
1249 return op
1250}
1251
1252/**
1253 * Creates a text-entry prompt that echoes input and returns the submitted

Callers 3

allFunction · 0.70
Prompt.tsFile · 0.70
allTupledFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected