UNPKG

fantasy-api-client

Version:

API client to easily interact with various fantasy sports APIs including ESPN, Yahoo, and Sleeper

17 lines (16 loc) 839 B
import IOptions from './IOptions'; export default class Sleeper { options: IOptions; constructor(options: IOptions); getDrafts: (leagueId?: string | undefined) => Promise<any>; getDraftPicks: (draftId?: string | undefined) => Promise<any>; getNFLState: () => Promise<any>; getLeague: (leagueId?: string | undefined) => Promise<any>; getMatchupsByWeek: (leagueId: string | undefined, week: number) => Promise<any>; getWinnersBracket: (leagueId?: string | undefined) => Promise<any>; getLoserBracket: (leagueId?: string | undefined) => Promise<any>; getUsers: (leagueId?: string | undefined) => Promise<any>; getPlayers: () => Promise<any>; getRosters: (leagueId?: string | undefined) => Promise<any>; getTransactionsByWeek: (leagueId: string | undefined, week: number) => Promise<any>; }