react-csv-importer
react-csv-importer copied to clipboard
dataHandler wrong type definition
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)
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.