felixrieseberg / felixrieseberg/React-Dropzone-Component
Issues from 3.0.0 to 3.1.2
- Dominant language
- JavaScript
- Stars
- 999
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
I cannot import dropzone component as in 3.0.0 anymore:
import DropzoneComponent from 'react-dropzone-component';
with 3.1.2 I have to use import * as DropzoneComponent from 'react-dropzone-component';
That's fine... but now the component event handlers complains that the events (removeFile, processing, error) does not math the return type which are now FileCallBack and ErrorCallback.. which is fine again. I corrected that...
But where I get stuck, is there's still one last type mismatch. Typescript complains that "property 'push' is missing in type" for those 3 events
Could you help on how to fix or could it be something missing in type.d.ts?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the shown import and event-handler usage, then inspect type.d.ts to trace the declared types for removeFile, processing, and error. Reproduce the TypeScript error under version 3.1.2; done means the documented import and these handlers type-check without the missing 'push' property error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100