Skip to content

Commit

Permalink
Narrow createInterpolateElement param type. (#49182)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebulanStanphill committed Mar 19, 2023
1 parent ce7947b commit d90e98e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/element/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ You would have something like this as the conversionMap value:
_Parameters_

- _interpolatedString_ `string`: The interpolation string to be parsed.
- _conversionMap_ `Object`: The map used to convert the string to a react element.
- _conversionMap_ `Record<string, WPElement>`: The map used to convert the string to a react element.

_Returns_

Expand Down
6 changes: 3 additions & 3 deletions packages/element/src/create-interpolate-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ function createFrame(
* }
* ```
*
* @param {string} interpolatedString The interpolation string to be parsed.
* @param {Object} conversionMap The map used to convert the string to
* a react element.
* @param {string} interpolatedString The interpolation string to be parsed.
* @param {Record<string, WPElement>} conversionMap The map used to convert the string to
* a react element.
* @throws {TypeError}
* @return {WPElement} A wp element.
*/
Expand Down

0 comments on commit d90e98e

Please sign in to comment.