( nodes: any, options?: C )
| 75 | config?: C |
| 76 | ): RenderableTreeNode[]; |
| 77 | export function transform<C extends Config = Config>( |
| 78 | nodes: any, |
| 79 | options?: C |
| 80 | ): any { |
| 81 | const config = mergeConfig(options); |
| 82 | const content = resolve(nodes, config); |
| 83 | |
| 84 | if (Array.isArray(content)) |
| 85 | return content.flatMap((child) => child.transform(config)); |
| 86 | return content.transform(config); |
| 87 | } |
| 88 | |
| 89 | export function validate<C extends Config = Config>( |
| 90 | node: Node, |
no test coverage detected
searching dependent graphs…