riotg.api
Version:
<a href="https://www.npmjs.com/package/riotg.api"> <img src="https://img.shields.io/static/v1?label=npm&message=riotg.api&color=red&style=for-the-badge&logo=NPM" /> </a>
12 lines (11 loc) • 554 B
TypeScript
import { ISummonerResponse } from "./interfaces";
import { IApiErrorResponse } from "../../utils/interface";
export declare class SummonerClient {
private apiKey;
private region;
constructor(apiKey: string, region: string);
getByName(name: string): Promise<ISummonerResponse | IApiErrorResponse>;
getByAccountId(accountId: string): Promise<ISummonerResponse | IApiErrorResponse>;
getByPUUID(puuid: string): Promise<ISummonerResponse | IApiErrorResponse>;
getById(id: string): Promise<ISummonerResponse | IApiErrorResponse>;
}