@triviality/core
Version:
Purely typed service container
18 lines (17 loc) • 701 B
TypeScript
/**
* Refactored version of https://gist.github.com/antonmedv/2d2d478a41d7fcbc1bcb Anton Medvedev
*
* SELECT_________________
* / \ \
* .___ FROM JOIN
* / \ | / \
* a city_name people address ON
* |
* =___________
* / \
* .____ .
* / \ / \
* p address_id a id
*
*/
export declare function drawTree<T>(initial: T, getTitle: ((node: T) => string), getNodes: ((node: T) => T[])): string;