Commit Graph

17 Commits

Author SHA1 Message Date
Josh Rutherford
1fb244abed react-dom: add createPortal API (#20245). (#20336)
* react-dom: add createPortal API.

* React, React-DOM: move portal interface to types/react, update render for class components to include ReactPortal.

* react-dom: add second portal test case with jsx, allow jsx in react-dom-tests.

* react, react-dom createPortal api: remove undocumented arguments, properties.
2017-10-19 11:40:47 +01:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
cynecx
0b21b7dd63 [react] [react-dom] Add support for rendering an array of elements (#19363)
* Test

* Fix react typings

* Revert "Use []-syntax for some cases."

This reverts commit 5f6e55843980b2cff9ace4174f72b4f8aa7ad278.

* Modify another render function's return type

* Use Array<T> instead in react.d.ts & Fix issues with the typescript linter & Adapt changes in react-router

* Convert Array<T> to T[]

* Add support for string and number return types.
2017-10-06 19:08:29 +01:00
Steven
e54b30fafc react-dom: Upgrade to v16.0.0 (#20065)
* Add hydrate method

* Add hydrate to react-dom-tests.ts

* Fix whitespace

* Create shared interface for `render` and `hydrate`

* Add renderToNodeStream and renderToStaticNodeStream methods in ReactDomServer

* Add proper nodejs.readablestream

* Add react-dom v15 for backwards compatibility

* Add proper baseUrl for react-dom/v15

* Change react test _interval type to NodeJS.Timer

* Export the renderer interface

* Change react/v15 to use NodeJS.Timer
2017-10-02 16:08:01 -07:00
Oleg Vaskevich
a7c466fd5b Add missing ReactDOM Simulate event methods (#19980)
* Add missing ReactDOM Simulate event methods

Simulate has a method for every event that React understands.

Source: https://facebook.github.io/react/docs/test-utils.html#simulate

* Fix ordering
2017-09-26 15:50:24 -07:00
Andy
181732f14f react-dom: Disable "no-unnecessary-generics" lint (#19908) 2017-09-20 08:29:54 -07:00
Andy
0aa5c3db6d react-dom: Revert test change (#19280) 2017-08-23 10:39:37 -07:00
Andy
924fafffc0 Fix remaining lint errors (#19166) 2017-08-20 15:37:53 -07:00
Andy
5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Riku
bf35326342 fix https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18615: remove node from dependencies (#18773) 2017-08-14 16:05:13 -07:00
Riku Ayanokozy
692b49b070 Add react-dom/node-stream (#18493) 2017-08-02 11:10:15 -07:00
Tanguy Krotoff
573083a518 Replace React.Component<(any|void|\{\}|null)> by React.Component
+ many manual adjustments
2017-06-21 09:48:37 +02:00
Tanguy Krotoff
ea9de8a518 Replace React.Component<(.*), (any|void|\{\}|null)> by React.Component<$1>
+ many manual adjustments
2017-06-19 13:35:50 +02:00
Tanguy Krotoff
eeb262e1d8 Update react to TypeScript 2.3 2017-06-19 13:34:54 +02:00
Tanguy Krotoff
53225789d9 "Definitions by:" on multiple lines for better readability 2017-06-19 12:09:54 +02:00
Martynas Žilinskas
9df4e89676 react-dom package update with test-utils (#15868)
* Create index.d.ts

`react-addons-test-utils` package moved to `react-dom/test-utils. [Reference](https://facebook.github.io/react/docs/test-utils.html)
Added missing function `isElement()`. 
Added jsdocs comments from react documentation.

* Update index.d.ts

* Added react-dom tests.

* Fixed one function return. Added test-utils tests.

* Remade structure.

* Fixed header.

* Remade from tsx -> ts.

* Remade folder structure.

* Moved to a single test file.

* Updated header.

* Added tslint.json.

* Fixed index.d.ts

* Removed trailing spaces.

* no-redundant-modifiers index.d.ts fix.

* Fixed tslint errors.

* tslint extends dtslint/dt.json and fixed ReactTestUtils.

* Fixed header version.

* Removed consecutive blank line.

* Removed JSDocs tags without description.

* Fixed ReactDOM export as global.
2017-04-18 11:18:04 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00