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

Property 'getSystemDirectory' does not exist on type #7

Open
zababurinsv opened this issue Jan 30, 2022 · 2 comments
Open

Property 'getSystemDirectory' does not exist on type #7

zababurinsv opened this issue Jan 30, 2022 · 2 comments

Comments

@zababurinsv
Copy link
Contributor

zababurinsv commented Jan 30, 2022

When i can get build i get this error

src/browser.ts:28:31 - error TS2339: Property 'getSystemDirectory' does not exist on type '{ new (): FileSystemDirectoryHandle; prototype: FileSystemDirectoryHandle; }'.

28 FileSystemDirectoryHandle.getSystemDirectory({
~~~~~~~~~~~~~~~~~~

src/browser.ts:46:36 - error TS2552: Cannot find name 'FileSystemHandleKind'. Did you mean 'FileSystemHandleUnion'?

46 get(this: FileSystemHandle): FileSystemHandleKind {
~~~~~~~~~~~~~~~~~~~~

@RReverser
Copy link
Collaborator

Most likely related to DefinitelyTyped/DefinitelyTyped#58413. If you're using newest TypeScript, make sure to update the typings too.

@RReverser
Copy link
Collaborator

Ah... Looks like it's because in the spec the functionality was moved to navigator.storage.getDirectory(): https://wicg.github.io/file-system-access/#sandboxed-filesystem

PR would be welcome.

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

No branches or pull requests

2 participants