lol-constants 2.26.0 → 3.0.0-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (430) hide show
  1. package/README.md +130 -28
  2. package/dist/Locale.d.ts +2 -0
  3. package/dist/Patch.d.ts +3 -0
  4. package/dist/Patch.js +3 -0
  5. package/{core/constants/Champions/ChampionClasses.d.ts → dist/constants/custom.d.ts} +1 -1
  6. package/{core/constants/Champions/ChampionClasses.js → dist/constants/custom.js} +2 -2
  7. package/dist/constants/events.d.ts +49 -0
  8. package/dist/constants/events.js +55 -0
  9. package/dist/constants/history.d.ts +26 -0
  10. package/dist/constants/history.js +29 -0
  11. package/{core/constants/RankedTiers.d.ts → dist/constants/leagues.d.ts} +9 -1
  12. package/{core/constants/RankedTiers.js → dist/constants/leagues.js} +11 -2
  13. package/{core/constants/Locales.d.ts → dist/constants/locales.d.ts} +1 -1
  14. package/{core/constants/Locales.js → dist/constants/locales.js} +2 -2
  15. package/dist/constants/participants.d.ts +38 -0
  16. package/dist/constants/participants.js +43 -0
  17. package/dist/enums/ItemSrTypes.d.ts +11 -0
  18. package/dist/enums/ItemSrTypes.js +10 -0
  19. package/dist/enums/StatRuneSlots.d.ts +6 -0
  20. package/dist/enums/StatRuneSlots.js +5 -0
  21. package/dist/helpers/champion.d.ts +678 -0
  22. package/dist/helpers/champion.js +18 -0
  23. package/dist/helpers/item.d.ts +39 -0
  24. package/dist/helpers/item.js +113 -0
  25. package/dist/helpers/riotId.d.ts +16 -0
  26. package/dist/helpers/riotId.js +33 -0
  27. package/dist/helpers/rune.d.ts +36 -0
  28. package/dist/helpers/rune.js +70 -0
  29. package/dist/helpers/spell.d.ts +6 -0
  30. package/dist/helpers/spell.js +18 -0
  31. package/dist/helpers/type.d.ts +3 -0
  32. package/dist/index.d.ts +30 -0
  33. package/dist/index.js +27 -0
  34. package/dist/lol.d.ts +4029 -0
  35. package/dist/lol.js +182 -0
  36. package/dist/objects/Maps.d.ts +113 -0
  37. package/dist/objects/Maps.js +69 -0
  38. package/dist/objects/Queues.d.ts +192 -0
  39. package/dist/objects/Queues.js +71 -0
  40. package/dist/objects/Regions.d.ts +132 -0
  41. package/dist/objects/Regions.js +55 -0
  42. package/dist/objects/generated/Champions.d.ts +1858 -0
  43. package/dist/objects/generated/Champions.js +4 -0
  44. package/dist/objects/generated/Items.d.ts +5108 -0
  45. package/dist/objects/generated/Items.js +4 -0
  46. package/dist/objects/generated/Runes.d.ts +1477 -0
  47. package/dist/objects/generated/Runes.js +13 -0
  48. package/dist/objects/generated/Spells.d.ts +208 -0
  49. package/dist/objects/generated/Spells.js +4 -0
  50. package/package.json +17 -15
  51. package/assets/constants/BootsItemNames.d.ts +0 -1
  52. package/assets/constants/BootsItemNames.js +0 -13
  53. package/assets/constants/LegendaryItemNames.d.ts +0 -4
  54. package/assets/constants/LegendaryItemNames.js +0 -125
  55. package/assets/constants/StatRunes.d.ts +0 -28
  56. package/assets/constants/StatRunes.js +0 -11
  57. package/assets/constants/StatRunesByRow.d.ts +0 -17
  58. package/assets/constants/StatRunesByRow.js +0 -17
  59. package/assets/constants/base/Champion.d.ts +0 -7903
  60. package/assets/constants/base/Champion.js +0 -1
  61. package/assets/constants/base/Item.d.ts +0 -21193
  62. package/assets/constants/base/Item.js +0 -1
  63. package/assets/constants/base/RunesReforged.d.ts +0 -491
  64. package/assets/constants/base/RunesReforged.js +0 -1
  65. package/assets/constants/base/Summoner.d.ts +0 -582
  66. package/assets/constants/base/Summoner.js +0 -1
  67. package/assets/index.d.ts +0 -4
  68. package/assets/index.js +0 -11
  69. package/assets/scripts/asset-scripts/champion.js +0 -10
  70. package/assets/scripts/asset-scripts/generate-all.d.ts +0 -4
  71. package/assets/scripts/asset-scripts/generate-all.js +0 -4
  72. package/assets/scripts/asset-scripts/item.d.ts +0 -1
  73. package/assets/scripts/asset-scripts/item.js +0 -10
  74. package/assets/scripts/asset-scripts/runes-reforged.d.ts +0 -1
  75. package/assets/scripts/asset-scripts/runes-reforged.js +0 -10
  76. package/assets/scripts/asset-scripts/summoner.d.ts +0 -1
  77. package/assets/scripts/asset-scripts/summoner.js +0 -10
  78. package/assets/scripts/constants/RuneIdComment.d.ts +0 -1
  79. package/assets/scripts/constants/RuneIdComment.js +0 -24
  80. package/assets/scripts/generate-all.d.ts +0 -23
  81. package/assets/scripts/generate-all.js +0 -27
  82. package/assets/scripts/generate-categorized-item-keys-num.d.ts +0 -1
  83. package/assets/scripts/generate-categorized-item-keys-num.js +0 -57
  84. package/assets/scripts/generate-categorized-item-keys.d.ts +0 -1
  85. package/assets/scripts/generate-categorized-item-keys.js +0 -59
  86. package/assets/scripts/generate-categorized-item-names.d.ts +0 -1
  87. package/assets/scripts/generate-categorized-item-names.js +0 -56
  88. package/assets/scripts/generate-champion-ids-by-name.d.ts +0 -1
  89. package/assets/scripts/generate-champion-ids-by-name.js +0 -17
  90. package/assets/scripts/generate-champion-ids.d.ts +0 -1
  91. package/assets/scripts/generate-champion-ids.js +0 -18
  92. package/assets/scripts/generate-champion-keys-num.d.ts +0 -1
  93. package/assets/scripts/generate-champion-keys-num.js +0 -20
  94. package/assets/scripts/generate-champion-keys.d.ts +0 -1
  95. package/assets/scripts/generate-champion-keys.js +0 -18
  96. package/assets/scripts/generate-champion-names.d.ts +0 -1
  97. package/assets/scripts/generate-champion-names.js +0 -18
  98. package/assets/scripts/generate-item-keys-num.d.ts +0 -1
  99. package/assets/scripts/generate-item-keys-num.js +0 -24
  100. package/assets/scripts/generate-item-keys.d.ts +0 -1
  101. package/assets/scripts/generate-item-keys.js +0 -22
  102. package/assets/scripts/generate-item-names.d.ts +0 -1
  103. package/assets/scripts/generate-item-names.js +0 -22
  104. package/assets/scripts/generate-non-stat-rune-ids-num.d.ts +0 -1
  105. package/assets/scripts/generate-non-stat-rune-ids-num.js +0 -21
  106. package/assets/scripts/generate-non-stat-rune-ids.d.ts +0 -1
  107. package/assets/scripts/generate-non-stat-rune-ids.js +0 -22
  108. package/assets/scripts/generate-non-stat-rune-names.d.ts +0 -1
  109. package/assets/scripts/generate-non-stat-rune-names.js +0 -20
  110. package/assets/scripts/generate-rune-ids.d.ts +0 -1
  111. package/assets/scripts/generate-rune-ids.js +0 -27
  112. package/assets/scripts/generate-rune-names.d.ts +0 -1
  113. package/assets/scripts/generate-rune-names.js +0 -25
  114. package/assets/scripts/generate-rune-picking-relationships.d.ts +0 -1
  115. package/assets/scripts/generate-rune-picking-relationships.js +0 -52
  116. package/assets/scripts/generate-rune-sets-by-rune-names-num.d.ts +0 -1
  117. package/assets/scripts/generate-rune-sets-by-rune-names-num.js +0 -121
  118. package/assets/scripts/generate-rune-sets-by-rune-names.d.ts +0 -1
  119. package/assets/scripts/generate-rune-sets-by-rune-names.js +0 -119
  120. package/assets/scripts/generate-rune-sets.d.ts +0 -1
  121. package/assets/scripts/generate-rune-sets.js +0 -116
  122. package/assets/scripts/generate-spell-ids-by-name.d.ts +0 -1
  123. package/assets/scripts/generate-spell-ids-by-name.js +0 -17
  124. package/assets/scripts/generate-spell-ids.d.ts +0 -1
  125. package/assets/scripts/generate-spell-ids.js +0 -18
  126. package/assets/scripts/generate-spell-keys-num.d.ts +0 -1
  127. package/assets/scripts/generate-spell-keys-num.js +0 -20
  128. package/assets/scripts/generate-spell-keys.d.ts +0 -1
  129. package/assets/scripts/generate-spell-keys.js +0 -18
  130. package/assets/scripts/generate-spell-names.d.ts +0 -1
  131. package/assets/scripts/generate-spell-names.js +0 -18
  132. package/assets/scripts/generate-stat-rune-ids.d.ts +0 -1
  133. package/assets/scripts/generate-stat-rune-ids.js +0 -18
  134. package/assets/scripts/generate-stat-rune-names.d.ts +0 -1
  135. package/assets/scripts/generate-stat-rune-names.js +0 -16
  136. package/assets/scripts/helpers/enableEscapedValues.d.ts +0 -15
  137. package/assets/scripts/helpers/enableEscapedValues.js +0 -34
  138. package/assets/scripts/helpers/generateIndexFile.d.ts +0 -1
  139. package/assets/scripts/helpers/generateIndexFile.js +0 -3
  140. package/assets/scripts/helpers/getExportStatement.d.ts +0 -6
  141. package/assets/scripts/helpers/getExportStatement.js +0 -37
  142. package/assets/scripts/helpers/getFmtdComment.d.ts +0 -5
  143. package/assets/scripts/helpers/getFmtdComment.js +0 -11
  144. package/assets/scripts/helpers/validateNumber.d.ts +0 -1
  145. package/assets/scripts/helpers/validateNumber.js +0 -6
  146. package/assets/scripts/helpers/writeToTmpFile.d.ts +0 -13
  147. package/assets/scripts/helpers/writeToTmpFile.js +0 -18
  148. package/assets/scripts/print-file-names.d.ts +0 -1
  149. package/assets/scripts/print-file-names.js +0 -89
  150. package/core/Locale.d.ts +0 -2
  151. package/core/PatchVersion.d.ts +0 -1
  152. package/core/PatchVersion.js +0 -1
  153. package/core/constants/Abilities.d.ts +0 -17
  154. package/core/constants/Abilities.js +0 -19
  155. package/core/constants/BuildingTypes.d.ts +0 -6
  156. package/core/constants/BuildingTypes.js +0 -7
  157. package/core/constants/Champions/ChampionIds.d.ts +0 -171
  158. package/core/constants/Champions/ChampionIds.js +0 -1
  159. package/core/constants/Champions/ChampionIdsByName.d.ts +0 -170
  160. package/core/constants/Champions/ChampionIdsByName.js +0 -1
  161. package/core/constants/Champions/ChampionKeys.d.ts +0 -171
  162. package/core/constants/Champions/ChampionKeys.js +0 -1
  163. package/core/constants/Champions/ChampionKeysNum.d.ts +0 -171
  164. package/core/constants/Champions/ChampionKeysNum.js +0 -1
  165. package/core/constants/Champions/ChampionNames.d.ts +0 -171
  166. package/core/constants/Champions/ChampionNames.js +0 -1
  167. package/core/constants/Continents.d.ts +0 -8
  168. package/core/constants/Continents.js +0 -9
  169. package/core/constants/DataDragonUrls.d.ts +0 -52
  170. package/core/constants/DataDragonUrls.js +0 -58
  171. package/core/constants/DragonTypes.d.ts +0 -11
  172. package/core/constants/DragonTypes.js +0 -12
  173. package/core/constants/GameModes.d.ts +0 -12
  174. package/core/constants/GameModes.js +0 -13
  175. package/core/constants/GameTypes.d.ts +0 -7
  176. package/core/constants/GameTypes.js +0 -8
  177. package/core/constants/Items/BootsItemKeys.d.ts +0 -14
  178. package/core/constants/Items/BootsItemKeys.js +0 -1
  179. package/core/constants/Items/BootsItemKeysNum.d.ts +0 -14
  180. package/core/constants/Items/BootsItemKeysNum.js +0 -1
  181. package/core/constants/Items/BootsItemNames.d.ts +0 -14
  182. package/core/constants/Items/BootsItemNames.js +0 -1
  183. package/core/constants/Items/ItemKeys.d.ts +0 -238
  184. package/core/constants/Items/ItemKeys.js +0 -1
  185. package/core/constants/Items/ItemKeysNum.d.ts +0 -238
  186. package/core/constants/Items/ItemKeysNum.js +0 -1
  187. package/core/constants/Items/ItemNames.d.ts +0 -244
  188. package/core/constants/Items/ItemNames.js +0 -1
  189. package/core/constants/Items/ItemTypes.d.ts +0 -7
  190. package/core/constants/Items/ItemTypes.js +0 -8
  191. package/core/constants/Items/LegendaryItemKeys.d.ts +0 -112
  192. package/core/constants/Items/LegendaryItemKeys.js +0 -1
  193. package/core/constants/Items/LegendaryItemKeysNum.d.ts +0 -112
  194. package/core/constants/Items/LegendaryItemKeysNum.js +0 -1
  195. package/core/constants/Items/LegendaryItemNames.d.ts +0 -112
  196. package/core/constants/Items/LegendaryItemNames.js +0 -1
  197. package/core/constants/KillTypes.d.ts +0 -7
  198. package/core/constants/KillTypes.js +0 -8
  199. package/core/constants/LaneTypes.d.ts +0 -7
  200. package/core/constants/LaneTypes.js +0 -8
  201. package/core/constants/Lanes.d.ts +0 -8
  202. package/core/constants/Lanes.js +0 -9
  203. package/core/constants/LeagueTexts.d.ts +0 -49
  204. package/core/constants/LeagueTexts.js +0 -54
  205. package/core/constants/Levels.d.ts +0 -22
  206. package/core/constants/Levels.js +0 -23
  207. package/core/constants/MapIds.d.ts +0 -17
  208. package/core/constants/MapIds.js +0 -18
  209. package/core/constants/MonsterTypes.d.ts +0 -8
  210. package/core/constants/MonsterTypes.js +0 -9
  211. package/core/constants/ParticipantIds.d.ts +0 -14
  212. package/core/constants/ParticipantIds.js +0 -15
  213. package/core/constants/PlatformApiUris.d.ts +0 -20
  214. package/core/constants/PlatformApiUris.js +0 -21
  215. package/core/constants/PlatformIds.d.ts +0 -23
  216. package/core/constants/PlatformIds.js +0 -26
  217. package/core/constants/Positions.d.ts +0 -9
  218. package/core/constants/Positions.js +0 -10
  219. package/core/constants/QueueIds.d.ts +0 -114
  220. package/core/constants/QueueIds.js +0 -140
  221. package/core/constants/QueueTypes.d.ts +0 -7
  222. package/core/constants/QueueTypes.js +0 -8
  223. package/core/constants/RankedRanks.d.ts +0 -8
  224. package/core/constants/RankedRanks.js +0 -9
  225. package/core/constants/RegionalApiUris.d.ts +0 -8
  226. package/core/constants/RegionalApiUris.js +0 -9
  227. package/core/constants/Regions.d.ts +0 -23
  228. package/core/constants/Regions.js +0 -26
  229. package/core/constants/RelativeTeams.d.ts +0 -6
  230. package/core/constants/RelativeTeams.js +0 -7
  231. package/core/constants/Roles.d.ts +0 -8
  232. package/core/constants/Roles.js +0 -9
  233. package/core/constants/Runes/NonStatRuneIds.d.ts +0 -85
  234. package/core/constants/Runes/NonStatRuneIds.js +0 -1
  235. package/core/constants/Runes/NonStatRuneIdsNum.d.ts +0 -63
  236. package/core/constants/Runes/NonStatRuneIdsNum.js +0 -1
  237. package/core/constants/Runes/NonStatRuneNames.d.ts +0 -63
  238. package/core/constants/Runes/NonStatRuneNames.js +0 -1
  239. package/core/constants/Runes/RuneIconFileNames.d.ts +0 -14
  240. package/core/constants/Runes/RuneIconFileNames.js +0 -97
  241. package/core/constants/Runes/RunePickingRelationships.d.ts +0 -74
  242. package/core/constants/Runes/RunePickingRelationships.js +0 -4
  243. package/core/constants/Runes/RuneSets.d.ts +0 -721
  244. package/core/constants/Runes/RuneSets.js +0 -11
  245. package/core/constants/Runes/RuneSetsByRuneNames.d.ts +0 -765
  246. package/core/constants/Runes/RuneSetsByRuneNames.js +0 -11
  247. package/core/constants/Runes/RuneSetsByRuneNamesNum.d.ts +0 -765
  248. package/core/constants/Runes/RuneSetsByRuneNamesNum.js +0 -11
  249. package/core/constants/Runes/RuneTreeIds.d.ts +0 -11
  250. package/core/constants/Runes/RuneTreeIds.js +0 -14
  251. package/core/constants/Runes/RuneTreeIdsNum.d.ts +0 -11
  252. package/core/constants/Runes/RuneTreeIdsNum.js +0 -14
  253. package/core/constants/Runes/RuneTreeNames.d.ts +0 -11
  254. package/core/constants/Runes/RuneTreeNames.js +0 -14
  255. package/core/constants/Runes/RuneTreeTypes.d.ts +0 -6
  256. package/core/constants/Runes/RuneTreeTypes.js +0 -7
  257. package/core/constants/SkillSlots.d.ts +0 -8
  258. package/core/constants/SkillSlots.js +0 -9
  259. package/core/constants/Skills.d.ts +0 -8
  260. package/core/constants/Skills.js +0 -9
  261. package/core/constants/Spells/SpellIds.d.ts +0 -21
  262. package/core/constants/Spells/SpellIds.js +0 -1
  263. package/core/constants/Spells/SpellIdsByName.d.ts +0 -18
  264. package/core/constants/Spells/SpellIdsByName.js +0 -1
  265. package/core/constants/Spells/SpellKeys.d.ts +0 -21
  266. package/core/constants/Spells/SpellKeys.js +0 -1
  267. package/core/constants/Spells/SpellKeysNum.d.ts +0 -21
  268. package/core/constants/Spells/SpellKeysNum.js +0 -1
  269. package/core/constants/Spells/SpellNames.d.ts +0 -21
  270. package/core/constants/Spells/SpellNames.js +0 -1
  271. package/core/constants/TeamIds.d.ts +0 -6
  272. package/core/constants/TeamIds.js +0 -7
  273. package/core/constants/TowerTypes.d.ts +0 -8
  274. package/core/constants/TowerTypes.js +0 -9
  275. package/core/constants/WardTypes.d.ts +0 -9
  276. package/core/constants/WardTypes.js +0 -10
  277. package/core/helpers/Champions/getChampionIdByKey.d.ts +0 -4
  278. package/core/helpers/Champions/getChampionIdByKey.js +0 -4
  279. package/core/helpers/Champions/getChampionIdByName.d.ts +0 -3
  280. package/core/helpers/Champions/getChampionIdByName.js +0 -4
  281. package/core/helpers/Champions/getChampionKeyById.d.ts +0 -3
  282. package/core/helpers/Champions/getChampionKeyById.js +0 -4
  283. package/core/helpers/Champions/getChampionKeyByName.d.ts +0 -3
  284. package/core/helpers/Champions/getChampionKeyByName.js +0 -5
  285. package/core/helpers/Champions/getChampionNameById.d.ts +0 -3
  286. package/core/helpers/Champions/getChampionNameById.js +0 -5
  287. package/core/helpers/Champions/getChampionNameByKey.d.ts +0 -4
  288. package/core/helpers/Champions/getChampionNameByKey.js +0 -4
  289. package/core/helpers/Champions/isChampionId.d.ts +0 -2
  290. package/core/helpers/Champions/isChampionId.js +0 -4
  291. package/core/helpers/Champions/isChampionKey.d.ts +0 -2
  292. package/core/helpers/Champions/isChampionKey.js +0 -4
  293. package/core/helpers/Champions/isChampionKeyNum.d.ts +0 -2
  294. package/core/helpers/Champions/isChampionKeyNum.js +0 -4
  295. package/core/helpers/Champions/isChampionName.d.ts +0 -2
  296. package/core/helpers/Champions/isChampionName.js +0 -4
  297. package/core/helpers/Items/getItemKeyByName.d.ts +0 -3
  298. package/core/helpers/Items/getItemKeyByName.js +0 -4
  299. package/core/helpers/Items/getItemKeyNumByName.d.ts +0 -3
  300. package/core/helpers/Items/getItemKeyNumByName.js +0 -4
  301. package/core/helpers/Items/getItemNameByKey.d.ts +0 -4
  302. package/core/helpers/Items/getItemNameByKey.js +0 -4
  303. package/core/helpers/Items/isBootsItemKey.d.ts +0 -2
  304. package/core/helpers/Items/isBootsItemKey.js +0 -4
  305. package/core/helpers/Items/isBootsItemKeyNum.d.ts +0 -2
  306. package/core/helpers/Items/isBootsItemKeyNum.js +0 -4
  307. package/core/helpers/Items/isBootsItemName.d.ts +0 -2
  308. package/core/helpers/Items/isBootsItemName.js +0 -4
  309. package/core/helpers/Items/isItemKey.d.ts +0 -2
  310. package/core/helpers/Items/isItemKey.js +0 -4
  311. package/core/helpers/Items/isItemKeyNum.d.ts +0 -2
  312. package/core/helpers/Items/isItemKeyNum.js +0 -4
  313. package/core/helpers/Items/isItemName.d.ts +0 -2
  314. package/core/helpers/Items/isItemName.js +0 -4
  315. package/core/helpers/Items/isLegendaryItemKey.d.ts +0 -2
  316. package/core/helpers/Items/isLegendaryItemKey.js +0 -4
  317. package/core/helpers/Items/isLegendaryItemKeyNum.d.ts +0 -2
  318. package/core/helpers/Items/isLegendaryItemKeyNum.js +0 -4
  319. package/core/helpers/Items/isLegendaryItemName.d.ts +0 -2
  320. package/core/helpers/Items/isLegendaryItemName.js +0 -4
  321. package/core/helpers/Items/isTier2Boots.d.ts +0 -3
  322. package/core/helpers/Items/isTier2Boots.js +0 -9
  323. package/core/helpers/Runes/getNonStatRuneIdByName.d.ts +0 -3
  324. package/core/helpers/Runes/getNonStatRuneIdByName.js +0 -4
  325. package/core/helpers/Runes/getNonStatRuneNameById.d.ts +0 -3
  326. package/core/helpers/Runes/getNonStatRuneNameById.js +0 -4
  327. package/core/helpers/Runes/getRuneCategoryName.d.ts +0 -4
  328. package/core/helpers/Runes/getRuneCategoryName.js +0 -16
  329. package/core/helpers/Runes/getRuneCdnUrl.d.ts +0 -3
  330. package/core/helpers/Runes/getRuneCdnUrl.js +0 -50
  331. package/core/helpers/Runes/getRuneIdByName.d.ts +0 -3
  332. package/core/helpers/Runes/getRuneIdByName.js +0 -4
  333. package/core/helpers/Runes/getRuneNameById.d.ts +0 -3
  334. package/core/helpers/Runes/getRuneNameById.js +0 -4
  335. package/core/helpers/Runes/getStatRuneIdByName.d.ts +0 -3
  336. package/core/helpers/Runes/getStatRuneIdByName.js +0 -4
  337. package/core/helpers/Runes/getStatRuneNameById.d.ts +0 -3
  338. package/core/helpers/Runes/getStatRuneNameById.js +0 -4
  339. package/core/helpers/Runes/isDominationRuneId.d.ts +0 -2
  340. package/core/helpers/Runes/isDominationRuneId.js +0 -4
  341. package/core/helpers/Runes/isDominationRuneIdNum.d.ts +0 -2
  342. package/core/helpers/Runes/isDominationRuneIdNum.js +0 -4
  343. package/core/helpers/Runes/isDominationRuneName.d.ts +0 -2
  344. package/core/helpers/Runes/isDominationRuneName.js +0 -4
  345. package/core/helpers/Runes/isInspirationRuneId.d.ts +0 -2
  346. package/core/helpers/Runes/isInspirationRuneId.js +0 -4
  347. package/core/helpers/Runes/isInspirationRuneIdNum.d.ts +0 -2
  348. package/core/helpers/Runes/isInspirationRuneIdNum.js +0 -4
  349. package/core/helpers/Runes/isInspirationRuneName.d.ts +0 -2
  350. package/core/helpers/Runes/isInspirationRuneName.js +0 -4
  351. package/core/helpers/Runes/isKeystoneRuneId.d.ts +0 -2
  352. package/core/helpers/Runes/isKeystoneRuneId.js +0 -4
  353. package/core/helpers/Runes/isKeystoneRuneIdNum.d.ts +0 -2
  354. package/core/helpers/Runes/isKeystoneRuneIdNum.js +0 -4
  355. package/core/helpers/Runes/isKeystoneRuneName.d.ts +0 -2
  356. package/core/helpers/Runes/isKeystoneRuneName.js +0 -4
  357. package/core/helpers/Runes/isNonStatRuneId.d.ts +0 -2
  358. package/core/helpers/Runes/isNonStatRuneId.js +0 -4
  359. package/core/helpers/Runes/isNonStatRuneIdNum.d.ts +0 -2
  360. package/core/helpers/Runes/isNonStatRuneIdNum.js +0 -4
  361. package/core/helpers/Runes/isNonStatRuneName.d.ts +0 -2
  362. package/core/helpers/Runes/isNonStatRuneName.js +0 -4
  363. package/core/helpers/Runes/isPrecisionRuneId.d.ts +0 -2
  364. package/core/helpers/Runes/isPrecisionRuneId.js +0 -4
  365. package/core/helpers/Runes/isPrecisionRuneIdNum.d.ts +0 -2
  366. package/core/helpers/Runes/isPrecisionRuneIdNum.js +0 -4
  367. package/core/helpers/Runes/isPrecisionRuneName.d.ts +0 -2
  368. package/core/helpers/Runes/isPrecisionRuneName.js +0 -4
  369. package/core/helpers/Runes/isResolveRuneId.d.ts +0 -2
  370. package/core/helpers/Runes/isResolveRuneId.js +0 -4
  371. package/core/helpers/Runes/isResolveRuneIdNum.d.ts +0 -2
  372. package/core/helpers/Runes/isResolveRuneIdNum.js +0 -4
  373. package/core/helpers/Runes/isResolveRuneName.d.ts +0 -2
  374. package/core/helpers/Runes/isResolveRuneName.js +0 -4
  375. package/core/helpers/Runes/isRuneId.d.ts +0 -2
  376. package/core/helpers/Runes/isRuneId.js +0 -4
  377. package/core/helpers/Runes/isRuneIdNum.d.ts +0 -2
  378. package/core/helpers/Runes/isRuneIdNum.js +0 -4
  379. package/core/helpers/Runes/isRuneName.d.ts +0 -2
  380. package/core/helpers/Runes/isRuneName.js +0 -4
  381. package/core/helpers/Runes/isSorceryRuneId.d.ts +0 -2
  382. package/core/helpers/Runes/isSorceryRuneId.js +0 -4
  383. package/core/helpers/Runes/isSorceryRuneIdNum.d.ts +0 -2
  384. package/core/helpers/Runes/isSorceryRuneIdNum.js +0 -4
  385. package/core/helpers/Runes/isSorceryRuneName.d.ts +0 -2
  386. package/core/helpers/Runes/isSorceryRuneName.js +0 -4
  387. package/core/helpers/Runes/isStatRuneId.d.ts +0 -2
  388. package/core/helpers/Runes/isStatRuneId.js +0 -4
  389. package/core/helpers/Runes/isStatRuneIdNum.d.ts +0 -2
  390. package/core/helpers/Runes/isStatRuneIdNum.js +0 -4
  391. package/core/helpers/Runes/isStatRuneName.d.ts +0 -2
  392. package/core/helpers/Runes/isStatRuneName.js +0 -4
  393. package/core/helpers/Spells/getSpellIdByKey.d.ts +0 -4
  394. package/core/helpers/Spells/getSpellIdByKey.js +0 -4
  395. package/core/helpers/Spells/getSpellIdByName.d.ts +0 -3
  396. package/core/helpers/Spells/getSpellIdByName.js +0 -4
  397. package/core/helpers/Spells/getSpellKeyById.d.ts +0 -3
  398. package/core/helpers/Spells/getSpellKeyById.js +0 -4
  399. package/core/helpers/Spells/getSpellKeyByName.d.ts +0 -3
  400. package/core/helpers/Spells/getSpellKeyByName.js +0 -5
  401. package/core/helpers/Spells/getSpellNameById.d.ts +0 -3
  402. package/core/helpers/Spells/getSpellNameById.js +0 -5
  403. package/core/helpers/Spells/getSpellNameByKey.d.ts +0 -4
  404. package/core/helpers/Spells/getSpellNameByKey.js +0 -4
  405. package/core/helpers/Spells/isSpellId.d.ts +0 -2
  406. package/core/helpers/Spells/isSpellId.js +0 -4
  407. package/core/helpers/Spells/isSpellKey.d.ts +0 -2
  408. package/core/helpers/Spells/isSpellKey.js +0 -4
  409. package/core/helpers/Spells/isSpellKeyNum.d.ts +0 -2
  410. package/core/helpers/Spells/isSpellKeyNum.js +0 -4
  411. package/core/helpers/Spells/isSpellName.d.ts +0 -2
  412. package/core/helpers/Spells/isSpellName.js +0 -4
  413. package/core/helpers/getPositionImageUrl.d.ts +0 -2
  414. package/core/helpers/getPositionImageUrl.js +0 -11
  415. package/core/helpers/isRiotId.d.ts +0 -5
  416. package/core/helpers/isRiotId.js +0 -15
  417. package/core/helpers/makeRiotId.d.ts +0 -4
  418. package/core/helpers/makeRiotId.js +0 -5
  419. package/core/helpers/splitRiotId.d.ts +0 -10
  420. package/core/helpers/splitRiotId.js +0 -16
  421. package/core/index.d.ts +0 -139
  422. package/core/index.js +0 -150
  423. package/core/types/championJson.d.ts +0 -85
  424. package/core/types/championJson.js +0 -1
  425. package/core/types/interfaces.d.ts +0 -22
  426. package/core/types/interfaces.js +0 -1
  427. package/core/types/types.d.ts +0 -268
  428. package/core/types/types.js +0 -1
  429. /package/{core → dist}/Locale.js +0 -0
  430. /package/{assets/scripts/asset-scripts/champion.d.ts → dist/helpers/type.js} +0 -0
@@ -0,0 +1,678 @@
1
+ import { ChampionId, ChampionKey, ChampionName } from '../objects/generated/Champions';
2
+ /** Get a champion by its **id**, **key**, or **name**. */
3
+ export declare function getChampion(id_key_name: ChampionId | ChampionKey | ChampionName): {
4
+ readonly id: 1;
5
+ readonly key: "Annie";
6
+ readonly name: "Annie";
7
+ } | {
8
+ readonly id: 2;
9
+ readonly key: "Olaf";
10
+ readonly name: "Olaf";
11
+ } | {
12
+ readonly id: 3;
13
+ readonly key: "Galio";
14
+ readonly name: "Galio";
15
+ } | {
16
+ readonly id: 4;
17
+ readonly key: "TwistedFate";
18
+ readonly name: "Twisted Fate";
19
+ } | {
20
+ readonly id: 5;
21
+ readonly key: "XinZhao";
22
+ readonly name: "Xin Zhao";
23
+ } | {
24
+ readonly id: 6;
25
+ readonly key: "Urgot";
26
+ readonly name: "Urgot";
27
+ } | {
28
+ readonly id: 7;
29
+ readonly key: "Leblanc";
30
+ readonly name: "LeBlanc";
31
+ } | {
32
+ readonly id: 8;
33
+ readonly key: "Vladimir";
34
+ readonly name: "Vladimir";
35
+ } | {
36
+ readonly id: 9;
37
+ readonly key: "Fiddlesticks";
38
+ readonly name: "Fiddlesticks";
39
+ } | {
40
+ readonly id: 10;
41
+ readonly key: "Kayle";
42
+ readonly name: "Kayle";
43
+ } | {
44
+ readonly id: 11;
45
+ readonly key: "MasterYi";
46
+ readonly name: "Master Yi";
47
+ } | {
48
+ readonly id: 12;
49
+ readonly key: "Alistar";
50
+ readonly name: "Alistar";
51
+ } | {
52
+ readonly id: 13;
53
+ readonly key: "Ryze";
54
+ readonly name: "Ryze";
55
+ } | {
56
+ readonly id: 14;
57
+ readonly key: "Sion";
58
+ readonly name: "Sion";
59
+ } | {
60
+ readonly id: 15;
61
+ readonly key: "Sivir";
62
+ readonly name: "Sivir";
63
+ } | {
64
+ readonly id: 16;
65
+ readonly key: "Soraka";
66
+ readonly name: "Soraka";
67
+ } | {
68
+ readonly id: 17;
69
+ readonly key: "Teemo";
70
+ readonly name: "Teemo";
71
+ } | {
72
+ readonly id: 18;
73
+ readonly key: "Tristana";
74
+ readonly name: "Tristana";
75
+ } | {
76
+ readonly id: 19;
77
+ readonly key: "Warwick";
78
+ readonly name: "Warwick";
79
+ } | {
80
+ readonly id: 20;
81
+ readonly key: "Nunu";
82
+ readonly name: "Nunu & Willump";
83
+ } | {
84
+ readonly id: 21;
85
+ readonly key: "MissFortune";
86
+ readonly name: "Miss Fortune";
87
+ } | {
88
+ readonly id: 22;
89
+ readonly key: "Ashe";
90
+ readonly name: "Ashe";
91
+ } | {
92
+ readonly id: 23;
93
+ readonly key: "Tryndamere";
94
+ readonly name: "Tryndamere";
95
+ } | {
96
+ readonly id: 24;
97
+ readonly key: "Jax";
98
+ readonly name: "Jax";
99
+ } | {
100
+ readonly id: 25;
101
+ readonly key: "Morgana";
102
+ readonly name: "Morgana";
103
+ } | {
104
+ readonly id: 26;
105
+ readonly key: "Zilean";
106
+ readonly name: "Zilean";
107
+ } | {
108
+ readonly id: 27;
109
+ readonly key: "Singed";
110
+ readonly name: "Singed";
111
+ } | {
112
+ readonly id: 28;
113
+ readonly key: "Evelynn";
114
+ readonly name: "Evelynn";
115
+ } | {
116
+ readonly id: 29;
117
+ readonly key: "Twitch";
118
+ readonly name: "Twitch";
119
+ } | {
120
+ readonly id: 30;
121
+ readonly key: "Karthus";
122
+ readonly name: "Karthus";
123
+ } | {
124
+ readonly id: 31;
125
+ readonly key: "Chogath";
126
+ readonly name: "Cho'Gath";
127
+ } | {
128
+ readonly id: 32;
129
+ readonly key: "Amumu";
130
+ readonly name: "Amumu";
131
+ } | {
132
+ readonly id: 33;
133
+ readonly key: "Rammus";
134
+ readonly name: "Rammus";
135
+ } | {
136
+ readonly id: 34;
137
+ readonly key: "Anivia";
138
+ readonly name: "Anivia";
139
+ } | {
140
+ readonly id: 35;
141
+ readonly key: "Shaco";
142
+ readonly name: "Shaco";
143
+ } | {
144
+ readonly id: 36;
145
+ readonly key: "DrMundo";
146
+ readonly name: "Dr. Mundo";
147
+ } | {
148
+ readonly id: 37;
149
+ readonly key: "Sona";
150
+ readonly name: "Sona";
151
+ } | {
152
+ readonly id: 38;
153
+ readonly key: "Kassadin";
154
+ readonly name: "Kassadin";
155
+ } | {
156
+ readonly id: 39;
157
+ readonly key: "Irelia";
158
+ readonly name: "Irelia";
159
+ } | {
160
+ readonly id: 40;
161
+ readonly key: "Janna";
162
+ readonly name: "Janna";
163
+ } | {
164
+ readonly id: 41;
165
+ readonly key: "Gangplank";
166
+ readonly name: "Gangplank";
167
+ } | {
168
+ readonly id: 42;
169
+ readonly key: "Corki";
170
+ readonly name: "Corki";
171
+ } | {
172
+ readonly id: 43;
173
+ readonly key: "Karma";
174
+ readonly name: "Karma";
175
+ } | {
176
+ readonly id: 44;
177
+ readonly key: "Taric";
178
+ readonly name: "Taric";
179
+ } | {
180
+ readonly id: 45;
181
+ readonly key: "Veigar";
182
+ readonly name: "Veigar";
183
+ } | {
184
+ readonly id: 48;
185
+ readonly key: "Trundle";
186
+ readonly name: "Trundle";
187
+ } | {
188
+ readonly id: 50;
189
+ readonly key: "Swain";
190
+ readonly name: "Swain";
191
+ } | {
192
+ readonly id: 51;
193
+ readonly key: "Caitlyn";
194
+ readonly name: "Caitlyn";
195
+ } | {
196
+ readonly id: 53;
197
+ readonly key: "Blitzcrank";
198
+ readonly name: "Blitzcrank";
199
+ } | {
200
+ readonly id: 54;
201
+ readonly key: "Malphite";
202
+ readonly name: "Malphite";
203
+ } | {
204
+ readonly id: 55;
205
+ readonly key: "Katarina";
206
+ readonly name: "Katarina";
207
+ } | {
208
+ readonly id: 56;
209
+ readonly key: "Nocturne";
210
+ readonly name: "Nocturne";
211
+ } | {
212
+ readonly id: 57;
213
+ readonly key: "Maokai";
214
+ readonly name: "Maokai";
215
+ } | {
216
+ readonly id: 58;
217
+ readonly key: "Renekton";
218
+ readonly name: "Renekton";
219
+ } | {
220
+ readonly id: 59;
221
+ readonly key: "JarvanIV";
222
+ readonly name: "Jarvan IV";
223
+ } | {
224
+ readonly id: 60;
225
+ readonly key: "Elise";
226
+ readonly name: "Elise";
227
+ } | {
228
+ readonly id: 61;
229
+ readonly key: "Orianna";
230
+ readonly name: "Orianna";
231
+ } | {
232
+ readonly id: 62;
233
+ readonly key: "MonkeyKing";
234
+ readonly name: "Wukong";
235
+ } | {
236
+ readonly id: 63;
237
+ readonly key: "Brand";
238
+ readonly name: "Brand";
239
+ } | {
240
+ readonly id: 64;
241
+ readonly key: "LeeSin";
242
+ readonly name: "Lee Sin";
243
+ } | {
244
+ readonly id: 67;
245
+ readonly key: "Vayne";
246
+ readonly name: "Vayne";
247
+ } | {
248
+ readonly id: 68;
249
+ readonly key: "Rumble";
250
+ readonly name: "Rumble";
251
+ } | {
252
+ readonly id: 69;
253
+ readonly key: "Cassiopeia";
254
+ readonly name: "Cassiopeia";
255
+ } | {
256
+ readonly id: 72;
257
+ readonly key: "Skarner";
258
+ readonly name: "Skarner";
259
+ } | {
260
+ readonly id: 74;
261
+ readonly key: "Heimerdinger";
262
+ readonly name: "Heimerdinger";
263
+ } | {
264
+ readonly id: 75;
265
+ readonly key: "Nasus";
266
+ readonly name: "Nasus";
267
+ } | {
268
+ readonly id: 76;
269
+ readonly key: "Nidalee";
270
+ readonly name: "Nidalee";
271
+ } | {
272
+ readonly id: 77;
273
+ readonly key: "Udyr";
274
+ readonly name: "Udyr";
275
+ } | {
276
+ readonly id: 78;
277
+ readonly key: "Poppy";
278
+ readonly name: "Poppy";
279
+ } | {
280
+ readonly id: 79;
281
+ readonly key: "Gragas";
282
+ readonly name: "Gragas";
283
+ } | {
284
+ readonly id: 80;
285
+ readonly key: "Pantheon";
286
+ readonly name: "Pantheon";
287
+ } | {
288
+ readonly id: 81;
289
+ readonly key: "Ezreal";
290
+ readonly name: "Ezreal";
291
+ } | {
292
+ readonly id: 82;
293
+ readonly key: "Mordekaiser";
294
+ readonly name: "Mordekaiser";
295
+ } | {
296
+ readonly id: 83;
297
+ readonly key: "Yorick";
298
+ readonly name: "Yorick";
299
+ } | {
300
+ readonly id: 84;
301
+ readonly key: "Akali";
302
+ readonly name: "Akali";
303
+ } | {
304
+ readonly id: 85;
305
+ readonly key: "Kennen";
306
+ readonly name: "Kennen";
307
+ } | {
308
+ readonly id: 86;
309
+ readonly key: "Garen";
310
+ readonly name: "Garen";
311
+ } | {
312
+ readonly id: 89;
313
+ readonly key: "Leona";
314
+ readonly name: "Leona";
315
+ } | {
316
+ readonly id: 90;
317
+ readonly key: "Malzahar";
318
+ readonly name: "Malzahar";
319
+ } | {
320
+ readonly id: 91;
321
+ readonly key: "Talon";
322
+ readonly name: "Talon";
323
+ } | {
324
+ readonly id: 92;
325
+ readonly key: "Riven";
326
+ readonly name: "Riven";
327
+ } | {
328
+ readonly id: 96;
329
+ readonly key: "KogMaw";
330
+ readonly name: "Kog'Maw";
331
+ } | {
332
+ readonly id: 98;
333
+ readonly key: "Shen";
334
+ readonly name: "Shen";
335
+ } | {
336
+ readonly id: 99;
337
+ readonly key: "Lux";
338
+ readonly name: "Lux";
339
+ } | {
340
+ readonly id: 101;
341
+ readonly key: "Xerath";
342
+ readonly name: "Xerath";
343
+ } | {
344
+ readonly id: 102;
345
+ readonly key: "Shyvana";
346
+ readonly name: "Shyvana";
347
+ } | {
348
+ readonly id: 103;
349
+ readonly key: "Ahri";
350
+ readonly name: "Ahri";
351
+ } | {
352
+ readonly id: 104;
353
+ readonly key: "Graves";
354
+ readonly name: "Graves";
355
+ } | {
356
+ readonly id: 105;
357
+ readonly key: "Fizz";
358
+ readonly name: "Fizz";
359
+ } | {
360
+ readonly id: 106;
361
+ readonly key: "Volibear";
362
+ readonly name: "Volibear";
363
+ } | {
364
+ readonly id: 107;
365
+ readonly key: "Rengar";
366
+ readonly name: "Rengar";
367
+ } | {
368
+ readonly id: 110;
369
+ readonly key: "Varus";
370
+ readonly name: "Varus";
371
+ } | {
372
+ readonly id: 111;
373
+ readonly key: "Nautilus";
374
+ readonly name: "Nautilus";
375
+ } | {
376
+ readonly id: 112;
377
+ readonly key: "Viktor";
378
+ readonly name: "Viktor";
379
+ } | {
380
+ readonly id: 113;
381
+ readonly key: "Sejuani";
382
+ readonly name: "Sejuani";
383
+ } | {
384
+ readonly id: 114;
385
+ readonly key: "Fiora";
386
+ readonly name: "Fiora";
387
+ } | {
388
+ readonly id: 115;
389
+ readonly key: "Ziggs";
390
+ readonly name: "Ziggs";
391
+ } | {
392
+ readonly id: 117;
393
+ readonly key: "Lulu";
394
+ readonly name: "Lulu";
395
+ } | {
396
+ readonly id: 119;
397
+ readonly key: "Draven";
398
+ readonly name: "Draven";
399
+ } | {
400
+ readonly id: 120;
401
+ readonly key: "Hecarim";
402
+ readonly name: "Hecarim";
403
+ } | {
404
+ readonly id: 121;
405
+ readonly key: "Khazix";
406
+ readonly name: "Kha'Zix";
407
+ } | {
408
+ readonly id: 122;
409
+ readonly key: "Darius";
410
+ readonly name: "Darius";
411
+ } | {
412
+ readonly id: 126;
413
+ readonly key: "Jayce";
414
+ readonly name: "Jayce";
415
+ } | {
416
+ readonly id: 127;
417
+ readonly key: "Lissandra";
418
+ readonly name: "Lissandra";
419
+ } | {
420
+ readonly id: 131;
421
+ readonly key: "Diana";
422
+ readonly name: "Diana";
423
+ } | {
424
+ readonly id: 133;
425
+ readonly key: "Quinn";
426
+ readonly name: "Quinn";
427
+ } | {
428
+ readonly id: 134;
429
+ readonly key: "Syndra";
430
+ readonly name: "Syndra";
431
+ } | {
432
+ readonly id: 136;
433
+ readonly key: "AurelionSol";
434
+ readonly name: "Aurelion Sol";
435
+ } | {
436
+ readonly id: 141;
437
+ readonly key: "Kayn";
438
+ readonly name: "Kayn";
439
+ } | {
440
+ readonly id: 142;
441
+ readonly key: "Zoe";
442
+ readonly name: "Zoe";
443
+ } | {
444
+ readonly id: 143;
445
+ readonly key: "Zyra";
446
+ readonly name: "Zyra";
447
+ } | {
448
+ readonly id: 145;
449
+ readonly key: "Kaisa";
450
+ readonly name: "Kai'Sa";
451
+ } | {
452
+ readonly id: 147;
453
+ readonly key: "Seraphine";
454
+ readonly name: "Seraphine";
455
+ } | {
456
+ readonly id: 150;
457
+ readonly key: "Gnar";
458
+ readonly name: "Gnar";
459
+ } | {
460
+ readonly id: 154;
461
+ readonly key: "Zac";
462
+ readonly name: "Zac";
463
+ } | {
464
+ readonly id: 157;
465
+ readonly key: "Yasuo";
466
+ readonly name: "Yasuo";
467
+ } | {
468
+ readonly id: 161;
469
+ readonly key: "Velkoz";
470
+ readonly name: "Vel'Koz";
471
+ } | {
472
+ readonly id: 163;
473
+ readonly key: "Taliyah";
474
+ readonly name: "Taliyah";
475
+ } | {
476
+ readonly id: 164;
477
+ readonly key: "Camille";
478
+ readonly name: "Camille";
479
+ } | {
480
+ readonly id: 166;
481
+ readonly key: "Akshan";
482
+ readonly name: "Akshan";
483
+ } | {
484
+ readonly id: 200;
485
+ readonly key: "Belveth";
486
+ readonly name: "Bel'Veth";
487
+ } | {
488
+ readonly id: 201;
489
+ readonly key: "Braum";
490
+ readonly name: "Braum";
491
+ } | {
492
+ readonly id: 202;
493
+ readonly key: "Jhin";
494
+ readonly name: "Jhin";
495
+ } | {
496
+ readonly id: 203;
497
+ readonly key: "Kindred";
498
+ readonly name: "Kindred";
499
+ } | {
500
+ readonly id: 221;
501
+ readonly key: "Zeri";
502
+ readonly name: "Zeri";
503
+ } | {
504
+ readonly id: 222;
505
+ readonly key: "Jinx";
506
+ readonly name: "Jinx";
507
+ } | {
508
+ readonly id: 223;
509
+ readonly key: "TahmKench";
510
+ readonly name: "Tahm Kench";
511
+ } | {
512
+ readonly id: 233;
513
+ readonly key: "Briar";
514
+ readonly name: "Briar";
515
+ } | {
516
+ readonly id: 234;
517
+ readonly key: "Viego";
518
+ readonly name: "Viego";
519
+ } | {
520
+ readonly id: 235;
521
+ readonly key: "Senna";
522
+ readonly name: "Senna";
523
+ } | {
524
+ readonly id: 236;
525
+ readonly key: "Lucian";
526
+ readonly name: "Lucian";
527
+ } | {
528
+ readonly id: 238;
529
+ readonly key: "Zed";
530
+ readonly name: "Zed";
531
+ } | {
532
+ readonly id: 240;
533
+ readonly key: "Kled";
534
+ readonly name: "Kled";
535
+ } | {
536
+ readonly id: 245;
537
+ readonly key: "Ekko";
538
+ readonly name: "Ekko";
539
+ } | {
540
+ readonly id: 246;
541
+ readonly key: "Qiyana";
542
+ readonly name: "Qiyana";
543
+ } | {
544
+ readonly id: 254;
545
+ readonly key: "Vi";
546
+ readonly name: "Vi";
547
+ } | {
548
+ readonly id: 266;
549
+ readonly key: "Aatrox";
550
+ readonly name: "Aatrox";
551
+ } | {
552
+ readonly id: 267;
553
+ readonly key: "Nami";
554
+ readonly name: "Nami";
555
+ } | {
556
+ readonly id: 268;
557
+ readonly key: "Azir";
558
+ readonly name: "Azir";
559
+ } | {
560
+ readonly id: 350;
561
+ readonly key: "Yuumi";
562
+ readonly name: "Yuumi";
563
+ } | {
564
+ readonly id: 360;
565
+ readonly key: "Samira";
566
+ readonly name: "Samira";
567
+ } | {
568
+ readonly id: 412;
569
+ readonly key: "Thresh";
570
+ readonly name: "Thresh";
571
+ } | {
572
+ readonly id: 420;
573
+ readonly key: "Illaoi";
574
+ readonly name: "Illaoi";
575
+ } | {
576
+ readonly id: 421;
577
+ readonly key: "RekSai";
578
+ readonly name: "Rek'Sai";
579
+ } | {
580
+ readonly id: 427;
581
+ readonly key: "Ivern";
582
+ readonly name: "Ivern";
583
+ } | {
584
+ readonly id: 429;
585
+ readonly key: "Kalista";
586
+ readonly name: "Kalista";
587
+ } | {
588
+ readonly id: 432;
589
+ readonly key: "Bard";
590
+ readonly name: "Bard";
591
+ } | {
592
+ readonly id: 497;
593
+ readonly key: "Rakan";
594
+ readonly name: "Rakan";
595
+ } | {
596
+ readonly id: 498;
597
+ readonly key: "Xayah";
598
+ readonly name: "Xayah";
599
+ } | {
600
+ readonly id: 516;
601
+ readonly key: "Ornn";
602
+ readonly name: "Ornn";
603
+ } | {
604
+ readonly id: 517;
605
+ readonly key: "Sylas";
606
+ readonly name: "Sylas";
607
+ } | {
608
+ readonly id: 518;
609
+ readonly key: "Neeko";
610
+ readonly name: "Neeko";
611
+ } | {
612
+ readonly id: 523;
613
+ readonly key: "Aphelios";
614
+ readonly name: "Aphelios";
615
+ } | {
616
+ readonly id: 526;
617
+ readonly key: "Rell";
618
+ readonly name: "Rell";
619
+ } | {
620
+ readonly id: 555;
621
+ readonly key: "Pyke";
622
+ readonly name: "Pyke";
623
+ } | {
624
+ readonly id: 711;
625
+ readonly key: "Vex";
626
+ readonly name: "Vex";
627
+ } | {
628
+ readonly id: 777;
629
+ readonly key: "Yone";
630
+ readonly name: "Yone";
631
+ } | {
632
+ readonly id: 875;
633
+ readonly key: "Sett";
634
+ readonly name: "Sett";
635
+ } | {
636
+ readonly id: 876;
637
+ readonly key: "Lillia";
638
+ readonly name: "Lillia";
639
+ } | {
640
+ readonly id: 887;
641
+ readonly key: "Gwen";
642
+ readonly name: "Gwen";
643
+ } | {
644
+ readonly id: 888;
645
+ readonly key: "Renata";
646
+ readonly name: "Renata Glasc";
647
+ } | {
648
+ readonly id: 893;
649
+ readonly key: "Aurora";
650
+ readonly name: "Aurora";
651
+ } | {
652
+ readonly id: 895;
653
+ readonly key: "Nilah";
654
+ readonly name: "Nilah";
655
+ } | {
656
+ readonly id: 897;
657
+ readonly key: "KSante";
658
+ readonly name: "K'Sante";
659
+ } | {
660
+ readonly id: 901;
661
+ readonly key: "Smolder";
662
+ readonly name: "Smolder";
663
+ } | {
664
+ readonly id: 902;
665
+ readonly key: "Milio";
666
+ readonly name: "Milio";
667
+ } | {
668
+ readonly id: 910;
669
+ readonly key: "Hwei";
670
+ readonly name: "Hwei";
671
+ } | {
672
+ readonly id: 950;
673
+ readonly key: "Naafiri";
674
+ readonly name: "Naafiri";
675
+ };
676
+ export declare function isChampionId(id: number | null | undefined): id is ChampionId;
677
+ export declare function isChampionKey(key: string | null | undefined): key is ChampionKey;
678
+ export declare function isChampionName(name: string | null | undefined): name is ChampionName;
@@ -0,0 +1,18 @@
1
+ import { championKeys, championNames, Champions, } from '../objects/generated/Champions';
2
+ /** Get a champion by its **id**, **key**, or **name**. */
3
+ export function getChampion(id_key_name) {
4
+ if (typeof id_key_name == 'number')
5
+ return Champions[id_key_name];
6
+ if (isChampionKey(id_key_name))
7
+ return Champions[championKeys[id_key_name]];
8
+ return Champions[championNames[id_key_name]];
9
+ }
10
+ export function isChampionId(id) {
11
+ return typeof id == 'number' && id in Champions;
12
+ }
13
+ export function isChampionKey(key) {
14
+ return typeof key == 'string' && key in championKeys;
15
+ }
16
+ export function isChampionName(name) {
17
+ return typeof name == 'string' && name in championNames;
18
+ }