Function
resolve
(
content: any,
config: C
)
Source from the content-addressed store, hash-verified
| 57 | config: C |
| 58 | ): Node[]; |
| 59 | export function resolve<C extends Config = Config>( |
| 60 | content: any, |
| 61 | config: C |
| 62 | ): any { |
| 63 | if (Array.isArray(content)) |
| 64 | return content.flatMap((child) => child.resolve(config)); |
| 65 | |
| 66 | return content.resolve(config); |
| 67 | } |
| 68 | |
| 69 | export function transform<C extends Config = Config>( |
| 70 | node: Node, |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…