fix(types): revert class type restrictions

reverts #8012 due to breakage in downstream types
This commit is contained in:
Evan You 2023-11-13 15:23:16 +08:00
parent fc7902982a
commit 5d077c8754
1 changed files with 1 additions and 7 deletions

View 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