Просмотр исходного кода

fix(types): revert class type restrictions

reverts #8012 due to breakage in downstream types
Evan You 2 лет назад
Родитель
Сommit
5d077c8754
1 измененных файлов с 1 добавлено и 7 удалено
  1. 1 7
      packages/runtime-dom/src/jsx.ts

+ 1 - 7
packages/runtime-dom/src/jsx.ts

@@ -252,16 +252,10 @@ export type StyleValue =
   | CSSProperties
   | Array<StyleValue>
 
-export type ClassValue =
-  | undefined
-  | string
-  | Record<string | number, any>
-  | Array<ClassValue>
-
 export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
   innerHTML?: string
 
-  class?: ClassValue
+  class?: any
   style?: StyleValue
 
   // Standard HTML Attributes