diff --git a/src/types/DownloadProgress.ts b/src/types/DownloadProgress.ts new file mode 100644 index 0000000..4eb6c96 --- /dev/null +++ b/src/types/DownloadProgress.ts @@ -0,0 +1,9 @@ +import { LauncherVersion } from "./LauncherVersion"; + +export class DownloadProgress { + constructor( + public version: LauncherVersion, + public progress: number, + public done: boolean + ) {} +} \ No newline at end of file diff --git a/src/types/InstallsProps.ts b/src/types/InstallsProps.ts new file mode 100644 index 0000000..564f375 --- /dev/null +++ b/src/types/InstallsProps.ts @@ -0,0 +1,5 @@ +import { LauncherVersion } from "./LauncherVersion" + +export type InstallsProps = { + downloadVersions: (versions: LauncherVersion[]) => void +} \ No newline at end of file diff --git a/src/types/LauncherVersion.ts b/src/types/LauncherVersion.ts new file mode 100644 index 0000000..083b335 --- /dev/null +++ b/src/types/LauncherVersion.ts @@ -0,0 +1,6 @@ +export interface LauncherVersion { + version: string, + displayName: string, + platforms: string[], + downloadUrls: string[] +} \ No newline at end of file diff --git a/src/types/SidebarProps.ts b/src/types/SidebarProps.ts new file mode 100644 index 0000000..567eba4 --- /dev/null +++ b/src/types/SidebarProps.ts @@ -0,0 +1,5 @@ +import { DownloadProgress } from "./DownloadProgress" + +export type SidebarProps = { + downloadProgress: DownloadProgress[] +} \ No newline at end of file