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

Function succeed

packages/effect/src/Config.ts:964–966  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

962 * @since 2.0.0
963 */
964export function succeed<T>(value: T) {
965 return make(() => Effect.succeed(Result.succeed(value)))
966}
967
968/**
969 * Creates a config for a single string value.

Callers

nothing calls this directly

Calls 2

makeFunction · 0.70
succeedMethod · 0.45

Tested by

no test coverage detected