summaryrefslogtreecommitdiffstatshomepage
path: root/ui/src/types/index.ts
blob: 1f83585a7e2026324bc89dbed8de6b35a0b7c8e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
export type ViewType = "home" | "versions" | "settings";

export interface Version {
  id: string;
  type: string;
  url: string;
  time: string;
  releaseTime: string;
}

export interface Account {
  type: "Offline" | "Microsoft";
  username: string;
  uuid: string;
}

export interface DeviceCodeResponse {
  user_code: string;
  device_code: string;
  verification_uri: string;
  expires_in: number;
  interval: number;
  message?: string;
}

export interface LauncherConfig {
  min_memory: number;
  max_memory: number;
  java_path: string;
  width: number;
  height: number;
  download_threads: number;
}

export interface JavaInstallation {
  path: string;
  version: string;
  is_64bit: boolean;
}