aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/src/types/index.ts
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2026-01-16 20:56:27 +0800
committerGitHub <noreply@github.com>2026-01-16 20:56:27 +0800
commitfd4d01a629105d9405a6cecb2a1efd3ffa6a9334 (patch)
tree831d979118234ae8b1a2eebdfe7187c2ff966391 /ui/src/types/index.ts
parent1119f6c3cf421da2f2db92873efae8135c76b678 (diff)
parentbb6cf77844343bbf55be3dad201340572564d132 (diff)
downloadDropOut-fd4d01a629105d9405a6cecb2a1efd3ffa6a9334.tar.gz
DropOut-fd4d01a629105d9405a6cecb2a1efd3ffa6a9334.zip
Merge pull request #55 from HsiangNianian/feat/Instance/Profile-System
Diffstat (limited to 'ui/src/types/index.ts')
-rw-r--r--ui/src/types/index.ts17
1 files changed, 16 insertions, 1 deletions
diff --git a/ui/src/types/index.ts b/ui/src/types/index.ts
index 9a4da2b..a5b336e 100644
--- a/ui/src/types/index.ts
+++ b/ui/src/types/index.ts
@@ -1,4 +1,4 @@
-export type ViewType = "home" | "versions" | "settings" | "guide";
+export type ViewType = "home" | "versions" | "settings" | "guide" | "instances";
export interface Version {
id: string;
@@ -187,3 +187,18 @@ export interface InstalledForgeVersion {
// ==================== Mod Loader Type ====================
export type ModLoaderType = "vanilla" | "fabric" | "forge";
+
+// ==================== Instance Types ====================
+
+export interface Instance {
+ id: string;
+ name: string;
+ game_dir: string;
+ version_id?: string;
+ created_at: number;
+ last_played?: number;
+ icon_path?: string;
+ notes?: string;
+ mod_loader?: string;
+ mod_loader_version?: string;
+}