Skip to content

render

import { render } from "@alloy-js/core";
function render(children: Children, options?: PrintTreeOptions): OutputDirectory;

Parameters

children

Children

optionsoptional

PrintTreeOptions

Options

printWidthoptionalnumber

The number of characters the printer will wrap on. Defaults to 100 characters.

tabWidthoptionalnumber

The number of spaces to use for indentation. Defaults to 2 spaces.

useTabsoptionalboolean

Whether to use tabs instead of spaces for indentation. Defaults to false.

Returns

OutputDirectory