From ca28d7578b7168fbc407132dc9a0c4115e1be878 Mon Sep 17 00:00:00 2001 From: Erika <3019731+Princesseuh@users.noreply.github.com> Date: Mon, 29 Aug 2022 12:06:50 -0300 Subject: [PATCH] Add missing slot attribute to possible attributes on SVG elements (#4535) --- .changeset/stale-paws-rhyme.md | 5 +++++ packages/astro/astro-jsx.d.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/stale-paws-rhyme.md 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 | undefined | null; target?: string | undefined | null; type?: string | undefined | null;