Add missing slot attribute to possible attributes on SVG elements (#4535)
This commit is contained in:
parent
b8a80bc42d
commit
ca28d7578b
2 changed files with 7 additions and 1 deletions
5
.changeset/stale-paws-rhyme.md
Normal file
5
.changeset/stale-paws-rhyme.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Add missing `slot` attributes to SVG definitions
|
3
packages/astro/astro-jsx.d.ts
vendored
3
packages/astro/astro-jsx.d.ts
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue