Skip to content

Commit

Permalink
docs(react): Link better explanation for non-generic target (Definite…
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored and ngbrown committed Jul 11, 2020
1 parent 7ebf999 commit 0a2b66c
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 0a2b66c

Please sign in to comment.