Add types
This commit is contained in:
4 files changed
+25
No files matched your search
@@ -0,0 +1,9 @@
|
|||||||
|
import { LauncherVersion } from "./LauncherVersion";
|
||||||
|
|
||||||
|
export class DownloadProgress {
|
||||||
|
constructor(
|
||||||
|
public version: LauncherVersion,
|
||||||
|
public progress: number,
|
||||||
|
public done: boolean
|
||||||
|
) {}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import { LauncherVersion } from "./LauncherVersion"
|
||||||
|
|
||||||
|
export type InstallsProps = {
|
||||||
|
downloadVersions: (versions: LauncherVersion[]) => void
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
export interface LauncherVersion {
|
||||||
|
version: string,
|
||||||
|
displayName: string,
|
||||||
|
platforms: string[],
|
||||||
|
downloadUrls: string[]
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import { DownloadProgress } from "./DownloadProgress"
|
||||||
|
|
||||||
|
export type SidebarProps = {
|
||||||
|
downloadProgress: DownloadProgress[]
|
||||||
|
}
|
||||||
Reference in new issue
Block a user