@lovebowls/leaguejs
Version:
A framework-agnostic JavaScript library for managing leagues, teams, and matches
27 lines (26 loc) • 636 B
TypeScript
/**
* League table calculator for leagueJS
*/
export class LeagueTableCalculator {
/**
* Create a new league table calculator
* @param {League} league - League to calculate table for
*/
constructor(league: League);
league: League;
calculateTeamStats(teamId: any): {
teamId: any;
teamName: any;
played: number;
won: number;
drawn: number;
lost: number;
shotsFor: number;
shotsAgainst: number;
points: number;
rinksWon: number;
rinksDrawn: number;
rinksLost: number;
};
calculateLeagueTable(): any;
}