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

Function unwrap

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

Source from the content-addressed store, hash-verified

631 * @since 2.0.0
632 */
633export const unwrap = <T>(wrapped: Wrap<T>): Config<T> => {
634 if (isConfig(wrapped)) return wrapped
635 return all(Rec.map(wrapped as Record<string, Wrap<any>>, (config) => unwrap(config))) as Config<T>
636}
637
638// -----------------------------------------------------------------------------
639// schema

Callers

nothing calls this directly

Calls 3

isConfigFunction · 0.85
allFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected