diff --git a/overwolf.d.ts b/overwolf.d.ts index b076db6..e06ac5a 100644 --- a/overwolf.d.ts +++ b/overwolf.d.ts @@ -2637,8 +2637,11 @@ declare namespace overwolf.games.launchers { } declare namespace overwolf.games.launchers.events { - interface GetInfoResult extends Result { - res: T; + interface GetInfoResult { + success: boolean; + status: 'error' | 'success'; + res?: T; + reason?: string; } interface SetRequiredFeaturesResult extends Result { @@ -2735,14 +2738,31 @@ declare namespace overwolf.games.events { reason: string; } - interface InfoUpdate2 { } - - interface InfoUpdates2Event - { - info: Info; - feature: Feature; + type InfoUpdates2Event = { + feature: 'live_client_data'; + info: { + live_client_data: { + active_player?: string; + all_players?: string; + events?: string; + game_data?: string; + port?: number; + } + }; + } | { + feature: 'matchState'; + info: { + game_info: { + matchStarted?: 'true' | 'false'; + matchId?: string; + } + }; + } | { + feature: 'gep_internal' | 'match_info' | 'death' | 'respawn' | 'abilities' | 'kill' | 'assist' | 'gold' | 'minions' | 'summoner_info' | 'gameMode' | 'teams' | 'level' | 'announcer' | 'counters' | 'damage' | 'heal'; + info: any; } + /** * Sets the required features from the provider. * @param features A string array of features to utilize.