From d6fcb4ca7c5d89286ddab7161bff6603a86ce1b6 Mon Sep 17 00:00:00 2001 From: Ducky Date: Fri, 17 May 2024 23:23:32 +0200 Subject: [PATCH] fix type definition of IntrinsicAttributes's slot attribute --- .changeset/new-mice-occur.md | 5 +++++ packages/astro/astro-jsx.d.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/new-mice-occur.md diff --git a/.changeset/new-mice-occur.md b/.changeset/new-mice-occur.md new file mode 100644 index 000000000000..266b54652c9d --- /dev/null +++ b/.changeset/new-mice-occur.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Change `slot` attribute of `IntrinsicAttributes` to match the definition of `HTMLAttributes`'s own `slot` attribute of type `string | undefined | null` diff --git a/packages/astro/astro-jsx.d.ts b/packages/astro/astro-jsx.d.ts index 22eccfcf3673..a20baa508611 100644 --- a/packages/astro/astro-jsx.d.ts +++ b/packages/astro/astro-jsx.d.ts @@ -22,7 +22,7 @@ declare namespace astroHTML.JSX { extends AstroBuiltinProps, AstroBuiltinAttributes, AstroClientDirectives { - slot?: string; + slot?: string | undefined | null; children?: Children; }