eduardoborges / use-mask-input

✏️ A react Hook for build elegant input masks. Compatible with React Hook Form
https://npmjs.com/package/use-mask-input
332 stars 19 forks source link

fix: types and options #50

Closed rafma0 closed 1 year ago

rafma0 commented 1 year ago

Hi, while trying your lib I noticed the 3rd param for registerWithMask wasn't getting the types correctly

image

I'm not sure its the best way to fix it, but I did it importing Inputmask to types.ts

image

Another thing is the options for react-hook-form were getting passed to inputmask, so I separated them to a 4th param

Hope those fixes are OK and thank you :)

eduardoborges commented 1 year ago

:tada: This PR is included in version 3.3.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: