Fix global vars

This commit is contained in:
redphx
2024-04-24 16:50:59 +07:00
parent 9446e39eb0
commit 9d0f4c380b
30 changed files with 87 additions and 69 deletions

View File

@@ -50,12 +50,3 @@ type BxStates = {
}
type DualEnum = {[index: string]: number} & {[index: number]: 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;

View File

@@ -1,7 +1,7 @@
export type PreferenceSetting = {
default: any;
options?: {[index: string]: string};
multiplOptions?: {[index: string]: string};
multipleOptions?: {[index: string]: string};
unsupported?: string | boolean;
note?: string | HTMLElement;
type?: SettingElementType;