aranlucas / react-hook-form-mantine

React Hook Form bindings for Mantine components
https://aranlucas.github.io/react-hook-form-mantine/
90 stars 12 forks source link

Value type on Chip accepts invalid types. Tighten value types for Chip to match Mantine #15

Closed jafin closed 10 months ago

jafin commented 1 year ago

Mantine Chip accepts value of type string | number | readonly string[] | undefined

When using Chip from react-hook-form-mantine it allows setting value to boolean

It would be good if there was a way to restrict this type to match Mantine

aranlucas commented 1 year ago

This type is inferred from whatever values are passed in from useForm. If the values given there are right, then they should be inferred correctly.

github-actions[bot] commented 10 months ago

Stale issue message