Skip to content

VariableDeclaration

import { VariableDeclaration } from "@alloy-js/go";
<VariableDeclaration
const
doc={Children}
name={string | Namekey}
refkey={Refkey}
type={Children}
>
{children}
</VariableDeclaration>
childrenoptional ChildrenInitializer expression
constoptional booleanWhether this is a const declaration
docoptional ChildrenDocumentation comment
namestring | NamekeyVariable name
refkeyoptional RefkeyVariable refkey
typeoptional ChildrenType of the variable declaration