Skip to content

Commit

Permalink
fix(astro): add class:list to HTMLAttributes (#5284)
Browse files Browse the repository at this point in the history
  • Loading branch information
herteleo committed Nov 3, 2022
1 parent c7b9b14 commit 126cd8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dull-days-grin.md
@@ -0,0 +1,5 @@
---
'astro': patch
---

Include missing `class:list` within `HTMLAttributes` type
2 changes: 1 addition & 1 deletion packages/astro/types.d.ts
Expand Up @@ -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
Expand Down

0 comments on commit 126cd8e

Please sign in to comment.