Explorar o código

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

JayMe DotDot %!s(int64=2) %!d(string=hai) anos
pai
achega
364dc53c7c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
    */
   class?: any
-  style?: string | CSSProperties
+  style?: StyleValue
 
   color?: string
   height?: Numberish