mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 05:08:26 +02:00
Use globalThis to declare global variables
This commit is contained in:
14
src/types/index.d.ts
vendored
14
src/types/index.d.ts
vendored
@@ -51,11 +51,11 @@ type BxStates = {
|
||||
|
||||
type DualEnum = {[index: string]: number} & {[index: number]: string};
|
||||
|
||||
declare const window: Window & typeof globalThis;
|
||||
declare const AppInterface: any;
|
||||
declare const STREAM_WEBRTC: RTCPeerConnection;
|
||||
declare let States: BxStates;
|
||||
declare const NATIVE_FETCH: typeof window.fetch;
|
||||
declare const SCRIPT_VERSION: string;
|
||||
declare const SCRIPT_HOME: string;
|
||||
declare var SCRIPT_VERSION: string;
|
||||
declare var window: Window & typeof globalThis;
|
||||
declare var AppInterface: any;
|
||||
declare var STREAM_WEBRTC: RTCPeerConnection;
|
||||
declare var States: BxStates;
|
||||
declare var NATIVE_FETCH: typeof window.fetch;
|
||||
declare var SCRIPT_HOME: string;
|
||||
declare var LOCALE: number;
|
||||
|
Reference in New Issue
Block a user