react-native-file-picker icon indicating copy to clipboard operation
react-native-file-picker copied to clipboard

please change types setting in index.d.ts

Open jion-kozonos opened this issue 4 years ago • 0 comments

Error

Property 'didCancel' does not exist on type 'FilePickerResult'.
Property 'didCancel' does not exist on type 'FilePickerError'.

Solution

from

export type FilePickerResult =
  | FilePickerCancel
  | FilePickerError
  | FilePickerFile

to

export type FilePickerResult =
  & FilePickerCancel
  & FilePickerError
  & FilePickerFile

jion-kozonos avatar Oct 23 '20 15:10 jion-kozonos