zhonya
Version:
A simple and typed League of Legends API wrapper for Node.js
18 lines (17 loc) • 546 B
TypeScript
import { IZhonyaContext } from "../client";
import { ChampionsDto } from "../resources/champion/types";
/**
* Class for accessing champion-related functionalities
*/
export declare class ChampionAPI {
private championService;
private context;
constructor(context: IZhonyaContext);
/**
* Get all champions
* @returns Data for all champions
* @throws {ZhonyaError} - If the client is not initialized
* @remarks **This method does not require an API key to work**
*/
getAll(): Promise<ChampionsDto>;
}