Skip to content

TypeDeclaration

import { TypeDeclaration } from "@alloy-js/go";
<TypeDeclaration
alias
doc={Children}
name={string | Namekey}
refkey={Refkey}
symbol={NamedTypeSymbol}
typeParameters={TypeParameterProps[]}
>
{children}
</TypeDeclaration>
aliasoptional booleanWhether the type is an alias
childrenoptionalChildrenType expression
docoptionalChildrenDocumentation comment
namestring | NamekeyType name
refkeyoptionalRefkeyType refkey
symboloptionalNamedTypeSymbolType symbol
typeParametersoptionalTypeParameterProps[]Type parameters