Add missing slot attribute to possible attributes on SVG elements (#4535)

This commit is contained in:
Erika 2022-08-29 12:06:50 -03:00 committed by GitHub
parent b8a80bc42d
commit ca28d7578b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Add missing `slot` attributes to SVG definitions

View file

@ -1007,7 +1007,7 @@ declare namespace astroHTML.JSX {
// - "string"
// - union of string literals
interface SVGAttributes extends AriaAttributes, DOMAttributes, AstroBuiltinAttributes {
// Attributes which also defined in HTMLAttributes
// Attributes which are also defined in HTMLAttributes
class?: string | undefined | null;
color?: string | undefined | null;
height?: number | string | undefined | null;
@ -1018,6 +1018,7 @@ declare namespace astroHTML.JSX {
method?: string | undefined | null;
min?: number | string | undefined | null;
name?: string | undefined | null;
slot?: string | undefined | null;
style?: string | Record<string, any> | undefined | null;
target?: string | undefined | null;
type?: string | undefined | null;