mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-07 13:48:27 +02:00
Create better-xcloud.lite.user.js
This commit is contained in:
4
src/types/index.d.ts
vendored
4
src/types/index.d.ts
vendored
@@ -1,7 +1,9 @@
|
||||
type BuildVariant = 'full' | 'lite';
|
||||
|
||||
// Get type of an array's element
|
||||
type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
|
||||
|
||||
type PartialRecord<K extends keyof any, T> = Partial<Record<K, T>>
|
||||
type PartialRecord<K extends keyof any, T> = Partial<Record<K, T>>;
|
||||
|
||||
interface Window {
|
||||
AppInterface: any;
|
||||
|
1
src/types/setting-definition.d.ts
vendored
1
src/types/setting-definition.d.ts
vendored
@@ -24,6 +24,7 @@ export type SettingDefinition = {
|
||||
suggest: PartialRecord<SuggestedSettingCategory, any>,
|
||||
ready: (setting: SettingDefinition) => void;
|
||||
type: SettingElementType,
|
||||
requiredVariants: BuildVariant | Array<BuildVariant>;
|
||||
// migrate?: (this: Preferences, savedPrefs: any, value: any) => void;
|
||||
}> & (
|
||||
{} | {
|
||||
|
Reference in New Issue
Block a user