feat(plugin): update SteamClient type declarations
This commit is contained in:
Vendored
+10
-14
@@ -1,31 +1,27 @@
|
|||||||
// Decky Loader API type declarations
|
// Steam Deck CEF context globals — these are Valve's internal APIs,
|
||||||
// These mirror the APIs available in the Steam Deck game mode CEF context
|
// available in the Steam Deck game mode browser context.
|
||||||
|
// Not part of @decky/api; accessed directly from the global scope.
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
const DeckyPlugin: {
|
|
||||||
log: (...args: unknown[]) => void
|
|
||||||
debug: (...args: unknown[]) => void
|
|
||||||
info: (...args: unknown[]) => void
|
|
||||||
error: (...args: unknown[]) => void
|
|
||||||
}
|
|
||||||
|
|
||||||
const SteamClient: {
|
const SteamClient: {
|
||||||
Apps: {
|
Apps: {
|
||||||
GetAppData: (appId: number) => Promise<{
|
|
||||||
strAppName: string
|
|
||||||
strShortcutName: string
|
|
||||||
strExePath: string
|
|
||||||
}>
|
|
||||||
RegisterForGameStarted: (
|
RegisterForGameStarted: (
|
||||||
callback: (appId: number) => void,
|
callback: (appId: number) => void,
|
||||||
) => { unregister: () => void }
|
) => { unregister: () => void }
|
||||||
RegisterForGameStopped: (
|
RegisterForGameStopped: (
|
||||||
callback: (appId: number) => void,
|
callback: (appId: number) => void,
|
||||||
) => { unregister: () => void }
|
) => { unregister: () => void }
|
||||||
|
GetCurrentGameInfo: () => Promise<{
|
||||||
|
appId: number
|
||||||
|
strAppName: string
|
||||||
|
}>
|
||||||
}
|
}
|
||||||
System: {
|
System: {
|
||||||
GetOSVersion: () => Promise<string>
|
GetOSVersion: () => Promise<string>
|
||||||
}
|
}
|
||||||
|
UI: {
|
||||||
|
GetUIMode: () => Promise<number>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user