mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-16 21:15:33 -04:00
(cherry picked from commit e1cbc4a78249881de96160739a50c0a399ea4313) Closes #10378 Fixed: Links tooltip closing too quickly (cherry picked from commit 0b9a212f33381d07ff67e2453753aaab64cc8041) Closes #10400 Fixed: Movie links not opening on iOS (cherry picked from commit f20ac9dc348e1f5ded635f12ab925d982b1b8957) Closes #10425
30 lines
529 B
TypeScript
30 lines
529 B
TypeScript
interface BasePath {
|
|
name: string;
|
|
path: string;
|
|
size: number;
|
|
lastModified: string;
|
|
}
|
|
|
|
interface File extends BasePath {
|
|
type: 'file';
|
|
}
|
|
|
|
interface Folder extends BasePath {
|
|
type: 'folder';
|
|
}
|
|
|
|
export type PathType = 'file' | 'folder' | 'drive' | 'computer' | 'parent';
|
|
export type Path = File | Folder;
|
|
|
|
interface PathsAppState {
|
|
currentPath: string;
|
|
isFetching: boolean;
|
|
isPopulated: boolean;
|
|
error: Error;
|
|
directories: Folder[];
|
|
files: File[];
|
|
parent: string | null;
|
|
}
|
|
|
|
export default PathsAppState;
|