Skip to content

Commit

Permalink
fix(types): revert class type restrictions
Browse files Browse the repository at this point in the history
reverts #8012 due to breakage in downstream types
  • Loading branch information
yyx990803 committed Nov 13, 2023
1 parent fc79029 commit 5d077c8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/runtime-dom/src/jsx.ts
Expand Up @@ -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
Expand Down

0 comments on commit 5d077c8

Please sign in to comment.