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
childrenoptional ChildrenType expression
docoptional ChildrenDocumentation comment
namestring | NamekeyType name
refkeyoptional RefkeyType refkey
symboloptional NamedTypeSymbolType symbol
typeParametersoptional TypeParameterProps[]Type parameters