Closed apoorvmote closed 4 years ago
+1 Am also having this issue
@apoorvmote @adammesa Fixed in v3.0.3 👍
@nzambello I tested it and it works better now.
If I had to be nitpicky then the parserOption
is just any shape object. Which is better than before but it could be better.
@nzambello I tested it and it works better now. If I had to be nitpicky then the
parserOption
is just any shape object. Which is better than before but it could be better.
@apoorvmote Thank you for pointing it to me, I'm a newbie on typescript libraries. Now typings provide full specifications for parserOptions, too. Updated in v3.0.4
@nzambello you, sir, are fast!
Thank you for all your hard work. (I am 3 days new to TypeScript and had no idea how to tackle this)
Thanks for fixing again quickly. I am also relatively new to Typescript. I just have 1 year experience with Typescript. I am not 3 days into Typescript.
If anyone else wanted strictly typed parserOption then first install npm i -D @types/papaparse
only the types as dev dependancy. Then on the tsx file import { ParseConfig } from 'papaparse'
this is type used for parserOption
I chose this library over others because majority of the code is written in typescript. When I add this to my project it gives me error
To recreate
npx create-react-app csv-test --use-npm --template typescript
npm i react-csv-reader
import CSVReader from 'react-csv-reader'
then you get the error mentioned above.