Closed theo-staizen closed 2 years ago
Can you use the types as declared in https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wicg-file-system-access?
Thanks @tomayac, that worked, but i had to manually reference it /// <reference types="wicg-file-system-access" />
I hope this is only temporary, given that this package is exporting its own types, things should "just work"
I was under the impression TypeScript shipped with an ever-growing set of types, and sometimes updating the TypeScript version resolved issues like this. That being said, I'm not a TS user myself, so may well be wrong.
During compilation typescript complains about missing types for
FileSystemDirectoryHandle
andFileSystemFileHandle
and as far as I can tell this is correct, as there is only a reference to those types inindex.d.ts
, but no declaration.For a very crude fix, I added the following, as I was only using
fileOpen