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

v4.0.0 #106

Open Bunlong opened 2 years ago

Bunlong commented 2 years ago

Features

Release Date

January 18, 2022

Dreamacro commented 2 years ago

Hi @Bunlong, I found some problems with the type of useCSVReader after upgrading 4.0.

const { CSVReader } = useCSVReader()
// CSVReader is any

https://github.com/Bunlong/react-papaparse/blob/9e415b663ae5cbd619ecad3e9fde3ab161633213/src/useCSVReader.tsx#L599

It looks like to be forced to set any