UNPKG

soccer-go

Version:

Soccer CLI for stats and results.

46 lines (45 loc) 1 kB
import Table from 'cli-table3'; import { IRowable } from '../tableBuilders/BaseTableBuilder'; import { Stage } from './Fixture'; export default class Standing implements IRowable { rank: number; team: string; playedGames: number; points: number; goals: number; goalsAgainst: number; goalDifference: number; wins: number; draws: number; losses: number; form: string | null; constructor(data: IStandingJson); toRow: () => Table.Cell[]; } export interface IStandingsJson { stage: Stage; type: string; group: string; table: IStandingJson[]; } export interface IStandingJson { position: number; team: ITeam; playedGames: number; form: string | null; won: number; draw: number; lost: number; points: number; goalsFor: number; goalsAgainst: number; goalDifference: number; } interface ITeam { id: number; name: string; shortName: string; tla: string; crest: string; } export {};