React-native-document-picker: Response file object has file property type number not string as defined in typescript definitions

Created on 29 Jun 2020  路  2Comments  路  Source: rnmods/react-native-document-picker

1) - Use pick multiple option
2) - Select 1 file
3) - Log response
Result response is an array with one file object that has the size as number not as string.

Expected result: size type should be string, as mentioned here:
https://github.com/Elyx0/react-native-document-picker/blob/master/index.d.ts

bug

All 2 comments

Thanks, TS inconsistencies are very confusing, it's horrible to see that warning when you know you're using it as expected.

Sadly cast as any for now :(

Was this page helpful?
0 / 5 - 0 ratings

Related issues

johuder33 picture johuder33  路  5Comments

roadev picture roadev  路  3Comments

rajeshkos picture rajeshkos  路  6Comments

ShaubertIlya picture ShaubertIlya  路  6Comments

obstruction6761 picture obstruction6761  路  6Comments