mirror of https://github.com/Alia5/GlosSI
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
737 B
TypeScript
27 lines
737 B
TypeScript
export interface SteamClient {
|
|
Settings: {
|
|
// Current stable (As time of commit); Beta does not have this anymore...
|
|
SetInGameOverlayShowFPSCorner?: (value: 0|1|2|3|4) => void;
|
|
SetInGameOverlayShowFPSContrast?: (value: boolean) => void;
|
|
// TODO: find a way to change setting on beta (and soon stable...)
|
|
};
|
|
UI: {
|
|
GetUiMode: () => Promise<SteamUiMode>;
|
|
SetUiMode: (mode: SteamUiMode) => void;
|
|
};
|
|
Window: {
|
|
Minimize();
|
|
HideWindow();
|
|
};
|
|
}
|
|
|
|
export type FullSteamClient = Required<SteamClient>;
|
|
|
|
declare global {
|
|
interface Window {
|
|
SteamClient: SteamClient;
|
|
}
|
|
// eslint-disable-next-line
|
|
declare const SteamClient: SteamClient;
|
|
}
|