@@ -4,9 +4,9 @@ var styleToJS = require('style-to-js').default;
44/**
55 * Swap key with value in an object.
66 *
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.
1010 */
1111function invertObject ( obj , override ) {
1212 if ( ! obj || typeof obj !== 'object' ) {
@@ -44,8 +44,8 @@ function invertObject(obj, override) {
4444 * @see {@link https://github.com/facebook/react/blob/v16.6.3/packages/react-dom/src/shared/isCustomComponent.js }
4545 *
4646 * @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.
4949 */
5050function isCustomComponent ( tagName , props ) {
5151 if ( tagName . indexOf ( '-' ) === - 1 ) {
@@ -113,8 +113,8 @@ var elementsWithNoTextChildren = new Set([
113113/**
114114 * Checks if the given node can contain text nodes
115115 *
116- * @param {DomElement } node
117- * @returns { boolean }
116+ * @param {DomElement } node - Node.
117+ * @returns - Whether node can contain text nodes.
118118 */
119119function canTextBeChildOfNode ( node ) {
120120 return ! elementsWithNoTextChildren . has ( node . name ) ;
0 commit comments