summaryrefslogtreecommitdiff
path: root/src/types.d.ts
blob: ebcf32c09ddc70a7831ea99a86fdf610dc40a6b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
declare module "*.svg" {
  const content: string;
  export default content;
}

declare module "*.png" {
  const content: string;
  export default content;
}

declare module "*.jpg" {
  const content: string;
  export default content;
}

interface SteamAppDetails {
  strLaunchOptions?: string;
  strShortcutLaunchOptions?: string;
  strShortcutStartDir?: string;
}

interface SteamAppDetailsRegistration {
  unregister: () => void;
}

interface SteamApps {
  RegisterForAppDetails(
    appId: number,
    callback: (details: SteamAppDetails) => void,
  ): SteamAppDetailsRegistration;
  SetAppLaunchOptions(appId: number, options: string): void | Promise<void>;
  SetShortcutLaunchOptions(appId: number, options: string): void | Promise<void>;
  TerminateApp(appId: string, param1: boolean): void;
  GetAllShortcuts?(): Promise<unknown[]>;
}

declare const SteamClient: {
  Apps: SteamApps;
};