UNPKG

weedwick-api

Version:

A helper library to ease the communication with the Riot API

17 lines (16 loc) 529 B
import { RequestConfig } from './types/api'; import { DataDragonChampions } from './types/ddragon'; export declare class Weedwick { private riotApiKey; private region; private locale; private ddVersions; private requestHandler; private errorHandler; constructor(riotApiKey?: string, config?: RequestConfig); private refreshLatestDDVersions; private getDDVersionByEndpoint; private createDDUrlForEndpoint; getChampionData: () => Promise<DataDragonChampions>; } export default Weedwick;