Closed ziyuanmw closed 9 months ago
League V4 entries is parameterized to return LeagueEntryDTO. https://github.com/Sansossio/twisted/blob/master/src/apis/lol/league/league.ts#L52
LeagueEntryDTO
return this.request<LeagueEntryDTO>(region, endpointsV4.LeagueEntries, params, false, { page })
On the Riot API docs, this API returns Set[LeagueEntryDTO]. https://developer.riotgames.com/apis#league-v4/GET_getLeagueEntries
Set[LeagueEntryDTO]
League V4 entries should be paramterized to LeagueEntryDTO[].
LeagueEntryDTO[]
return this.request<LeagueEntryDTO[]>(region, endpointsV4.LeagueEntries, params, false, { page })
feel free to open a pr!
Current
League V4 entries is parameterized to return
LeagueEntryDTO
. https://github.com/Sansossio/twisted/blob/master/src/apis/lol/league/league.ts#L52On the Riot API docs, this API returns
Set[LeagueEntryDTO]
. https://developer.riotgames.com/apis#league-v4/GET_getLeagueEntriesExpected
League V4 entries should be paramterized to
LeagueEntryDTO[]
.