TypeDeclaration
import { TypeDeclaration } from "@alloy-js/go";
<TypeDeclaration alias doc={Children} name={string | Namekey} refkey={Refkey} symbol={NamedTypeSymbol} typeParameters={TypeParameterProps[]}> {children}</TypeDeclaration>import { TypeDeclaration } from "@alloy-js/go/stc";
TypeDeclaration({ alias: boolean, doc: Children, name: string | Namekey, refkey: Refkey, symbol: NamedTypeSymbol, typeParameters: TypeParameterProps[],}).children(children)| alias | optionalbooleanWhether the type is an alias |
| children | optionalChildrenType expression |
| doc | optionalChildrenDocumentation comment |
| name | string | NamekeyType name |
| refkey | optionalRefkeyType refkey |
| symbol | optional[unresolved link]Type symbol |
| typeParameters | optionalTypeParameterProps[]Type parameters |