eduardoborges / use-mask-input

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

Still don't get auto completion for options after last update (?) #53

Closed rafma0 closed 1 year ago

rafma0 commented 1 year ago

This is just weird, after updating my use-mask-input to 3.3.4, TS still can't figure options types for registerWithMask if I do

import { useHookFormMask } from 'use-mask-input'

image

but with my cloned updated repo, if I do npx rollup -c --watch and then

import { useHookFormMask } from '/local/path/to/use-mask-input/dist'

image

any ideas?

eduardoborges commented 1 year ago

hey @rafma0 can you try 3.3.5 release?

https://github.com/eduardoborges/use-mask-input/releases/tag/3.3.5

rafma0 commented 1 year ago

Looks perfect now 🎉