"Files And Directories API"
FileSystemFileEntry
Add types for the Files And Directories API: https://wicg.github.io/entries-api/
Specifically:
FileSystemEntryFileSystemDirectoryEntryFileSystemDirectoryReaderFileSystemFileEntryFileSystemHandling drag/drop of multiple files and/or folders, and gleaning extra information about the dropped files (which is what the API provides).
My suggestion meets these guidelines:
PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes.
newcomer here.
in which file would i put the type definitions?
Adding this would only partially help Firefox which even does have some wrong method signatures. All others implement it with webkit prefix attached.
This API is IMO not ready for including in TS:
https://github.com/microsoft/TSJS-lib-generator#when-should-a-dom-api-be-included-here
This specification was published by the Web Platform Incubator Community Group. It is not a W3C Standard nor is it on the W3C Standards Track.
FWIW I drafted the declarations based on the current state of https://wicg.github.io/native-file-system.
https://github.com/fernap3/native-file-system-types/blob/master/native-file-system.d.ts
Happy to receive feedback if anyone wants to contribute.
looks like there are official types available.
https://www.npmjs.com/package/@types/wicg-file-system-access
Most helpful comment
looks like there are official types available.
https://www.npmjs.com/package/@types/wicg-file-system-access