diff --git a/src/content/docs/en/guides/typescript.mdx b/src/content/docs/en/guides/typescript.mdx index 78496cacd5d0f..6d3857ebd4ef4 100644 --- a/src/content/docs/en/guides/typescript.mdx +++ b/src/content/docs/en/guides/typescript.mdx @@ -235,6 +235,26 @@ type MyAttributes = astroHTML.JSX.ImgHTMLAttributes; ``` ::: +### Polymorphic type + + + +Astro includes a helper to make it easier to build components that can render as different HTML elements with full type safety. This is useful for components like `` that can render as either `` or `