From bfe9c73536f0794e4f5ede5040adabbe0e705984 Mon Sep 17 00:00:00 2001 From: Ducky Coding <150606804+duckycoding-dev@users.noreply.github.com> Date: Tue, 21 May 2024 12:26:25 +0200 Subject: [PATCH] fix type definition of IntrinsicAttributes's slot attribute (#11092) --- .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; }