File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ expectType<JSX.Element>(<div style={[{ color: 'red' }]} />)
15
15
expectType < JSX . Element > (
16
16
< div style = { [ { color : 'red' } , [ { fontSize : '1em' } ] ] } />
17
17
)
18
+ expectType < JSX . Element > (
19
+ < div style = { [ undefined , { background : 'green' } ] } />
20
+ )
18
21
19
22
// @ts -expect-error unknown prop
20
23
; < div foo = "bar" />
@@ -58,3 +61,4 @@ expectType<JSX.Element>(
58
61
)
59
62
// @ts -expect-error
60
63
; < Suspense onResolve = { 123 } />
64
+
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ interface AriaAttributes {
235
235
}
236
236
237
237
// Vue's style normalization supports nested arrays
238
- export type StyleValue = string | CSSProperties | Array < StyleValue >
238
+ export type StyleValue = undefined | string | CSSProperties | Array < StyleValue >
239
239
240
240
export interface HTMLAttributes extends AriaAttributes , EventHandlers < Events > {
241
241
innerHTML ?: string
You can’t perform that action at this time.
0 commit comments