@react-aria/dnd 3.0.0-alpha.1 → 3.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/utils.ts CHANGED
@@ -277,25 +277,6 @@ function createDirectoryItem(entry: any): DirectoryItem {
277
277
  };
278
278
  }
279
279
 
280
- interface FileSystemFileEntry {
281
- isFile: true,
282
- isDirectory: false,
283
- name: string,
284
- file(successCallback: (file: File) => void, errorCallback?: (error: Error) => void): void
285
- }
286
-
287
- interface FileSystemDirectoryEntry {
288
- isDirectory: true,
289
- isFile: false,
290
- name: string,
291
- createReader(): FileSystemDirectoryReader
292
- }
293
-
294
- type FileSystemEntry = FileSystemFileEntry | FileSystemDirectoryEntry;
295
- interface FileSystemDirectoryReader {
296
- readEntries(successCallback: (entries: FileSystemEntry[]) => void, errorCallback?: (error: Error) => void): void
297
- }
298
-
299
280
  async function *getEntries(item: FileSystemDirectoryEntry): AsyncIterable<FileItem | DirectoryItem> {
300
281
  let reader = item.createReader();
301
282
 
@@ -309,7 +290,7 @@ async function *getEntries(item: FileSystemDirectoryEntry): AsyncIterable<FileIt
309
290
 
310
291
  for (let entry of entries) {
311
292
  if (entry.isFile) {
312
- let file = await getEntryFile(entry);
293
+ let file = await getEntryFile(entry as FileSystemFileEntry);
313
294
  yield createFileItem(file);
314
295
  } else if (entry.isDirectory) {
315
296
  yield createDirectoryItem(entry);