@@ -4,9 +4,9 @@ var styleToJS = require('style-to-js').default;
4
4
/**
5
5
* Swap key with value in an object.
6
6
*
7
- * @param { Object } obj - The object.
8
- * @param {Function } [override] - The override method.
9
- * @return { Object } - The inverted object.
7
+ * @param { object } obj - The object.
8
+ * @param {Function } [override] - The override method.
9
+ * @returns - The inverted object.
10
10
*/
11
11
function invertObject ( obj , override ) {
12
12
if ( ! obj || typeof obj !== 'object' ) {
@@ -44,8 +44,8 @@ function invertObject(obj, override) {
44
44
* @see {@link https://github.com/facebook/react/blob/v16.6.3/packages/react-dom/src/shared/isCustomComponent.js }
45
45
*
46
46
* @param {string } tagName - The name of the html tag.
47
- * @param {Object } props - The props being passed to the element.
48
- * @return { boolean }
47
+ * @param {object } props - The props being passed to the element.
48
+ * @returns - Whether tag is custom component.
49
49
*/
50
50
function isCustomComponent ( tagName , props ) {
51
51
if ( tagName . indexOf ( '-' ) === - 1 ) {
@@ -113,8 +113,8 @@ var elementsWithNoTextChildren = new Set([
113
113
/**
114
114
* Checks if the given node can contain text nodes
115
115
*
116
- * @param {DomElement } node
117
- * @returns { boolean }
116
+ * @param {DomElement } node - Node.
117
+ * @returns - Whether node can contain text nodes.
118
118
*/
119
119
function canTextBeChildOfNode ( node ) {
120
120
return ! elementsWithNoTextChildren . has ( node . name ) ;
0 commit comments