soccer-go
Version:
Soccer CLI for stats and results.
26 lines (25 loc) • 525 B
TypeScript
import type { IPlayerJson } from './Player';
export interface ITeamLinks {
self: string;
matches: string;
players: string;
}
export default class Team {
id: number;
name: string;
code: string;
shortName: string | null;
links: ITeamLinks;
squad: IPlayerJson[];
constructor(data: ITeamJson);
}
export interface ITeamJson {
id: number;
name: string;
shortName: string;
tla: string;
crest: string;
venue: string;
clubColors: string;
squad: IPlayerJson[];
}