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
363 stars 60 forks source link

Fix typescript type #122

Open Bunlong opened 2 years ago

Bunlong commented 2 years ago

Features

Issues

MichielDeMey commented 2 years ago

LGTM 👍 We do however need to figure out how to type the props from the render function.

<CSVReader>
{/* How to type these props? */}
{({ getRootProps, acceptedFile, ProgressBar, getRemoveFileProps, Remove }) => (
  return <>Foo</>
)}
</CSVReader>
Bunlong commented 2 years ago

@MichielDeMey

Yes, I got it. If you have any more ideas or suggestions please kindly let us know. We very much appreciate for your contribution. :+1: