Selaa lähdekoodia

fix(types): allow css variables in style binding (#5542)

Package 4 vuotta sitten
vanhempi
commit
9def7aa508
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      packages/runtime-dom/types/jsx.d.ts

+ 2 - 0
packages/runtime-dom/types/jsx.d.ts

@@ -40,6 +40,8 @@ export interface CSSProperties
    * For examples and more information, visit:
    * https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors
    */
+      
+  [v: `--${string}`]: string | number | undefined
 }
 
 type Booleanish = boolean | 'true' | 'false'