We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27e1e38 commit a001a20Copy full SHA for a001a20
packages/dts-test/tsx.test-d.tsx
@@ -15,6 +15,9 @@ expectType<JSX.Element>(<div style={[{ color: 'red' }]} />)
15
expectType<JSX.Element>(
16
<div style={[{ color: 'red' }, [{ fontSize: '1em' }]]} />
17
)
18
+expectType<JSX.Element>(
19
+ <div style={[undefined, {background: 'green'}]} />
20
+)
21
22
// @ts-expect-error unknown prop
23
;<div foo="bar" />
packages/vue/jsx-runtime/dom.d.ts
@@ -234,7 +234,7 @@ interface AriaAttributes {
234
}
235
236
// Vue's style normalization supports nested arrays
237
-export type StyleValue = string | CSSProperties | Array<StyleValue>
+export type StyleValue = undefined | string | CSSProperties | Array<StyleValue>
238
239
export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
240
innerHTML?: string
0 commit comments