fix(types): allow style to be an array in JSX (#2947)

This commit is contained in:
Kadir Yazıcı 2021-03-01 20:29:13 +03:00 committed by GitHub
parent 8ffcde2836
commit 13c9d2ca82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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