league-typedef
v1.0.2
Published
TypeScript Definitions for Riot Games' API
Downloads
5
Maintainers
Readme
league-typedef
TypeScript Type Definitions for League of Legends' API at https://developer.riotgames.com/api/methods
Installation
npm install --save-dev league-typedef
Usage
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.
In your Typescript file
import * as api from 'league-typedef';
Example
league-typenode is a Node.js wrapper that uses these definitions.
Types version
| 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 | | | ~~game~~ | ~~leagueApi.game~~ | ~~v1.3~~ | 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 |
License
league-typedef is distributed under The MIT License.