mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 13:18:27 +02:00
21 lines
642 B
TypeScript
Executable File
21 lines
642 B
TypeScript
Executable File
export 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;
|
|
};
|
|
|
|
export type PreferenceSettings = {[index in PrefKey]: PreferenceSetting};
|