Skip to content

InterfaceDeclaration

Create a TypeScript interface declaration.

import { InterfaceDeclaration } from "@alloy-js/typescript";
<InterfaceDeclaration
extends={Children}
typeParameters={TypeParameterDescriptor[] | string[]}
/>
extendsoptionalChildren
typeParametersoptionalTypeParameterDescriptor[] | string[]

The generic type parameters of the interface.

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.