renderAsync
import { renderAsync } from "@alloy-js/core";
function renderAsync(children: Children, options?: PrintTreeOptions): Promise<OutputDirectory>;Parameters
Section titled “Parameters”| children |
|
| options | optional
|
Options
Section titled “Options”| insertFinalNewLine | optionalbooleanIf files should end with a final new line. |
| printWidth | optionalnumberThe number of characters the printer will wrap on. Defaults to 100 characters. |
| tabWidth | optionalnumberThe number of spaces to use for indentation. Defaults to 2 spaces. |
| useTabs | optionalbooleanWhether to use tabs instead of spaces for indentation. Defaults to false. |
Returns
Section titled “Returns”Promise<OutputDirectory>