Commit Graph

12 Commits

Author SHA1 Message Date
Nicholas Lydon
08ed4e9f18 React TestUtils SyntheticEventData extends browser Event (#9000)
* SyntheticEventData extends browser Event

From https://facebook.github.io/react/docs/events.html

Your event handlers will be passed instances of SyntheticEvent, a
cross-browser wrapper around the browser's native event. It has the same
interface as the browser's native event, including stopPropagation() and
preventDefault(), except the events work identically across all
browsers.

* make react synthetic event properties optional
2016-04-27 12:56:38 +09:00
Vincent Siao
1a67b639ce [react] Add ComponentElement<P, T> for instance type inference 2016-03-14 02:05:24 -07:00
Vincent Siao
1917a4122a [react] Add T param to React.DOM* types 2016-03-14 01:46:13 -07:00
Vincent Siao
92cf86a3e2 [react] Deprecate React.Props<T>; Add React.*Attributes 2016-03-14 01:46:13 -07:00
Ryan Cavanaugh
d7465b3fbe Merge branch 'master' into reactSFC 2015-12-01 14:26:53 -08:00
Adi Dahiya
ca5bfe76d2 Fix linting errors in react typings 2015-11-18 14:37:45 -05:00
Ryan Cavanaugh
ac7e775d98 Make HTMLProps generic; add Intrinsic Attribute types 2015-11-12 13:18:53 -08:00
Vincent Siao
15eff541e0 [React.14] Update refs for DOM elements 2015-11-05 10:41:07 -08:00
James Brantly
619033254c Update tests for v0.14 and refactor how addons expose interfaces. 2015-11-05 07:01:14 -05:00
Tom Hasner
bf061642b0 Write typings for React.Children.toArray and React.Children.map 2015-11-02 22:59:15 -05:00
Ciuca, Alexandru
64cd3d9c56 Fixed react tests caused by incompatibility of aliased props generics 2015-09-17 20:11:06 +03:00
James Brantly
e79e14a7b8 Fixup the global definitions.
Originally had renamed react-global.d.ts to react-namespace.d.ts. After thinking about it further I don't think a rename really benefits anyone and would just cause confusion with people trying to upgrade. Also I had missed the `.d` in the original rename. Additionally adding some tests for the global version since there were none.
2015-09-03 23:07:28 -04:00