File tree 2 files changed +4
-1
lines changed
2 files changed +4
-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" />
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ interface AriaAttributes {
234
234
}
235
235
236
236
// Vue's style normalization supports nested arrays
237
- export type StyleValue = string | CSSProperties | Array < StyleValue >
237
+ export type StyleValue = undefined | string | CSSProperties | Array < StyleValue >
238
238
239
239
export interface HTMLAttributes extends AriaAttributes , EventHandlers < Events > {
240
240
innerHTML ?: string
You can’t perform that action at this time.
0 commit comments