Forráskód Böngészése

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

Package 4 éve
szülő
commit
9def7aa508
1 módosított fájl, 2 hozzáadás és 0 törlés
  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'