]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(types): revert class type restrictions
authorEvan You <yyx990803@gmail.com>
Mon, 13 Nov 2023 07:23:16 +0000 (15:23 +0800)
committerEvan You <yyx990803@gmail.com>
Mon, 13 Nov 2023 07:23:16 +0000 (15:23 +0800)
reverts #8012 due to breakage in downstream types

packages/runtime-dom/src/jsx.ts

index 08d9e2bec903ca528fc4ea6d3fea29d87c4d23c8..dfa4fc561c67103151b47a042c988b2ce1e433af 100644 (file)
@@ -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