TypeScript Type Definitions for League of Legends' API at https://developer.riotgames.com/api/methods
npm install --save-dev league-typedef
Use these type definitions when building a TypeScript library around League of Legends' official API.
NB : This package consists of only TypeScript Type Definitions (.d.ts
). Its intended use is to ease the writing of League of Legends Typescript programs by providing types for all the API endpoints.
import * as api from 'league-typedef';
league-typenode is a Node.js wrapper that uses these definitions.
Method | Module name | Version | Remarks |
---|---|---|---|
champion | leagueApi.champion | v1.2 | |
championmastery | leagueApi.championmastery | ||
current-game | leagueApi.currentGame | v1.0 | |
featured-games | leagueApi.featuredGames | v1.0 | |
deprecated | |||
league | leagueApi.league | v2.5 | |
lol-static-data | leagueApi.lolStaticData | v1.2 | |
lol-status | leagueApi.lolStatus | v1.0 | |
match | leagueApi.match | v2.2 | |
matchlist | leagueApi.matchlist | v2.2 | |
runes-masteries | leagueApi.runesMasteries | v1.4 | |
stats | leagueApi.stats | v1.3 | |
summoner | leagueApi.summoner | v1.4 | |
tournament-provider | leagueApi.tournamentProvider | v1 | Uses a different api key |
league-typedef is distributed under The MIT License.