diff options
Diffstat (limited to 'src/types.d.ts')
| -rw-r--r-- | src/types.d.ts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/types.d.ts b/src/types.d.ts index dfc0472..4b88d3d 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -12,3 +12,27 @@ declare module "*.jpg" { const content: string; export default content; } + +interface SteamAppDetails { + strLaunchOptions?: string; + strShortcutLaunchOptions?: string; + strShortcutExe?: 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>; + GetAllShortcuts?(): Promise<unknown[]>; +} + +declare const SteamClient: { + Apps: SteamApps; +}; |
