summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/new-mice-occur.md5
-rw-r--r--packages/astro/astro-jsx.d.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/new-mice-occur.md b/.changeset/new-mice-occur.md
new file mode 100644
index 000000000..266b54652
--- /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 22eccfcf3..a20baa508 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;
}