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[]} insertFinalNewLine 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[], insertFinalNewLine: boolean, nameConflictResolver: (name: string, symbols: any[]) => void, namePolicy: NamePolicy<string>, printWidth: number, tabWidth: number, useTabs: boolean,}).children(children)| basePath | optionalstringThe base path for the output contents. Defaults to ”.“ |
| children | optionalChildren |
| externals | optionalSymbolCreator[]External libraries whose symbols should be available for reference. |
| insertFinalNewLine | optionalbooleanIf files should end with a final new line. |
| nameConflictResolver | optional(name: string, symbols: any[]) => voidPolicy for handling multiple symbols declared with the same name. |
| namePolicy | optionalNamePolicy context interface<string>Name policy to use for this output. |
| 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. |