Skip to content

Commit

Permalink
feat(jsx): allow to merge CSSProperties declaration (#3228)
Browse files Browse the repository at this point in the history
* feat(jsx): allow to merge CSSProperties declaration

* fix the format
  • Loading branch information
jonasnobile committed Aug 6, 2024
1 parent c3679b8 commit e42795c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/jsx/intrinsic-elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
// eslint-disable-next-line @typescript-eslint/no-namespace
export namespace JSX {
export type CrossOrigin = 'anonymous' | 'use-credentials' | '' | undefined
export type CSSProperties = {}
export interface CSSProperties {
[propertyKey: string]: unknown
}
type AnyAttributes = { [attributeName: string]: any }

interface JSXAttributes {
Expand Down Expand Up @@ -179,7 +181,7 @@ export namespace JSX {
popover?: string | undefined
slot?: string | undefined
spellcheck?: boolean | undefined
style?: CSSProperties | undefined
style?: CSSProperties | string | undefined
tabindex?: number | undefined
title?: string | undefined
translate?: 'yes' | 'no' | undefined
Expand Down

0 comments on commit e42795c

Please sign in to comment.