From: Kadir Yazıcı <47540799+kadiryazici@users.noreply.github.com> Date: Mon, 1 Mar 2021 17:29:13 +0000 (+0300) Subject: fix(types): allow style to be an array in JSX (#2947) X-Git-Tag: v3.0.8~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13c9d2ca82d60652ef19fe055ecbe0d05134007b;p=thirdparty%2Fvuejs%2Fcore.git fix(types): allow style to be an array in JSX (#2947) --- diff --git a/packages/runtime-dom/types/jsx.d.ts b/packages/runtime-dom/types/jsx.d.ts index 8a2b17f005..f070ffdc87 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