summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Erika <3019731+Princesseuh@users.noreply.github.com> 2022-08-29 12:06:50 -0300
committerGravatar GitHub <noreply@github.com> 2022-08-29 12:06:50 -0300
commitca28d7578b7168fbc407132dc9a0c4115e1be878 (patch)
treef2e6d97b92609a967c42b9ef01b3fb970b7cb54f
parentb8a80bc42d5a254a66c32761e842841955c01450 (diff)
downloadastro-ca28d7578b7168fbc407132dc9a0c4115e1be878.tar.gz
astro-ca28d7578b7168fbc407132dc9a0c4115e1be878.tar.zst
astro-ca28d7578b7168fbc407132dc9a0c4115e1be878.zip
Add missing slot attribute to possible attributes on SVG elements (#4535)
Diffstat (limited to '')
-rw-r--r--.changeset/stale-paws-rhyme.md5
-rw-r--r--packages/astro/astro-jsx.d.ts3
2 files changed, 7 insertions, 1 deletions
diff --git a/.changeset/stale-paws-rhyme.md b/.changeset/stale-paws-rhyme.md
new file mode 100644
index 000000000..e174484c0
--- /dev/null
+++ b/.changeset/stale-paws-rhyme.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Add missing `slot` attributes to SVG definitions
diff --git a/packages/astro/astro-jsx.d.ts b/packages/astro/astro-jsx.d.ts
index 27a37bd42..893b92b2f 100644
--- a/packages/astro/astro-jsx.d.ts
+++ b/packages/astro/astro-jsx.d.ts
@@ -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;