react-tailwindcss-select icon indicating copy to clipboard operation
react-tailwindcss-select copied to clipboard

Better Typescript support

Open rogueturnip opened this issue 1 year ago • 6 comments

Hi! Your project is really great. It works really well for what I need but I did find some issues when trying to properly type my handler.

Basically what I want to is be able to pull out just the values from the saved array so that I can send that to the database for storage. I don't need to carry the label or disabled keys values.

When to do "map" on the data stored it kept telling me that map is to valid on Options. If I set the typing to "any" it works just fine.

This isn't stopping me from getting things working functionally but it just impacts having nicely typed code.

rogueturnip avatar Mar 04 '23 02:03 rogueturnip