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

TS-Error: Incorrect Interface extention in Filesystem #300

@Gimleux

Description

@Gimleux

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
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions