StarRailCopilot/webapp/types/index.d.ts

72 lines
1.7 KiB
TypeScript
Raw Normal View History

2023-09-09 16:22:01 +00:00
declare module '*.json' {
const jsonValue: any;
export default jsonValue;
}
declare module '*.mjs' {
const mjsValue: never;
export default mjsValue;
}
declare type Recordable<T = any> = Record<string, T>;
declare interface AlasConfig {
webuiUrl: string;
theme: 'dark' | 'light';
language: DefAlasConfig['Deploy']['Webui']['Language'];
repository: 'global' | 'china';
alasPath: string;
}
declare interface DefAlasConfig {
Deploy: {
Git: {
Repository: string;
Branch: string;
GitExecutable: string;
GitProxy: null | string;
SSLVerify: bigint;
AutoUpdate: boolean;
KeepLocalChanges: boolean;
};
Python: {
PythonExecutable: string;
PypiMirror: string;
InstallDependencies: boolean;
RequirementsFile: string;
};
Adb: {
AdbExecutable: string;
ReplaceAdb: boolean;
AutoConnect: boolean;
InstallUiautomator2: boolean;
};
Ocr: {
UseOcrServer: boolean;
StartOcrServer: boolean;
OcrServerPort: null;
OcrClientAddress: string;
};
Update: {EnableReload: boolean; CheckUpdateInterval: number; AutoRestartTime: string};
Misc: {DiscordRichPresence: boolean};
RemoteAccess: {
EnableRemoteAccess: boolean;
SSHUser: null;
SSHServer: null | string;
SSHExecutable: string;
};
Webui: {
WebuiHost: string;
WebuiPort: number;
2023-09-25 15:42:24 +00:00
Language: 'zh-CN' | 'en-US' | 'ja-JP' | 'zh-TW' | 'es-ES';
2023-09-09 16:22:01 +00:00
Theme: 'default' | 'dark';
DpiScaling: boolean;
Password: null | string;
CDN: boolean;
Run: null | string;
2023-09-09 18:10:57 +00:00
AppAsarUpdate: boolean;
2023-09-09 16:22:01 +00:00
NoSandbox: boolean;
};
};
}