Ver Fonte

fix(types): revert class type restrictions

reverts #8012 due to breakage in downstream types
Evan You há 2 anos atrás
pai
commit
5d077c8754
1 ficheiros alterados com 1 adições e 7 exclusões
  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
   | CSSProperties
   | Array<StyleValue>
   | Array<StyleValue>
 
 
-export type ClassValue =
-  | undefined
-  | string
-  | Record<string | number, any>
-  | Array<ClassValue>
-
 export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
 export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
   innerHTML?: string
   innerHTML?: string
 
 
-  class?: ClassValue
+  class?: any
   style?: StyleValue
   style?: StyleValue
 
 
   // Standard HTML Attributes
   // Standard HTML Attributes