瀏覽代碼

fix(types): style attribute svg (#12800)

Set style attribute on svg to use `StyleValue`
Blake Newman 3 年之前
父節點
當前提交
8e262618cd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      types/jsx.d.ts

+ 1 - 1
types/jsx.d.ts

@@ -731,7 +731,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