react-csv-importer icon indicating copy to clipboard operation
react-csv-importer copied to clipboard

dataHandler wrong type definition

Open RexusWolf opened this issue 2 years ago • 1 comments

While trying to implement the dataHandler following the example in the README, I get this error: Type '(rows: any, { startIndex }: { startIndex: any; }) => Promise<void>' is not assignable to type 'undefined'.ts(2322)

RexusWolf avatar Feb 08 '23 15:02 RexusWolf

Hmm, can you share a fuller snippet of how you are calling the component? Could be that you are supplying both dataHandler and processChunk props at once - only the first one should be specified.

unframework avatar Feb 23 '23 20:02 unframework