thesportsdb-client
    Preparing search index...

    Interface FormerTeam

    A team a player used to play for (lookupformerteams.php, lookup/player_teams).

    interface FormerTeam {
        appearances: number | null;
        badge: string | null;
        departed: string | null;
        goals: number | null;
        id: number | null;
        joined: string | null;
        kind: "FormerTeam";
        moveType: string | null;
        player: string | null;
        playerId: number | null;
        raw: RawRecord;
        sport: string | null;
        team: string | null;
        teamId: number | null;
    }

    Hierarchy (View Summary)

    Index
    appearances: number | null

    intAppearances

    badge: string | null

    strBadge

    departed: string | null

    strDeparted: usually a year, as text

    goals: number | null

    intGoals

    id: number | null

    id

    joined: string | null

    strJoined: usually a year, as text

    kind: "FormerTeam"
    moveType: string | null

    strMoveType, e.g. Permanent, Loan

    player: string | null

    strPlayer

    playerId: number | null

    idPlayer

    raw: RawRecord

    Every field as the API sent it (blank strings as null). Use it for unmodelled fields: team.raw["strKeywords"].

    sport: string | null

    strSport

    team: string | null

    strFormerTeam

    teamId: number | null

    idFormerTeam: the team's idTeam