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 | optionalChildren | Type expression |
| doc | optionalChildren | Documentation comment |
| name | string | Namekey | Type name |
| refkey | optionalRefkey | Type refkey |
| symbol | optionalNamedTypeSymbol | Type symbol |
| typeParameters | optionalTypeParameterProps[] | Type parameters |