summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Leonard Hertel <leonard.hertel@gmail.com> 2022-11-03 13:05:22 +0100
committerGravatar GitHub <noreply@github.com> 2022-11-03 08:05:22 -0400
commit126cd8e83fbed8d69320c55cad4bdaa2d6209de9 (patch)
tree0922fe4b5c3594f98cd2c4af193ac02f9d5a3b13
parentc7b9b14a1e8be22c21bd8b2982a340f101993924 (diff)
downloadastro-126cd8e83fbed8d69320c55cad4bdaa2d6209de9.tar.gz
astro-126cd8e83fbed8d69320c55cad4bdaa2d6209de9.tar.zst
astro-126cd8e83fbed8d69320c55cad4bdaa2d6209de9.zip
fix(astro): add `class:list` to `HTMLAttributes` (#5284)
-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