Skip to content

VariableDeclaration

import { VariableDeclaration } from "@alloy-js/go";
<VariableDeclaration
const
doc={Children}
name={string | Namekey}
refkey={Refkey}
type={Children}
>
{children}
</VariableDeclaration>
childrenoptionalChildren

Initializer expression

constoptionalboolean

Whether this is a const declaration

docoptionalChildren

Documentation comment

namestring | Namekey

Variable name

refkeyoptionalRefkey

Variable refkey

typeoptionalChildren

Type of the variable declaration