InterfaceTypeDeclaration
Wrapper for creating a named interface type declaration.
Properties for creating a named interface type declaration.
This is a combination of InterfaceDeclarationProps and TypeDeclarationProps.
import { InterfaceTypeDeclaration } from "@alloy-js/go";
<InterfaceTypeDeclaration alias doc={Children} name={string | Namekey} refkey={Refkey} refkey={Refkey} singleLine symbol={NamedTypeSymbol} typeParameters={TypeParameterProps[]} />import { InterfaceTypeDeclaration } from "@alloy-js/go/stc";
InterfaceTypeDeclaration({ alias: boolean, doc: Children, name: string | Namekey, refkey: Refkey, refkey: Refkey, singleLine: boolean, symbol: NamedTypeSymbol, typeParameters: TypeParameterProps[],}).children(children)| alias | optionalbooleanWhether the type is an alias |
| children | optionalChildren |
| children | optionalChildrenType expression |
| doc | optionalChildrenDocumentation comment |
| name | string | NamekeyType name |
| refkey | optionalRefkey |
| refkey | optionalRefkeyType refkey |
| singleLine | optionalbooleanWhether to render the interface in a single line.
This will only compile if |
| symbol | optional[unresolved link]Type symbol |
| typeParameters | optionalTypeParameterProps[]Type parameters |