Skip to content

Commit

Permalink
Added support for CurrentGameInfo in index.d.ts (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Namtsua authored and cnguy committed Jan 16, 2018
1 parent 0382bad commit 207f24d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ declare class KaynClass {
list: (queueName: queueName) => KaynRequest<dtos.LeagueV3LeagueListDTO>;
}

public CurrentGame: {
by: {
summonerID: (summonerID: number) => KaynRequest<dtos.SpectatorV3CurrentGameInfo>;
}
}

public Leagues: {
by: {
summonerID: (summonerID: number) => KaynRequest<dtos.LeagueV3LeagueListDTO[]>;
Expand Down Expand Up @@ -258,4 +264,4 @@ declare module 'kayn' {
const GET_BY_SUMMONER_ID = 'SUMMONER.GET_BY_SUMMONER_ID'
}
}
}
}

0 comments on commit 207f24d

Please sign in to comment.