You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a dev using VueUse, I want to map an array to a different type so that I can map API result lists to another object.
The useArrayMap function currently limits the output type to be the same as the input type.
This does not reflect the behaviour of the native Array.map() function.
Suggested solution
In module shared/useArrayMap there should be a second generic argument to the function useArrayMap which is then used as the return type of the passed mapper function.
Clear and concise description of the problem
As a dev using VueUse, I want to map an array to a different type so that I can map API result lists to another object.
The useArrayMap function currently limits the output type to be the same as the input type.
This does not reflect the behaviour of the native Array.map() function.
Suggested solution
In module shared/useArrayMap there should be a second generic argument to the function useArrayMap which is then used as the return type of the passed mapper function.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: