MCPcopy Create free account
hub / github.com/effect-app/libs / unwrap

Function unwrap

repos/effect/packages/effect/src/Config.ts:479–488  ·  view source on GitHub ↗
(wrapped: Wrap<T>)

Source from the content-addressed store, hash-verified

477 }
478 const resolution = result.success
479 if (resolution._tag === "Absent") {
480 firstAbsent ??= resolution
481 } else {
482 InternalRecord.assignProperty(values, key, resolution.value)
483 hasInput = hasInput || resolution.hasInput
484 }
485 }
486 if (firstFailure !== undefined) {
487 return Effect.fail(evaluationFailure(firstFailure.error, hasInput))
488 }
489 if (firstAbsent !== undefined) {
490 return hasInput ? Effect.fail(evaluationFailure(firstAbsent.error, true)) : Effect.succeed(firstAbsent)
491 }

Callers

nothing calls this directly

Calls 5

isConfigFunction · 0.85
parseMethod · 0.80
makeFunction · 0.70
mapMethod · 0.65
pipeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…