Closed jamiehaywood closed 3 years ago
Thanks for your update!
Why do I get a Blob object instead of a File one?
Why do I get a Blob object instead of a File one?
Since some browsers do not support the File constructor such as IE, this library uses Blob instead. To mimic the File object, the "name" and "lastModified" properties are added to the Blob object.
Based on the Mozilla documentation - the File interface inherits from the Blob interface and therefore the union type is unnecessary.
The primary reason for raising this PR is I was receiving type errors in my code: