0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-04-07 23:41:43 -05:00

fix type definition of IntrinsicAttributes's slot attribute (#11092)

This commit is contained in:
Ducky Coding 2024-05-21 12:26:25 +02:00 committed by GitHub
parent df7e56c9db
commit bfe9c73536
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -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`

View file

@ -22,7 +22,7 @@ declare namespace astroHTML.JSX {
extends AstroBuiltinProps,
AstroBuiltinAttributes,
AstroClientDirectives {
slot?: string;
slot?: string | undefined | null;
children?: Children;
}