From a4574b7a0b5f9a75f69900f6a8f71449292cfedb Mon Sep 17 00:00:00 2001
From: sarayourfriend <24264157+sarayourfriend@users.noreply.github.com>
Date: Thu, 20 May 2021 07:56:33 -0700
Subject: [PATCH] Use a more readable generic type parameter name
---
packages/compose/README.md | 4 ++--
packages/compose/src/hooks/use-merge-refs/index.js | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/packages/compose/README.md b/packages/compose/README.md
index 82fa0845ce2560..6092aa98a0a099 100644
--- a/packages/compose/README.md
+++ b/packages/compose/README.md
@@ -350,11 +350,11 @@ return
;
_Parameters_
-- _refs_ `Array`: The refs to be merged.
+- _refs_ `Array`: The refs to be merged.
_Returns_
-- `import('react').RefCallback>`: The merged ref callback.
+- `import('react').RefCallback>`: The merged ref callback.
# **usePrevious**
diff --git a/packages/compose/src/hooks/use-merge-refs/index.js b/packages/compose/src/hooks/use-merge-refs/index.js
index e640c0cbea37bc..5b8b353a3b680c 100644
--- a/packages/compose/src/hooks/use-merge-refs/index.js
+++ b/packages/compose/src/hooks/use-merge-refs/index.js
@@ -63,16 +63,16 @@ function assignRef( ref, value ) {
* return ;
* ```
*
- * @template {import('react').Ref} T
- * @param {Array} refs The refs to be merged.
+ * @template {import('react').Ref} TRef
+ * @param {Array} refs The refs to be merged.
*
- * @return {import('react').RefCallback>} The merged ref callback.
+ * @return {import('react').RefCallback>} The merged ref callback.
*/
export default function useMergeRefs( refs ) {
const element = useRef();
const didElementChange = useRef( false );
/* eslint-disable jsdoc/no-undefined-types */
- /** @type {import('react').MutableRefObject} */
+ /** @type {import('react').MutableRefObject} */
/* eslint-enable jsdoc/no-undefined-types */
const previousRefs = useRef( [] );
const currentRefs = useRef( refs );