mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-26 04:48:52 +02:00
Add missing types (#76)
* feat(SteamAppOverview): Add types * feat(SliderFieldProps): Add className type * feat(ToggleFieldProps): Add highlightOnFocus type * feat(AppDetails): Add types for libraryAssets.logoPosition * feat(types): Add types to some globals
This commit is contained in:
committed by
GitHub
parent
68a46263a4
commit
e559a43af9
@@ -217,6 +217,14 @@ export type AppLanguages = {
|
||||
strShortName: string;
|
||||
};
|
||||
|
||||
export type LogoPinPositions = 'BottomLeft' | 'UpperLeft' | 'CenterCenter' | 'UpperCenter' | 'BottomCenter';
|
||||
|
||||
export interface LogoPosition {
|
||||
pinnedPosition: LogoPinPositions;
|
||||
nWidthPct: number;
|
||||
nHeightPct: number;
|
||||
};
|
||||
|
||||
export interface AppDetails {
|
||||
achievements: AppAchievements;
|
||||
bCanMoveInstallFolder: boolean;
|
||||
@@ -292,9 +300,18 @@ export interface AppDetails {
|
||||
vecMusicAlbums: any[];
|
||||
vecPlatforms: string[];
|
||||
vecScreenShots: any[];
|
||||
libraryAssets?: {
|
||||
logoPosition?: LogoPosition;
|
||||
};
|
||||
}
|
||||
|
||||
export interface SteamAppOverview {
|
||||
display_name: string;
|
||||
gameid: string;
|
||||
appid: number;
|
||||
icon_hash: string;
|
||||
third_party_mod?: boolean;
|
||||
selected_clientid?: string;
|
||||
BIsModOrShortcut: () => boolean;
|
||||
BIsShortcut: () => boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user