chore(types): fix and clean up some types

This commit is contained in:
Phan An 2024-10-25 10:28:44 +07:00
parent c89e1ee9fe
commit 154b88e411
2 changed files with 0 additions and 13 deletions

View file

@ -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'

View file

@ -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()))
}
}