usehooks
usehooks copied to clipboard
FIx `useMap` type parameters to set value type as well
Currently useMap seems to have been copy-pasted from useSet and its type signature does not allow setting map value type, and the initialValues type is straight up incorrect.
This adds an extra type parameter for the value type, and makes the initialValues type match the type of the map constructor type