summaryrefslogtreecommitdiff
path: root/src/types/index.ts
blob: 7b5b890aa03832b3cfb67adce224a8a45665751e (plain)
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
// Common types used throughout the application

export interface ApiResponse {
  status: string;
  message?: string;
  output?: string;
}

export interface GameInfo {
  appid: string | number;
  name: string;
}

export interface LaunchOptions {
  command: string;
  arguments?: string[];
}

export interface ModInstallationConfig {
  files: string[];
  paths: {
    fgmod: string;
    assets: string;
    bin: string;
  };
}

export interface CustomOverrideConfig {
  defaultPath: string;
  overridePath: string;
  pattern: string;
  searchSuffix: string;
  replaceSuffix: string;
  expression: string;
  snippet: string;
  envAssignment: string;
}