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 | optional boolean | Whether the type is an alias |
| children | optional Children | Type expression |
| doc | optional Children | Documentation comment |
| name | string | Namekey | Type name |
| refkey | optional Refkey | Type refkey |
| symbol | optional NamedTypeSymbol | Type symbol |
| typeParameters | optional TypeParameterProps[] | Type parameters |