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; }