Add types

This commit is contained in:
2025-07-19 16:06:01 -07:00
parent 2513105968
commit 5a4f76fc71
4 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import { LauncherVersion } from "./LauncherVersion";
export class DownloadProgress {
constructor(
public version: LauncherVersion,
public progress: number,
public done: boolean
) {}
}

View File

@@ -0,0 +1,5 @@
import { LauncherVersion } from "./LauncherVersion"
export type InstallsProps = {
downloadVersions: (versions: LauncherVersion[]) => void
}

View File

@@ -0,0 +1,6 @@
export interface LauncherVersion {
version: string,
displayName: string,
platforms: string[],
downloadUrls: string[]
}

View File

@@ -0,0 +1,5 @@
import { DownloadProgress } from "./DownloadProgress"
export type SidebarProps = {
downloadProgress: DownloadProgress[]
}