From 13c9d2ca82d60652ef19fe055ecbe0d05134007b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kadir=20Yaz=C4=B1c=C4=B1?= <47540799+kadiryazici@users.noreply.github.com> Date: Mon, 1 Mar 2021 20:29:13 +0300 Subject: [PATCH] fix(types): allow style to be an array in JSX (#2947) --- packages/runtime-dom/types/jsx.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/runtime-dom/types/jsx.d.ts b/packages/runtime-dom/types/jsx.d.ts index 8a2b17f0..f070ffdc 100644 --- a/packages/runtime-dom/types/jsx.d.ts +++ b/packages/runtime-dom/types/jsx.d.ts @@ -245,11 +245,14 @@ interface AriaAttributes { 'aria-valuetext'?: string } +// Vue's style normalization supports nested arrays +type StyleValue = string | CSSProperties | Array + export interface HTMLAttributes extends AriaAttributes, EventHandlers { innerHTML?: string class?: any - style?: string | CSSProperties + style?: StyleValue // Standard HTML Attributes accesskey?: string