Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 28 additions & 8 deletions overwolf.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2637,8 +2637,11 @@ declare namespace overwolf.games.launchers {
}

declare namespace overwolf.games.launchers.events {
interface GetInfoResult<T = any> extends Result {
res: T;
interface GetInfoResult<T = any> {
success: boolean;
status: 'error' | 'success';
res?: T;
reason?: string;
}

interface SetRequiredFeaturesResult extends Result {
Expand Down Expand Up @@ -2735,14 +2738,31 @@ declare namespace overwolf.games.events {
reason: string;
}

interface InfoUpdate2 { }

interface InfoUpdates2Event
<Feature = string, Info extends InfoUpdate2 = InfoUpdate2> {
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.
Expand Down