Bunlong / react-papaparse

react-papaparse is the fastest in-browser CSV (or delimited text) parser for React. It is full of useful features such as CSVReader, CSVDownloader, readString, jsonToCSV, readRemoteFile, ... etc.
https://react-papaparse.js.org
MIT License
364 stars 61 forks source link

Wrong Typescript CSVDownloader config type #99

Closed Graveheart closed 2 years ago

Graveheart commented 2 years ago

I've noticed that in the typescript file the CSVDownloader accepts a config of type ParseConfig<T>, but the download method calls Papaparse.unparse, therefore it should be of type UnparseConfig. I know it's a small change but right now you get a typescript error when you pass the correct format of the config.