UNPKG

lol-constants

Version:

League of Legends constants, functions, and types. Provides a plathera of functions to easily convert between ID, Name, and Key for champions, items, summoner spells, and runes.

28 lines (27 loc) 1.73 kB
// # . export { lol } from './lol'; export { Patch } from './Patch'; // # constants export * from './constants/custom'; export * from './constants/events'; export * from './constants/history'; export * from './constants/leagues'; export * from './constants/locales'; export * from './constants/participants'; // # enums export { ItemSrTypes } from './enums/ItemSrTypes'; export { StatRuneSlots } from './enums/StatRuneSlots'; // # helpers export { getChampion, isChampionId, isChampionKey, isChampionName, isChampion, } from './helpers/champion'; export { getItem, isStarterItem, isBasicItem, isEpicItem, isLegendaryItem, isTrinketItem, isBootsItem, isConsumableItem, isItemAvailableOnMap, isItemId, isItemName, isItem, } from './helpers/item'; export { makeRiotId, splitRiotId, validateRiotId, } from './helpers/riotId'; export { getRune, getStatRune, getRuneTree, isRuneId, isRuneKey, isRuneName, isRune, isStatRuneId, isStatRuneName, isStatRune, isRuneTreeId, isRuneTreeKey, isRuneTreeName, isRuneTree, } from './helpers/rune'; export { getSpell, isSpellId, isSpellKey, isSpellName, isSpell, } from './helpers/spell'; export { MapsArr as Maps, getMap, isMapId, isMapTitle } from './objects/Maps'; export { QueuesArr as Queues, isQueueId, isQueueTitle, isQueue, getQueue, } from './objects/Queues'; export { RegionsArr as Regions, getRegion, isPlatform, isRegion, } from './objects/Regions'; // ## generated export { ChampionsArr as Champions } from './objects/generated/Champions'; export { ItemsArr as Items } from './objects/generated/Items'; export { RunesArr as Runes, StatRunesArr as StatRunes, RuneTreesArr as RuneTrees, } from './objects/generated/Runes'; export { SpellsArr as Spells } from './objects/generated/Spells';