GoogleChromeLabs / browser-fs-access

File System Access API with legacy fallback in the browser
https://googlechromelabs.github.io/browser-fs-access/demo/
Apache License 2.0
1.38k stars 84 forks source link

Add FileWithHandle interface #31

Closed fvilers closed 3 years ago

fvilers commented 3 years ago

I added the FileWithHandle interface, feel free to suggest a better name, to the type definition. This allows TypeScript users to save the returned handle from fileOpen() and use it with fileSave(). I set the property to allow undefined for legacy implementation where we don't get a handle.

tomayac commented 3 years ago

Just released v0.13.1 that contains this! Thanks again!

fvilers commented 3 years ago

You're welcome !