summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/dull-days-grin.md5
-rw-r--r--packages/astro/types.d.ts2
2 files changed, 6 insertions, 1 deletions
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<Tag extends HTMLTag> = Omit<
astroHTML.JSX.IntrinsicElements[Tag],
- keyof AstroBuiltinAttributes
+ keyof Omit<AstroBuiltinAttributes, 'class:list'>
>;
// TODO: Enable generic/polymorphic types once compiler output stabilizes in the Language Server