UNPKG

sleeper-api-client

Version:
21 lines (20 loc) 846 B
interface IOptions { leagueId?: string; draftId?: string; } declare 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>; getLosersBracket(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>; } export default Sleeper;