Convert a rendered text tree to source directories and files. Will ensure
that all scheduled jobs are completed before returning.
import { sourceFilesForTree } from "@alloy-js/core";
function sourceFilesForTree(tree: RenderedTextTree, options?: PrintTreeOptions): OutputDirectory;
| tree | RenderedTextTree | |
| options | optional PrintTreeOptions | |
| insertFinalNewLine | optional boolean | If files should end with a final new line. |
| noFlush | optional boolean | Skip flushing scheduled jobs before printing. |
| printWidth | optional number | The number of characters the printer will wrap on. Defaults to 100 characters. |
| tabWidth | optional number | The number of spaces to use for indentation. Defaults to 2 spaces. |
| useTabs | optional boolean | Whether to use tabs instead of spaces for indentation. Defaults to false. |
OutputDirectory