Skip to content

Commit 13c9d2c

Browse files
authored
fix(types): allow style to be an array in JSX (#2947)
1 parent 8ffcde2 commit 13c9d2c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/runtime-dom/types/jsx.d.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,14 @@ interface AriaAttributes {
245245
'aria-valuetext'?: string
246246
}
247247

248+
// Vue's style normalization supports nested arrays
249+
type StyleValue = string | CSSProperties | Array<StyleValue>
250+
248251
export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
249252
innerHTML?: string
250253

251254
class?: any
252-
style?: string | CSSProperties
255+
style?: StyleValue
253256

254257
// Standard HTML Attributes
255258
accesskey?: string

0 commit comments

Comments
 (0)