UNPKG

@lukeaus/plain-tree

Version:

A plain tree with a bunch of tree tools

6 lines (5 loc) 289 B
import { SerializedNode } from './types'; import Node from './Node'; export declare const nodeToJsonFormatter: (node: Node) => SerializedNode; export declare const widthsByHeight: (node: Node) => number[]; export declare const flattenByHeight: (node: Node, fn?: Function) => any[][];