From 126cd8e83fbed8d69320c55cad4bdaa2d6209de9 Mon Sep 17 00:00:00 2001 From: Leonard Hertel Date: Thu, 3 Nov 2022 13:05:22 +0100 Subject: [PATCH] fix(astro): add `class:list` to `HTMLAttributes` (#5284) --- .changeset/dull-days-grin.md | 5 +++++ packages/astro/types.d.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/dull-days-grin.md diff --git a/.changeset/dull-days-grin.md b/.changeset/dull-days-grin.md new file mode 100644 index 0000000000..6876d2a83e --- /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 d3e30c12e8..a8ad0267b2 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