Skip to content

Commit

Permalink
fix type definition of IntrinsicAttributes's slot attribute (#11092)
Browse files Browse the repository at this point in the history
  • Loading branch information
duckycoding-dev authored May 21, 2024
1 parent df7e56c commit bfe9c73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/new-mice-occur.md
Original file line number Diff line number Diff line change
@@ -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`
2 changes: 1 addition & 1 deletion packages/astro/astro-jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ declare namespace astroHTML.JSX {
extends AstroBuiltinProps,
AstroBuiltinAttributes,
AstroClientDirectives {
slot?: string;
slot?: string | undefined | null;
children?: Children;
}

Expand Down

0 comments on commit bfe9c73

Please sign in to comment.