code refactoring

This commit is contained in:
2023-05-26 14:55:14 +02:00
parent cafaf2707e
commit 985629fd2e
4 changed files with 48 additions and 21 deletions

View File

@@ -66,10 +66,15 @@ export type DirectoryEntry = {
name: string
path: string
shaSum: string
isVideo: boolean,
isDirectory: boolean
}
export type DeleteRequest = Omit<DirectoryEntry, 'name' | 'isDirectory'>
export type DeleteRequest = Omit<
DirectoryEntry, 'name' | 'isDirectory' | 'isVideo'
>
export type PlayRequest = Omit<DirectoryEntry, 'shaSum' | 'name' | 'isDirectory'>
export type PlayRequest = Omit<
DirectoryEntry, 'shaSum' | 'name' | 'isDirectory' | 'isVideo'
>