From ce3860f73bbc5fa0eee97e9b041cc85ae759ea2b Mon Sep 17 00:00:00 2001 From: Tormak <63308171+Tormak9970@users.noreply.github.com> Date: Mon, 17 Oct 2022 08:39:37 -0400 Subject: [PATCH] added jsdoc and SteamClient global declaration --- src/deck-components/SteamClient.ts | 5 ++++- src/deck-components/index.ts | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/deck-components/SteamClient.ts b/src/deck-components/SteamClient.ts index 66563be..71e89b0 100644 --- a/src/deck-components/SteamClient.ts +++ b/src/deck-components/SteamClient.ts @@ -195,8 +195,11 @@ export interface SteamShortcut { }; } +/** + * @prop unAppID is not properly set by Steam for non-steam game shortcuts, so it defaults to 0 for them + */ export interface LifetimeNotification { - unAppID: number; // seems to be 0 for shortcuts :/ + unAppID: number; nInstanceID: number; bRunning: boolean; } diff --git a/src/deck-components/index.ts b/src/deck-components/index.ts index a8c9904..3bcb7f4 100755 --- a/src/deck-components/index.ts +++ b/src/deck-components/index.ts @@ -22,3 +22,9 @@ export * from './TextField'; export * from './Toggle'; export * from './ToggleField'; export * from './SteamClient'; + +import {SteamClient} from './SteamClient' + +declare global { + var SteamClient: SteamClient; +} \ No newline at end of file