Skip to content

Commit 757e0f7

Browse files
committed
fix(attributes-to-props): fix type issues
1 parent 57c4b93 commit 757e0f7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/attributes-to-props.d.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export type Props = Record<string, string> & {
1010
* Converts HTML/SVG DOM attributes to React props.
1111
*
1212
* @param attributes - HTML/SVG DOM attributes.
13+
* @param nodeName - DOM node name.
1314
* @returns - React props.
1415
*/
15-
export default function attributesToProps(attributes: Attributes, nodeName?: string): Props;
16+
export default function attributesToProps(
17+
attributes: Attributes,
18+
nodeName?: string
19+
): Props;

lib/attributes-to-props.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var utilities = require('./utilities');
55
* Converts HTML/SVG DOM attributes to React props.
66
*
77
* @param {object} [attributes={}] - HTML/SVG DOM attributes.
8-
* @param {string} [nodeName] - DOM node name. Help's to have smarter behavior while converting DOM attributes to props.
8+
* @param {string} [nodeName] - DOM node name.
99
* @returns - React props.
1010
*/
1111
module.exports = function attributesToProps(attributes, nodeName) {

0 commit comments

Comments
 (0)