File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' astro ' : patch
3
+ ---
4
+
5
+ Fix missing ` is:inline ` type for the ` <slot /> ` element
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ declare namespace astroHTML.JSX {
36
36
AstroDefineVarsAttribute ;
37
37
type AstroStyleAttributes = import ( './dist/@types/astro.js' ) . AstroStyleAttributes &
38
38
AstroDefineVarsAttribute ;
39
+ type AstroSlotAttributes = import ( './dist/@types/astro.js' ) . AstroSlotAttributes ;
39
40
40
41
// This is an unfortunate use of `any`, but unfortunately we can't make a type that works for every framework
41
42
// without importing every single framework's types (which comes with its own set of problems).
@@ -1415,7 +1416,7 @@ declare namespace astroHTML.JSX {
1415
1416
ruby : HTMLAttributes ;
1416
1417
s : HTMLAttributes ;
1417
1418
samp : HTMLAttributes ;
1418
- slot : SlotHTMLAttributes ;
1419
+ slot : SlotHTMLAttributes & AstroSlotAttributes ;
1419
1420
script : ScriptHTMLAttributes & AstroScriptAttributes ;
1420
1421
section : HTMLAttributes ;
1421
1422
select : SelectHTMLAttributes ;
Original file line number Diff line number Diff line change @@ -132,6 +132,10 @@ export interface AstroScriptAttributes {
132
132
'is:inline' ?: boolean ;
133
133
}
134
134
135
+ export interface AstroSlotAttributes {
136
+ 'is:inline' ?: boolean ;
137
+ }
138
+
135
139
export interface AstroComponentMetadata {
136
140
displayName : string ;
137
141
hydrate ?: 'load' | 'idle' | 'visible' | 'media' | 'only' ;
You can’t perform that action at this time.
0 commit comments