Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Property 'path' does not exist on type 'File' #1176

Open
aslan-alt opened this issue Apr 24, 2022 · 5 comments
Open

[BUG] Property 'path' does not exist on type 'File' #1176

aslan-alt opened this issue Apr 24, 2022 · 5 comments
Labels

Comments

@aslan-alt
Copy link

Describe the bug
Property 'path' does not exist on type 'File'

Screen Shot 2022-04-24 at 18 39 17

Expected behavior
no type error

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

@aslan-alt
Copy link
Author

PR:#1178

@c0ncentus
Copy link

have the same issue ...

@loganpowell
Copy link

if you're just annoyed by the ts warnings, here's a dirty patch:

// extend File interface
declare global {
    interface File {
        path: string
    }
}

@anthonyblond
Copy link

Maybe the docs should be updated. I thought the full path is not meant to be visible to users anyway, with only the name being available as per https://developer.mozilla.org/en-US/docs/Web/API/File

@anselmo-ssoltech
Copy link

No updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants