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 | optionalChildren Initializer expression |
const | optionalboolean Whether this is a |
doc | optionalChildren Documentation comment |
name | string | Namekey Variable name |
refkey | optionalRefkey Variable refkey |
type | optionalChildren Type of the variable declaration |