diff --git a/.changeset/dull-days-grin.md b/.changeset/dull-days-grin.md new file mode 100644 index 000000000..6876d2a83 --- /dev/null +++ b/.changeset/dull-days-grin.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Include missing `class:list` within `HTMLAttributes` type diff --git a/packages/astro/types.d.ts b/packages/astro/types.d.ts index d3e30c12e..a8ad0267b 100644 --- a/packages/astro/types.d.ts +++ b/packages/astro/types.d.ts @@ -6,7 +6,7 @@ export type HTMLTag = keyof astroHTML.JSX.DefinedIntrinsicElements; /** The built-in attributes for any known HTML or SVG element name */ export type HTMLAttributes = Omit< astroHTML.JSX.IntrinsicElements[Tag], - keyof AstroBuiltinAttributes + keyof Omit >; // TODO: Enable generic/polymorphic types once compiler output stabilizes in the Language Server