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.
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 withfileSave()
. I set the property to allow undefined for legacy implementation where we don't get a handle.