UNPKG

@docuify/engine

Version:

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

13 lines (10 loc) 418 B
import { DocuifyNode } from '../base/types.js'; /** * Flattens a Docuify tree into a list of nodes. * Think of it like turning your majestic tree into a chainsawed list of lumber — useful, portable, and JSON-friendly. * * 🚫 Removes `.children` from all nodes to reduce bloat. * ✅ Preserves all other properties. */ declare function flattenTree(tree: DocuifyNode): DocuifyNode[]; export { flattenTree };