Sfoglia il codice sorgente

fix(types): support correct types for style on svg elements (#6322)

JayMe DotDot 2 anni fa
parent
commit
364dc53c7c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/runtime-dom/src/jsx.ts

+ 1 - 1
packages/runtime-dom/src/jsx.ts

@@ -775,7 +775,7 @@ export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
    * @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
    * @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
    */
    */
   class?: any
   class?: any
-  style?: string | CSSProperties
+  style?: StyleValue
 
 
   color?: string
   color?: string
   height?: Numberish
   height?: Numberish