Skip to content

Commit

Permalink
fix(astro): add class:list to HTMLAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
herteleo committed Nov 2, 2022
1 parent a558cf3 commit 99a9452
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Include missing `class:list` within `HTMLAttributes` type
2 changes: 1 addition & 1 deletion packages/astro/types.d.ts
Original file line number Diff line number Diff line change
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 99a9452

Please sign in to comment.