Function
unwrap
(wrapped: Config.Config.Wrap<A>)
Source from the content-addressed store, hash-verified
| 644 | * @internal |
| 645 | */ |
| 646 | export const unwrap = <A>(wrapped: Config.Config.Wrap<A>): Config.Config<A> => { |
| 647 | if (isConfig(wrapped)) { |
| 648 | return wrapped |
| 649 | } |
| 650 | return struct( |
| 651 | Object.fromEntries( |
| 652 | Object.entries(wrapped).map(([k, a]) => [k, unwrap(a as any)]) |
| 653 | ) |
| 654 | ) as any |
| 655 | } |
| 656 | |
| 657 | /** @internal */ |
| 658 | export const validate = dual< |
Callers
nothing calls this directly
Tested by
no test coverage detected