Skip to content

Commit

Permalink
fix(types): allow style to be an array in JSX (#2947)
Browse files Browse the repository at this point in the history
  • Loading branch information
kadiryazici authored Mar 1, 2021
1 parent 8ffcde2 commit 13c9d2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/runtime-dom/types/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,14 @@ interface AriaAttributes {
'aria-valuetext'?: string
}

// Vue's style normalization supports nested arrays
type StyleValue = string | CSSProperties | Array<StyleValue>

export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
innerHTML?: string

class?: any
style?: string | CSSProperties
style?: StyleValue

// Standard HTML Attributes
accesskey?: string
Expand Down

0 comments on commit 13c9d2c

Please sign in to comment.