initial version
This commit is contained in:
30
src/types/index.ts
Normal file
30
src/types/index.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
export type LibraryType = 'games' | 'mixed'
|
||||
|
||||
export interface Library {
|
||||
id: string
|
||||
name: string
|
||||
path: string
|
||||
type: LibraryType
|
||||
}
|
||||
|
||||
export interface Game {
|
||||
id: string
|
||||
title: string
|
||||
coverUrl: string | null
|
||||
wideCoverUrl: string | null
|
||||
zipPath: string
|
||||
}
|
||||
|
||||
export type MediaType = 'video' | 'image' | 'other'
|
||||
|
||||
export interface FileEntry {
|
||||
name: string
|
||||
type: 'file' | 'directory'
|
||||
mediaType: MediaType | null
|
||||
url: string | null
|
||||
}
|
||||
|
||||
export interface DirectoryListing {
|
||||
path: string
|
||||
entries: FileEntry[]
|
||||
}
|
||||
Reference in New Issue
Block a user