lol-constants 2.9.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/assets/constants/Champion.d.ts +195 -195
- package/assets/constants/Champion.js +1 -1
- package/assets/constants/Item.d.ts +215 -202
- package/assets/constants/Item.js +1 -1
- package/assets/constants/Summoner.d.ts +1 -1
- package/assets/constants/Summoner.js +1 -1
- package/core/constants/DataDragonUrls.js +2 -2
- package/core/constants/Items/ItemKeys.d.ts +1 -2
- package/core/constants/Items/ItemKeys.js +1 -1
- package/core/constants/Items/ItemKeysNum.d.ts +1 -2
- package/core/constants/Items/ItemKeysNum.js +1 -1
- package/core/constants/Items/ItemNames.d.ts +1 -1
- package/core/constants/Items/ItemNames.js +1 -1
- package/core/constants/QueueTypes.d.ts +7 -0
- package/core/constants/QueueTypes.js +12 -0
- package/core/constants/Runes/RuneIconFileNames.d.ts +3 -2
- package/core/constants/Runes/RuneIconFileNames.js +6 -4
- package/core/helpers/Runes/getRuneCdnUrl.d.ts +1 -1
- package/core/helpers/Runes/getRuneCdnUrl.js +4 -1
- package/core/index.d.ts +1 -1
- package/core/index.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Provides constants and types for League of Legends related stuff within the context of [Riot APIs](https://developer.riotgames.com/docs/lol). Types such as [`ChampionId`](src/core/constants/Champions/ChampionIds.ts), [`ChampionName`](src/core/constants/Champions/ChampionNames.ts), [`ItemKey`](src/core/constants/Items/ItemKeys.ts), [`RuneId`](src/core/constants/Runes/RuneSetsByRuneNames.ts#L55), [`SpellName`](src/core/constants/Spells/SpellNames.ts), [`Position`](src/core/constants/Positions.ts), [`
|
1
|
+
Provides constants and types for League of Legends related stuff within the context of [Riot APIs](https://developer.riotgames.com/docs/lol). Types such as [`ChampionId`](src/core/constants/Champions/ChampionIds.ts), [`ChampionName`](src/core/constants/Champions/ChampionNames.ts), [`ItemKey`](src/core/constants/Items/ItemKeys.ts), [`RuneId`](src/core/constants/Runes/RuneSetsByRuneNames.ts#L55), [`SpellName`](src/core/constants/Spells/SpellNames.ts), [`Position`](src/core/constants/Positions.ts), [`QueueType`](src/core/constants/QueueTypes.ts), [`RankedTier`](src/core/constants/RankedTiers.ts), [`Region`](src/core/constants/Regions.ts) and more are provided. Certain URLs and URIs are available as constants as well in [`DataDragonUrls`](src/core/constants/DataDragonUrls.ts), [`PlatformApiUris`](src/core/constants/PlatformApiUris.ts), [`RegionalApiUris`](src/core/constants/RegionalApiUris.ts).
|
2
2
|
|
3
3
|
Advantages:
|
4
4
|
- Four categories — champions, items, runes, summoner spells — are armed with getter functions that exchange between id–key–name such as [`getChampionNameByKey`](src/core/helpers/Champions/getChampionNameByKey.ts)–[`getChampionIdByName`](src/core/helpers/Champions/getChampionIdByName.ts)–[`getChampionKeyById`](src/core/helpers/Champions/getChampionKeyById.ts)
|