소스 검색

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

Package 4 년 전
부모
커밋
9def7aa508
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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'