VariableDeclaration
import { VariableDeclaration } from "@alloy-js/go";
<VariableDeclaration const doc={Children} name={string | Namekey} refkey={Refkey} type={Children}> {children}</VariableDeclaration>import { VariableDeclaration } from "@alloy-js/go/stc";
VariableDeclaration({ const: boolean, doc: Children, name: string | Namekey, refkey: Refkey, type: Children,}).children(children)| children | optional Children | Initializer expression |
| const | optional boolean | Whether this is a const declaration |
| doc | optional Children | Documentation comment |
| name | string | Namekey | Variable name |
| refkey | optional Refkey | Variable refkey |
| type | optional Children | Type of the variable declaration |