Add types

This commit is contained in:
Lncvrt committed 2025-07-19 16:06:01 -07:00
1 parent 2513105968
commit 5a4f76fc71
4 files changed
+25

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { LauncherVersion } from "./LauncherVersion";
export class DownloadProgress {
constructor(
public version: LauncherVersion,
public progress: number,
public done: boolean
) {}
}
+5
View File
@@ -0,0 +1,5 @@
import { LauncherVersion } from "./LauncherVersion"
export type InstallsProps = {
downloadVersions: (versions: LauncherVersion[]) => void
}
+6
View File
@@ -0,0 +1,6 @@
export interface LauncherVersion {
version: string,
displayName: string,
platforms: string[],
downloadUrls: string[]
}
+5
View File
@@ -0,0 +1,5 @@
import { DownloadProgress } from "./DownloadProgress"
export type SidebarProps = {
downloadProgress: DownloadProgress[]
}