Commit Graph

11 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
Yiting Zhi 支一婷
a3640e13de [React] exported copy event simulator for testing (#8992) 2016-04-17 23:49:49 +09:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
Vincent Siao
1a67b639ce [react] Add ComponentElement<P, T> for instance type inference 2016-03-14 02:05:24 -07:00
Vincent Siao
5e85e146c6 [react] ReactTestUtils custom typeguards 2016-03-14 01:46:14 -07:00
Vincent Siao
1917a4122a [react] Add T param to React.DOM* types 2016-03-14 01:46:13 -07:00
Vincent Siao
edb41e7850 [react] better return-type inference for (scry|find)RenderedComponent(s?)WithType 2016-02-26 18:33:14 -08:00
Adi Dahiya
ca5bfe76d2 Fix linting errors in react typings 2015-11-18 14:37:45 -05:00
Vincent Siao
a43c2843cd [React.14] Add ReactInstance type (Component<any, any> | Element) 2015-11-05 11:25:16 -08:00
James Brantly
619033254c Update tests for v0.14 and refactor how addons expose interfaces. 2015-11-05 07:01:14 -05:00
James Brantly
77b2f7e8d4 Initial React v0.14 definitions 2015-10-14 19:21:31 -04:00