microsoft / microsoft/TypeScript
Add type definitions for Files And Directories API
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.4k
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 117
Beschreibung
Search Terms
"Files And Directories API"
FileSystemFileEntry
Suggestion
Add types for the Files And Directories API: https://wicg.github.io/entries-api/
Specifically:
FileSystemEntryFileSystemDirectoryEntryFileSystemDirectoryReaderFileSystemFileEntryFileSystem
Use Cases
Handling drag/drop of multiple files and/or folders, and gleaning extra information about the dropped files (which is what the API provides).
Checklist
My suggestion meets these guidelines:
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
- This feature would agree with the rest of TypeScript's Design Goals.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Überprüfung der Spezifikation der Files And Directories API unter https://wicg.github.io/entries-api/ und der vorhandenen Muster für TypeScript-Deklarationen. Als erledigt gilt die Ergänzung von Typen für FileSystemEntry, FileSystemDirectoryEntry, FileSystemDirectoryReader, FileSystemFileEntry und FileSystem, ohne das Laufzeitverhalten von JavaScript zu ändern.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100