From b984d47ac43a0aae2db5556a138a256fb5533ced Mon Sep 17 00:00:00 2001 From: beary Date: Thu, 13 Aug 2020 03:50:11 +0800 Subject: [PATCH] fix(types/jsx): update innerHTML property in jsx typing (#1814) --- packages/runtime-dom/types/jsx.d.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/runtime-dom/types/jsx.d.ts b/packages/runtime-dom/types/jsx.d.ts index 2c9daff29..766b6ca75 100644 --- a/packages/runtime-dom/types/jsx.d.ts +++ b/packages/runtime-dom/types/jsx.d.ts @@ -246,7 +246,7 @@ interface AriaAttributes { } export interface HTMLAttributes extends AriaAttributes { - domPropsInnerHTML?: string + innerHTML?: string class?: any style?: string | CSSProperties @@ -735,7 +735,14 @@ export interface WebViewHTMLAttributes extends HTMLAttributes { } export interface SVGAttributes extends AriaAttributes { - domPropsInnerHTML?: string + innerHTML?: string + + /** + * SVG Styling Attributes + * @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling + */ + class?: any + style?: string | CSSProperties color?: string height?: number | string