UNPKG

ittf-pingpong

Version:

Unofficial API to retrieve player rankings and statistics from ITTF (International Table Tennis Federation) affiliated members and events.

54 lines (43 loc) 1.03 kB
export {}; declare global { //// currentRankings interface RankEntry { name : string, rank : string, assoc : string, points : string }; interface Player { player : object } type Rankings = RankEntry[]; type Stats = Player; //// playerIttfId type FullName = { playerFullName: string; playerGivenName?: never; playerFamilyName?: never; playerIttfId?: never; }; type GivenName = { playerFullName?: never; playerGivenName: string; playerFamilyName?: never; playerIttfId?: never; }; type FamilyName = { playerFullName?: never; playerGivenName?: never; playerFamilyName: string; playerIttfId?: never; }; //// playerProfile type PlayerFullName = { playerFullName: string; playerIttfId?: never; }; type IttfId = { playerIttfId: number; playerFullName?: never; }; }