Output
This component is the root component for all your emitted output. Place your
various SourceDirectory and SourceFile components inside
Output
to create directories and files in your output directory.
import { Output } from "@alloy-js/core";
<Output basePath="string" externals={SymbolCreator[]} nameConflictResolver={(name: string, symbols: any[]) => void} namePolicy={NamePolicy<string>} printWidth={number} tabWidth={number} useTabs> {children}</Output>
import { Output } from "@alloy-js/core/stc";
Output({ basePath: string, externals: SymbolCreator[], nameConflictResolver: (name: string, symbols: any[]) => void, namePolicy: NamePolicy<string>, printWidth: number, tabWidth: number, useTabs: boolean,}).children(children)
Props
basePath | optionalstring The base path for the output contents. Defaults to ”.“ |
children | optionalChildren |
externals | optionalSymbolCreator[] External libraries whose symbols should be available for reference. |
nameConflictResolver | optional(name: string, symbols: any[]) => void Policy for handling multiple symbols declared with the same name. |
namePolicy | optionalNamePolicy context interface<string> Name policy to use for this output. |
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. |