Skip to content

Make React's SyntheticEvent.currentTarget generic over T again - #10784

Merged
vvakame merged 3 commits into
DefinitelyTyped:types-2.0from
joshaber:patch-1
Sep 6, 2016
Merged

vvakame merged 3 commits into
DefinitelyTyped:types-2.0from
joshaber:patch-1

Conversation

@joshaber

@joshaber joshaber commented Aug 23, 2016 •

Copy link
Copy Markdown
Contributor

This change was added in 084926e but then reverted in 5607f54. The revert looks like an accident to me, as it's a merge coming in from master vs. a purposeful change. Maybe it got accidentally stepped on in resolving a conflict?

If target should no longer be the intersection of EventTarget and T, then there's not much point to SyntheticEvent being generic over T 😄

This change was added in 084926e but then reverted in 5607f54. The revert _looks_ like an accident to me, as it's a merge coming in from master vs. a purposeful change. Maybe it got accidentally stepped on in resolving a conflict?

If `target` should no longer be the intersection of `EventTarget` and `T`, then there's not much point to `SyntheticEvent` being generic over `T`.
@joshaber joshaber changed the title Make SyntheticEvent.target generic over T again Make React's SyntheticEvent.target generic over T again Aug 23, 2016
@joshaber

Copy link
Copy Markdown
Contributor Author

The CI failures seem unrelated to my change.

@vvakame vvakame added the @types label Aug 29, 2016
@vvakame

vvakame commented Aug 29, 2016

Copy link
Copy Markdown
Member

related? #10811

@joshaber

Copy link
Copy Markdown
Contributor Author

@vvakame Ah yeah, good catch 👍 Switched to make currentTarget generic over T instead of target.

@joshaber joshaber changed the title Make React's SyntheticEvent.target generic over T again Make React's SyntheticEvent.currentTarget generic over T again Aug 31, 2016
@joshaber

Copy link
Copy Markdown
Contributor Author

This is green now 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants