Просмотр исходного кода

fix(types/jsx): update innerHTML property in jsx typing (#1814)

beary 5 лет назад
Родитель
Сommit
b984d47ac4
1 измененных файлов с 9 добавлено и 2 удалено
  1. 9 2
      packages/runtime-dom/types/jsx.d.ts

+ 9 - 2
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