mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-07 21:58:27 +02:00
Categorize servers by continents
This commit is contained in:
16
src/types/index.d.ts
vendored
16
src/types/index.d.ts
vendored
@@ -21,14 +21,24 @@ interface Window {
|
||||
|
||||
interface NavigatorBattery extends Navigator {
|
||||
getBattery: () => Promise<{
|
||||
charging: boolean,
|
||||
level: float,
|
||||
charging: boolean;
|
||||
level: float;
|
||||
}>,
|
||||
}
|
||||
|
||||
type ServerContinent = 'america-north' | 'america-south' | 'asia' | 'australia' | 'europe' | 'other';
|
||||
type ServerRegion = {
|
||||
baseUri: string;
|
||||
isDefault: boolean;
|
||||
name: string;
|
||||
shortName: string;
|
||||
|
||||
contintent: ServerContinent;
|
||||
};
|
||||
|
||||
type BxStates = {
|
||||
supportedRegion: boolean;
|
||||
serverRegions: any;
|
||||
serverRegions: Record<string, ServerRegion>;
|
||||
selectedRegion: any;
|
||||
gsToken: string;
|
||||
isSignedIn: boolean;
|
||||
|
Reference in New Issue
Block a user