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

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

JayMe DotDot 2 лет назад
Родитель
Сommit
364dc53c7c
1 измененных файлов с 1 добавлено и 1 удалено
  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