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

TS-Error: Incorrect Interface extention in Filesystem #300

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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