VarDeclaration
import { VarDeclaration } from "@alloy-js/typescript";
<VarDeclaration const default doc={Children} export flags={OutputSymbolFlags} initializer={Children} kind={"type" | "value"} let metadata={Record<string, unknown>} name="string" refkey={Refkey | Refkey[]} type={Children} var />
import { VarDeclaration } from "@alloy-js/typescript/stc";
VarDeclaration({ const: boolean, default: boolean, doc: Children, export: boolean, flags: OutputSymbolFlags, initializer: Children, kind: "type" | "value", let: boolean, metadata: Record<string, unknown>, name: string, refkey: Refkey | Refkey[], type: Children, var: boolean,}).children(children)
Props
children | optionalChildren |
const | optionalboolean |
default | optionalboolean Whether this is the default export of the module. |
doc | optionalChildren Documentation for this declaration |
export | optionalboolean Whether to export this declaration from the module. |
flags | optionalOutputSymbolFlags Flags for the symbol created by this component. |
initializer | optionalChildren |
kind | optional”type” | “value” Whether this is a declaration of a type (e.g. interface, type alias) or a value (e.g. var, const, let). |
let | optionalboolean |
metadata | optionalRecord<string, unknown> Arbitrary metadata about this declaration. |
name | string The base name of this declaration. May change depending on naming policy and any conflicts. |
refkey | optionalRefkey | Refkey[] The refkey or array of refkeys for this declaration. |
type | optionalChildren |
var | optionalboolean |