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

Should FileWithHandle.handle be a FileSystemFileHandle rather than FileSystemHandle? #87

Closed gbishop closed 2 years ago

gbishop commented 2 years ago

I note that the getFile method is on FileSystemFileHandle, not on FileSystemHandle.

I think that the declaration should be

export interface FileWithHandle extends File {
  handle?: FileSystemFileHandle;
}