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:
parent
df7e56c9db
commit
bfe9c73536
2 changed files with 6 additions and 1 deletions
5
.changeset/new-mice-occur.md
Normal file
5
.changeset/new-mice-occur.md
Normal 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`
|
2
packages/astro/astro-jsx.d.ts
vendored
2
packages/astro/astro-jsx.d.ts
vendored
|
@ -22,7 +22,7 @@ declare namespace astroHTML.JSX {
|
|||
extends AstroBuiltinProps,
|
||||
AstroBuiltinAttributes,
|
||||
AstroClientDirectives {
|
||||
slot?: string;
|
||||
slot?: string | undefined | null;
|
||||
children?: Children;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue