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 | optionalboolean Whether the type is an alias |
children | optionalChildren Type expression |
doc | optionalChildren Documentation comment |
name | string | Namekey Type name |
refkey | optionalRefkey Type refkey |
symbol | optional[unresolved link] Type symbol |
typeParameters | optionalTypeParameterProps[] Type parameters |