mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 05:08:26 +02:00
20 lines
591 B
TypeScript
20 lines
591 B
TypeScript
export type PreferenceSetting = {
|
|
default: any;
|
|
optionsGroup?: string;
|
|
options?: {[index: string]: string};
|
|
multipleOptions?: {[index: string]: string};
|
|
unsupported?: string | boolean;
|
|
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};
|