Fixed mistake in jsdocs types for cloneWithProps
Jim committed
Feb 19, 2015 at 16:38 UTC
bad85fafa12cb68d69ed9347dc5c8e84a851f27b
1 file changed
+2
-2
src/utils/cloneWithProps.js
+2
-2
@@ -24,10 +24,10 @@ var CHILDREN_PROP = keyOf({children: null});
24
* Sometimes you want to change the props of a child passed to you. Usually
25
* this is to add a CSS class.
26
*
27
- * @param {object} child child component you'd like to clone
27
+ * @param {ReactElement} child child component you'd like to clone
28
* @param {object} props props you'd like to modify. className and style will be
29
* merged automatically.
30
- * @return {object} a clone of child with props merged in.
30
+ * @return {ReactElement} a clone of child with props merged in.
31
*/
32
function cloneWithProps(child, props) {
33
if (__DEV__) {