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

Function unwrap

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

Source from the content-addressed store, hash-verified

652 * @since 2.0.0
653 */
654export const unwrap = <T>(wrapped: Wrap<T>): Config<T> => {
655 if (isConfig(wrapped)) return wrapped
656 return all(Rec.map(wrapped as Record<string, Wrap<any>>, (config) => unwrap(config))) as Config<T>
657}
658
659// -----------------------------------------------------------------------------
660// schema

Callers

nothing calls this directly

Calls 3

isConfigFunction · 0.85
allFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected