InterfaceDeclaration
Create a TypeScript interface declaration.
import { InterfaceDeclaration } from "@alloy-js/typescript";
<InterfaceDeclaration extends={Children} typeParameters={TypeParameterDescriptor[] | string[]} />import { InterfaceDeclaration } from "@alloy-js/typescript/stc";
InterfaceDeclaration({ extends: Children, typeParameters: TypeParameterDescriptor[] | string[],}).children(children)| extends | optionalChildren |
| typeParameters | optionalTypeParameterDescriptor[] | string[]The generic type parameters of the interface. |
Remarks
Section titled “Remarks”This component will declare a symbol for this interface. The export and
default boolean props determine whether and how this symbol is exported
from the package.