usehooks icon indicating copy to clipboard operation
usehooks copied to clipboard

FIx `useMap` type parameters to set value type as well

Open BLucky-gh opened this issue 5 months ago • 0 comments

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

BLucky-gh avatar May 20 '25 13:05 BLucky-gh