file browser overhaul
This commit is contained in:
12
frontend/src/types/index.d.ts
vendored
12
frontend/src/types/index.d.ts
vendored
@@ -65,16 +65,14 @@ export type DLFormat = {
|
||||
export type DirectoryEntry = {
|
||||
name: string
|
||||
path: string
|
||||
size: number
|
||||
shaSum: string
|
||||
isVideo: boolean,
|
||||
modTime: string
|
||||
isVideo: boolean
|
||||
isDirectory: boolean
|
||||
}
|
||||
|
||||
export type DeleteRequest = Omit<
|
||||
DirectoryEntry, 'name' | 'isDirectory' | 'isVideo'
|
||||
>
|
||||
export type DeleteRequest = Pick<DirectoryEntry, 'path' | 'shaSum'>
|
||||
|
||||
export type PlayRequest = Omit<
|
||||
DirectoryEntry, 'shaSum' | 'name' | 'isDirectory' | 'isVideo'
|
||||
>
|
||||
export type PlayRequest = Pick<DirectoryEntry, 'path'>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user