Skip to content

Commit a47626a

Browse files
authored
types(jsx): make HTMLAttributes and SVGAttributes extend Events (#1941)
1 parent 1d55454 commit a47626a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/runtime-dom/types/jsx.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ interface AriaAttributes {
245245
'aria-valuetext'?: string
246246
}
247247

248-
export interface HTMLAttributes extends AriaAttributes {
248+
export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
249249
innerHTML?: string
250250

251251
class?: any
@@ -734,7 +734,7 @@ export interface WebViewHTMLAttributes extends HTMLAttributes {
734734
webpreferences?: string
735735
}
736736

737-
export interface SVGAttributes extends AriaAttributes {
737+
export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
738738
innerHTML?: string
739739

740740
/**
@@ -1322,7 +1322,7 @@ type ReservedProps = {
13221322
| ((ref: Element | RuntimeCore.ComponentInternalInstance | null) => void)
13231323
}
13241324

1325-
type ElementAttrs<T> = T & EventHandlers<Events> & ReservedProps
1325+
type ElementAttrs<T> = T & ReservedProps
13261326

13271327
type NativeElements = {
13281328
[K in StringKeyOf<IntrinsicElementAttributes>]: ElementAttrs<

0 commit comments

Comments
 (0)