mirror of
https://github.com/RPCSX/rpcsx-ui.git
synced 2026-01-31 01:05:23 +01:00
46 lines
950 B
TypeScript
46 lines
950 B
TypeScript
type IconResolution = 'normal' | 'high';
|
|
|
|
type LocalizedString = {
|
|
text: string;
|
|
lang?: string;
|
|
}
|
|
|
|
type LocalizedIcon = {
|
|
uri: string;
|
|
lang?: string;
|
|
resolution?: IconResolution;
|
|
}
|
|
|
|
type ExplorerItemBase = {
|
|
type: string;
|
|
name: LocalizedString[] | string;
|
|
icon?: LocalizedIcon[] | string;
|
|
publisher?: string;
|
|
version?: string;
|
|
size?: number;
|
|
actions?: Record<string, any>;
|
|
progress?: string;
|
|
}
|
|
|
|
type ExecutableExplorerItem = {
|
|
launcher: LauncherInfo;
|
|
}
|
|
|
|
type ExplorerItemGame = ExplorerItemBase & ExecutableExplorerItem & {
|
|
type: 'game';
|
|
titleId?: string;
|
|
contentId?: string;
|
|
}
|
|
|
|
type ExplorerItemPackage = ExplorerItemBase & ExecutableExplorerItem & {
|
|
type: 'package';
|
|
titleId?: string;
|
|
contentId?: string;
|
|
}
|
|
|
|
type ExplorerItemExtension = ExplorerItemBase & {
|
|
type: 'extension';
|
|
}
|
|
|
|
type ExplorerItem = ExplorerItemGame | ExplorerItemPackage | ExplorerItemExtension;
|