Files
better-xcloud/src/types/preferences.d.ts
2025-01-28 11:28:26 +07:00

30 lines
841 B
TypeScript
Executable File

type PreferenceSetting = {
default: any;
optionsGroup?: string;
options?: { [index: string]: string };
multipleOptions?: { [index: string]: string };
unsupported?: boolean;
unsupportedNote?: string | (() => HTMLElement);
note?: string | (() => HTMLElement);
type?: SettingElementType;
ready?: (setting: PreferenceSetting) => void;
migrate?: (this: Preferences, savedPrefs: any, value: any) => void;
min?: number;
max?: number;
steps?: number;
experimental?: boolean;
params?: any;
label?: string;
};
type PreferenceSettings = { [index in PrefKey]: PreferenceSetting };
type StreamPreferredLocale = 'default' | string;
type ControllerSetting = {
shortcutPresetId: number;
customizationPresetId: number;
}
type ControllerSettings = Record<string, ControllerSetting>;