DZuz14/react-use-file-upload

setFiles method

Opened this issue · 3 comments

Hi, i'am trying to use this upload hook with mui + ts. Have problem with declaration. In docs and example this method have second arg, but in declaration this method have only 1 arg.

setFiles: (e: Event) => void;
image

I just fixed this in a project I'm working on. I could possibly take this problem, if you'd like.

@AndrewHuntington it would be very cool!

@DZuz14 Hi! I believe the setFiles mode problem can be fixed just by you guys deploying a new version of the library. It was already implemented and merged here.

Edit: fixing typo