Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

TS-Error: Incorrect Interface extention in Filesystem #300

Open
Gimleux opened this issue Feb 20, 2022 · 0 comments
Open

TS-Error: Incorrect Interface extention in Filesystem #300

Gimleux opened this issue Feb 20, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Gimleux
Copy link
Member

Gimleux commented Feb 20, 2022

Type File already has a property named webkitRelativePath

https://developer.mozilla.org/en-US/docs/Web/API/File/webkitRelativePath

src/components/pages/filesytem/upload/preflightTypes.ts:14:18 - error TS2430: Interface 'EditableFileWithPreflightInfo' incorrectly extends interface 'File'.
  Types of property 'webkitRelativePath' are incompatible.
    Type 'string | undefined' is not assignable to type 'string'.
      Type 'undefined' is not assignable to type 'string'.

14 export interface EditableFileWithPreflightInfo
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@Gimleux Gimleux added the bug Something isn't working label Feb 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants