Skip to content

Commit

Permalink
docs(react): Link better explanation for non-generic target (#45663)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jul 10, 2020
1 parent ffb4ece commit 1cdcf67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/react/index.d.ts
Expand Up @@ -1152,7 +1152,7 @@ declare namespace React {
*
* target - a reference to the element from which the event was originally dispatched.
* This might be a child element to the element on which the event listener is registered.
* If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12239
* If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682
*/
interface SyntheticEvent<T = Element, E = Event> extends BaseSyntheticEvent<E, EventTarget & T, EventTarget> {}

Expand Down

0 comments on commit 1cdcf67

Please sign in to comment.