Open HironTez opened 6 months ago
Thanks for your feedback. You are welcome by opening a PR to fix it.
Hey! 👋🏼
A totally temporary solution, until it is fixed:
import { FileUploader } from "react-drag-drop-files";
import type FileUploaderSrc from "react-drag-drop-files/dist/src/FileUploader";
const FileUploaderTyped: typeof FileUploaderSrc = FileUploader;
// Props are now properly typed
<FileUploaderTyped />
Seems like the .d.ts
file is being built with wrong contents. Hope it gets fixed soon :smile:
The only thing that stops me from using this library is the bad typescript types