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:
parent
c7b9b14a1e
commit
126cd8e83f
2 changed files with 6 additions and 1 deletions
5
.changeset/dull-days-grin.md
Normal file
5
.changeset/dull-days-grin.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Include missing `class:list` within `HTMLAttributes` type
|
2
packages/astro/types.d.ts
vendored
2
packages/astro/types.d.ts
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue