Skip to content

Commit

Permalink
types(jsx): make HTMLAttributes and SVGAttributes extend Events (#1941)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amour1688 authored Aug 25, 2020
1 parent 1d55454 commit a47626a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/runtime-dom/types/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ interface AriaAttributes {
'aria-valuetext'?: string
}

export interface HTMLAttributes extends AriaAttributes {
export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
innerHTML?: string

class?: any
Expand Down Expand Up @@ -734,7 +734,7 @@ export interface WebViewHTMLAttributes extends HTMLAttributes {
webpreferences?: string
}

export interface SVGAttributes extends AriaAttributes {
export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
innerHTML?: string

/**
Expand Down Expand Up @@ -1322,7 +1322,7 @@ type ReservedProps = {
| ((ref: Element | RuntimeCore.ComponentInternalInstance | null) => void)
}

type ElementAttrs<T> = T & EventHandlers<Events> & ReservedProps
type ElementAttrs<T> = T & ReservedProps

type NativeElements = {
[K in StringKeyOf<IntrinsicElementAttributes>]: ElementAttrs<
Expand Down

0 comments on commit a47626a

Please sign in to comment.