printTree
import { printTree } from "@alloy-js/core";
function printTree(tree: RenderedTextTree, options?: PrintTreeOptions): string;
Parameters
tree |
|
options | optional
|
Options
printWidth | optionalnumber The number of characters the printer will wrap on. Defaults to 100 characters. |
tabWidth | optionalnumber The number of spaces to use for indentation. Defaults to 2 spaces. |
useTabs | optionalboolean Whether to use tabs instead of spaces for indentation. Defaults to false. |
Returns
string