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

Function succeed

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

Source from the content-addressed store, hash-verified

1116 * @since 2.0.0
1117 */
1118export function succeed<T>(value: T) {
1119 return make(() => Effect.succeed(resolved(value, false)))
1120}
1121
1122/**
1123 * Creates a config for a single string value.

Callers

nothing calls this directly

Calls 3

makeFunction · 0.70
resolvedFunction · 0.70
succeedMethod · 0.45

Tested by

no test coverage detected