UNPKG

@docuify/engine

Version:

A flexible, pluggable engine for building and transforming documentation content from source files.

12 lines (9 loc) 347 B
import { DocuifyNode } from '../base/types.js'; /** * Recursively walks a DocuifyNode tree and applies a callback to each node. * * @param node - The root node to start from * @param visitor - The callback to run on each node */ declare function walkTree(node: DocuifyNode, visitor: (node: DocuifyNode) => void): void; export { walkTree };