mirror of
https://github.com/koel/koel
synced 2024-11-12 23:47:09 +00:00
chore(types): fix and clean up some types
This commit is contained in:
parent
c89e1ee9fe
commit
154b88e411
2 changed files with 0 additions and 13 deletions
12
resources/assets/js/types.d.ts
vendored
12
resources/assets/js/types.d.ts
vendored
|
@ -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'
|
||||
|
|
|
@ -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()))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue