Skip to content

Commit

Permalink
fix Template Var
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Oct 30, 2024
1 parent 1313582 commit d812f9c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/data/src/components/use-select/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ function useMappingSelect( suspense, mapSelect, deps ) {
* In general, this custom React hook follows the
* [rules of hooks](https://react.dev/reference/rules/rules-of-hooks).
*
* @template {MapSelect} T
* @template {MapSelect} M
* @overload
* @param {T} mapSelect Function called on every state change. The returned value is
* @param {M} mapSelect Function called on every state change. The returned value is
* exposed to the component implementing this hook. The function
* receives the `registry.select` method on the first argument
* and the `registry` on the second argument.
Expand All @@ -248,7 +248,7 @@ function useMappingSelect( suspense, mapSelect, deps ) {
* callbacks, not for data needed to create the element tree.
* @param {unknown[]} deps If provided, this memoizes the mapSelect so the same `mapSelect` is
* invoked on every state change unless the dependencies change.
* @return {UseSelectReturn<T>} A custom react hook.
* @return {UseSelectReturn<M>} A custom react hook.
*/

/**
Expand All @@ -257,16 +257,16 @@ function useMappingSelect( suspense, mapSelect, deps ) {
* In general, this custom React hook follows the
* [rules of hooks](https://react.dev/reference/rules/rules-of-hooks).
*
* @template {StoreDescriptor<any>} T
* @template {StoreDescriptor<any>} S
* @overload
* @param {T} mapSelect Function called on every state change. The returned value is
* @param {S} mapSelect Function called on every state change. The returned value is
* exposed to the component implementing this hook. The function
* receives the `registry.select` method on the first argument
* and the `registry` on the second argument.
* When a store key is passed, all selectors for the store will be
* returned. This is only meant for usage of these selectors in event
* callbacks, not for data needed to create the element tree.
* @return {UseSelectReturn<T>} A custom react hook.
* @return {UseSelectReturn<S>} A custom react hook.
*/

/**
Expand Down

0 comments on commit d812f9c

Please sign in to comment.