UNPKG

lol-tournament-stats

Version:

A library that aggregates stats from a League of Legends tournament using the response of the RiotAPI.

13 lines (12 loc) 740 B
import { RiotMatch } from "./riotInterfaces"; import { PersonStatistics, AggregatePersonStatistics } from "./internalInterfaces"; export * from "./riotInterfaces"; export declare class MatchParser { playerStatistics: Array<AggregatePersonStatistics>; games: Array<RiotMatch>; constructor(games: Array<RiotMatch>); static aggregateStats(riotMatches: Array<RiotMatch>): Array<AggregatePersonStatistics>; static aggregatePersonsStatistics(personsStatistics: Array<PersonStatistics>): Array<AggregatePersonStatistics>; static aggregatePersonStatistics(personStatistics: Array<PersonStatistics>): AggregatePersonStatistics; static riotMatchToPersonStatistics(match: RiotMatch): Array<PersonStatistics>; }