From 23c4c6c850a43ce82ebd0b6b591c8c1aefb7cff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kadir=20Yaz=C4=B1c=C4=B1?= <47540799+kadiryazici@users.noreply.github.com> Date: Tue, 5 Jan 2021 22:29:49 +0300 Subject: [PATCH 1/2] update jsx.d.ts Vue supports array of string and CssProperties in style attribute. --- packages/runtime-dom/types/jsx.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-dom/types/jsx.d.ts b/packages/runtime-dom/types/jsx.d.ts index f0c426009de..3fedbac3814 100644 --- a/packages/runtime-dom/types/jsx.d.ts +++ b/packages/runtime-dom/types/jsx.d.ts @@ -249,7 +249,7 @@ export interface HTMLAttributes extends AriaAttributes, EventHandlers { innerHTML?: string class?: any - style?: string | CSSProperties + style?: string | CSSProperties | Array // Standard HTML Attributes accesskey?: string From bc1e6e3627fd490af5a63a2a3d6b15054e1691dd Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 1 Mar 2021 12:28:52 -0500 Subject: [PATCH 2/2] Update jsx.d.ts --- 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 3fedbac3814..c03a52f6b6c 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 | Array + style?: StyleValue // Standard HTML Attributes accesskey?: string