Function
unwrap
(wrapped: Config.Config.Wrap<A>)
Source from the content-addressed store, hash-verified
| 631 | * @internal |
| 632 | */ |
| 633 | export const unwrap = <A>(wrapped: Config.Config.Wrap<A>): Config.Config<A> => { |
| 634 | if (isConfig(wrapped)) { |
| 635 | return wrapped |
| 636 | } |
| 637 | return struct( |
| 638 | Object.fromEntries( |
| 639 | Object.entries(wrapped).map(([k, a]) => [k, unwrap(a as any)]) |
| 640 | ) |
| 641 | ) as any |
| 642 | } |
| 643 | |
| 644 | /** @internal */ |
| 645 | export const validate = dual< |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…