Explorar el Código

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

beary hace 5 años
padre
commit
b984d47ac4
Se han modificado 1 ficheros con 9 adiciones y 2 borrados
  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