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

Function succeed

packages/effect/src/SchemaGetter.ts:121–123  ·  view source on GitHub ↗
(t: T)

Source from the content-addressed store, hash-verified

119 * @since 4.0.0
120 */
121export function succeed<const T, E>(t: T): Getter<T, E> {
122 return new Getter(() => Effect.succeedSome(t))
123}
124
125/**
126 * Creates a getter that always fails with the given issue.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected