Browse Source

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

Package 4 years ago
parent
commit
9def7aa508
1 changed files with 2 additions and 0 deletions
  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:
    * For examples and more information, visit:
    * https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors
    * https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors
    */
    */
+      
+  [v: `--${string}`]: string | number | undefined
 }
 }
 
 
 type Booleanish = boolean | 'true' | 'false'
 type Booleanish = boolean | 'true' | 'false'