mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-29 19:08:50 +00:00
72 lines
1.7 KiB
TypeScript
72 lines
1.7 KiB
TypeScript
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;
|
|
Language: 'zh-CN' | 'en-US' | 'ja-JP' | 'zh-TW' | 'es-ES';
|
|
Theme: 'default' | 'dark';
|
|
DpiScaling: boolean;
|
|
Password: null | string;
|
|
CDN: boolean;
|
|
Run: null | string;
|
|
AppAsarUpdate: boolean;
|
|
NoSandbox: boolean;
|
|
};
|
|
};
|
|
}
|