1.0.2 • Published 7 years ago

league-typedef v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

league-typedef

NPM version

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

MethodModule nameVersionRemarks
championleagueApi.championv1.2
championmasteryleagueApi.championmastery
current-gameleagueApi.currentGamev1.0
featured-gamesleagueApi.featuredGamesv1.0
gameleagueApi.gamev1.3deprecated
leagueleagueApi.leaguev2.5
lol-static-dataleagueApi.lolStaticDatav1.2
lol-statusleagueApi.lolStatusv1.0
matchleagueApi.matchv2.2
matchlistleagueApi.matchlistv2.2
runes-masteriesleagueApi.runesMasteriesv1.4
statsleagueApi.statsv1.3
summonerleagueApi.summonerv1.4
tournament-providerleagueApi.tournamentProviderv1Uses a different api key

License

league-typedef is distributed under The MIT License.