0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

fix(astro): add class:list to HTMLAttributes (#5284)

This commit is contained in:
Leonard Hertel 2022-11-03 13:05:22 +01:00 committed by GitHub
parent c7b9b14a1e
commit 126cd8e83f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Include missing `class:list` within `HTMLAttributes` type

View file

@ -6,7 +6,7 @@ export type HTMLTag = keyof astroHTML.JSX.DefinedIntrinsicElements;
/** The built-in attributes for any known HTML or SVG element name */ /** The built-in attributes for any known HTML or SVG element name */
export type HTMLAttributes<Tag extends HTMLTag> = Omit< export type HTMLAttributes<Tag extends HTMLTag> = Omit<
astroHTML.JSX.IntrinsicElements[Tag], astroHTML.JSX.IntrinsicElements[Tag],
keyof AstroBuiltinAttributes keyof Omit<AstroBuiltinAttributes, 'class:list'>
>; >;
// TODO: Enable generic/polymorphic types once compiler output stabilizes in the Language Server // TODO: Enable generic/polymorphic types once compiler output stabilizes in the Language Server