Skip to content

VariableDeclaration

import { VariableDeclaration } from "@alloy-js/go";
<VariableDeclaration
const
doc={Children}
name={string | Namekey}
refkey={Refkey}
type={Children}
>
{children}
</VariableDeclaration>
childrenoptionalChildrenInitializer expression
constoptional booleanWhether this is a const declaration
docoptionalChildrenDocumentation comment
namestring | NamekeyVariable name
refkeyoptionalRefkeyVariable refkey
typeoptionalChildrenType of the variable declaration