Skip to content

Commit

Permalink
Add SyntheticEvent to lib/react.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gabelevi committed Feb 13, 2015
1 parent 31df551 commit e89621c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,18 @@ declare module React {
declare function isValidElement(element: any): boolean;
declare function withContext(context: any, callback: () => void): any;
}

declare class SyntheticEvent {
bubbles: boolean;
cancelable: boolean;
currentTarget: EventTarget;
defaultPrevented: boolean;
eventPhase: number;
isTrusted: boolean;
nativeEvent: Event;
preventDefault(): void;
stopPropagation(): void;
target: EventTarget;
timeStamp: number;
type: string;
}

0 comments on commit e89621c

Please sign in to comment.