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 );