Add option to show wait time in game card

This commit is contained in:
redphx
2024-07-14 16:44:18 +07:00
parent fcfecf7ff9
commit 1d55026c6d
12 changed files with 242 additions and 12 deletions

13
src/types/index.d.ts vendored
View File

@@ -25,10 +25,13 @@ interface NavigatorBattery extends Navigator {
type BxStates = {
supportedRegion: boolean;
serverRegions: any;
selectedRegion: any;
gsToken: string;
isPlaying: boolean;
appContext: any | null;
serverRegions: any;
browser: {
capabilities: {
@@ -71,6 +74,8 @@ type BxStates = {
type DualEnum = {[index: string]: number} & {[index: number]: string};
type XcloudTitleInfo = {
titleId: string,
details: {
productId: string;
supportedInputTypes: InputType[];
@@ -88,6 +93,12 @@ type XcloudTitleInfo = {
};
};
type XcloudWaitTimeInfo = Partial<{
estimatedAllocationTimeInSeconds: number,
estimatedProvisioningTimeInSeconds: number,
estimatedTotalWaitTimeInSeconds: number,
}>;
declare module '*.js';
declare module '*.svg';
declare module '*.styl';