@samitouri / QOS-React / commits / 416f315c96

Fix return type in onlyChild's JSDoc (#6573)

The return type is a 'ReactElement' instead of a 'ReactComponent'.

Esteban committed Apr 21, 2016 at 20:02 UTC 416f315c962c74e057e420b5c24e4e89744174f0
1 file changed +1 -1
src/isomorphic/children/onlyChild.js
+1 -1
@@ -22,7 +22,7 @@ var invariant = require('invariant');
22 * of children.
23 *
24 * @param {?object} children Child collection structure.
25 - * @return {ReactComponent} The first and only `ReactComponent` contained in the
25 + * @return {ReactElement} The first and only `ReactElement` contained in the
26 * structure.
27 */
28 function onlyChild(children) {