Skip to content

Conversation

@jamiehaywood
Copy link
Contributor

@jamiehaywood jamiehaywood commented Nov 14, 2020

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:

Type 'File | Blob' is not assignable to type 'File'.
  Type 'Blob' is missing the following properties from type 'File': lastModified, name

This change addresses this issue. closes #83

- According to Mozilla Docs, the `File` interface inherits from the
`Blob` interface & therefore the union type is unnecessary.
@jamiehaywood
Copy link
Contributor Author

hi @Donaldcwl have you had a chance to review this code?

@Donaldcwl Donaldcwl merged commit b6e8f6e into Donaldcwl:dev Dec 10, 2020
@jamiehaywood jamiehaywood deleted the dev branch December 26, 2020 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants