From 154b88e411a00143831f930dbf48f7f137613687 Mon Sep 17 00:00:00 2001 From: Phan An Date: Fri, 25 Oct 2024 10:28:44 +0700 Subject: [PATCH] chore(types): fix and clean up some types --- resources/assets/js/types.d.ts | 12 ------------ resources/assets/js/utils/directoryReader.ts | 1 - 2 files changed, 13 deletions(-) diff --git a/resources/assets/js/types.d.ts b/resources/assets/js/types.d.ts index 637651b0..414951e1 100644 --- a/resources/assets/js/types.d.ts +++ b/resources/assets/js/types.d.ts @@ -84,20 +84,8 @@ interface Window { } } -interface FileSystemDirectoryReader { - readEntries: (successCallback: Closure, errorCallback?: Closure) => FileSystemEntry[] -} - interface FileSystemEntry { - readonly isFile: boolean - readonly isDirectory: boolean - readonly name: string - readonly fullPath: string - readonly filesystem: FileSystem - createReader: () => FileSystemDirectoryReader - - file: (successCallback: Closure) => void } type MediaInfoDisplayMode = 'aside' | 'full' diff --git a/resources/assets/js/utils/directoryReader.ts b/resources/assets/js/utils/directoryReader.ts index 38eb0fef..3756eb01 100644 --- a/resources/assets/js/utils/directoryReader.ts +++ b/resources/assets/js/utils/directoryReader.ts @@ -35,7 +35,6 @@ async function getAllFileEntries (dataTransferItemList: DataTransferItemList) { if (entry.isFile) { fileEntries.push(entry) } else if (entry.isDirectory) { - // @ts-ignore queue.push(...await readAllDirectoryEntries(entry.createReader())) } }