Skip to content

Commit

Permalink
Make SyntheticEvent.target generic, not SyntheticEvent.currentTarget (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Emm authored and vvakame committed Oct 25, 2016
1 parent dc33fb1 commit 2717467
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/index.d.ts
Expand Up @@ -273,7 +273,7 @@ declare namespace React {

interface SyntheticEvent<T> {
bubbles: boolean;
currentTarget: EventTarget & T;
currentTarget: EventTarget;
cancelable: boolean;
defaultPrevented: boolean;
eventPhase: number;
Expand All @@ -284,7 +284,7 @@ declare namespace React {
stopPropagation(): void;
isPropagationStopped(): boolean;
persist(): void;
target: EventTarget;
target: EventTarget & T;
timeStamp: Date;
type: string;
}
Expand Down

0 comments on commit 2717467

Please sign in to comment.