From 2f59cff04062399c3a6fd7d7aa14f6cc6dbe1588 Mon Sep 17 00:00:00 2001 From: Hasan Saadat Date: Mon, 12 Jun 2023 15:06:56 +0500 Subject: [PATCH] temporary fix for type errors --- src/Dropzone.tsx | 4 ++-- src/utils.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Dropzone.tsx b/src/Dropzone.tsx index da29a80..1dae393 100644 --- a/src/Dropzone.tsx +++ b/src/Dropzone.tsx @@ -500,7 +500,7 @@ class Dropzone extends React.Component { + previews: any = files.map(f => { return ( //@ts-ignore | React.ChangeEvent, ): Array => { - let items = null + let items: any = null if ('dataTransfer' in event) { const dt = event.dataTransfer