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.
- package/README.md +130 -28
- package/dist/Locale.d.ts +2 -0
- package/dist/Patch.d.ts +3 -0
- package/dist/Patch.js +3 -0
- package/{core/constants/Champions/ChampionClasses.d.ts → dist/constants/custom.d.ts} +1 -1
- package/{core/constants/Champions/ChampionClasses.js → dist/constants/custom.js} +2 -2
- package/dist/constants/events.d.ts +49 -0
- package/dist/constants/events.js +55 -0
- package/dist/constants/history.d.ts +26 -0
- package/dist/constants/history.js +29 -0
- package/{core/constants/RankedTiers.d.ts → dist/constants/leagues.d.ts} +9 -1
- package/{core/constants/RankedTiers.js → dist/constants/leagues.js} +11 -2
- package/{core/constants/Locales.d.ts → dist/constants/locales.d.ts} +1 -1
- package/{core/constants/Locales.js → dist/constants/locales.js} +2 -2
- package/dist/constants/participants.d.ts +38 -0
- package/dist/constants/participants.js +43 -0
- package/dist/enums/ItemSrTypes.d.ts +11 -0
- package/dist/enums/ItemSrTypes.js +10 -0
- package/dist/enums/StatRuneSlots.d.ts +6 -0
- package/dist/enums/StatRuneSlots.js +5 -0
- package/dist/helpers/champion.d.ts +678 -0
- package/dist/helpers/champion.js +18 -0
- package/dist/helpers/item.d.ts +39 -0
- package/dist/helpers/item.js +113 -0
- package/dist/helpers/riotId.d.ts +16 -0
- package/dist/helpers/riotId.js +33 -0
- package/dist/helpers/rune.d.ts +36 -0
- package/dist/helpers/rune.js +70 -0
- package/dist/helpers/spell.d.ts +6 -0
- package/dist/helpers/spell.js +18 -0
- package/dist/helpers/type.d.ts +3 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +27 -0
- package/dist/lol.d.ts +4029 -0
- package/dist/lol.js +182 -0
- package/dist/objects/Maps.d.ts +113 -0
- package/dist/objects/Maps.js +69 -0
- package/dist/objects/Queues.d.ts +192 -0
- package/dist/objects/Queues.js +71 -0
- package/dist/objects/Regions.d.ts +132 -0
- package/dist/objects/Regions.js +55 -0
- package/dist/objects/generated/Champions.d.ts +1858 -0
- package/dist/objects/generated/Champions.js +4 -0
- package/dist/objects/generated/Items.d.ts +5108 -0
- package/dist/objects/generated/Items.js +4 -0
- package/dist/objects/generated/Runes.d.ts +1477 -0
- package/dist/objects/generated/Runes.js +13 -0
- package/dist/objects/generated/Spells.d.ts +208 -0
- package/dist/objects/generated/Spells.js +4 -0
- package/package.json +17 -15
- package/assets/constants/BootsItemNames.d.ts +0 -1
- package/assets/constants/BootsItemNames.js +0 -13
- package/assets/constants/LegendaryItemNames.d.ts +0 -4
- package/assets/constants/LegendaryItemNames.js +0 -125
- package/assets/constants/StatRunes.d.ts +0 -28
- package/assets/constants/StatRunes.js +0 -11
- package/assets/constants/StatRunesByRow.d.ts +0 -17
- package/assets/constants/StatRunesByRow.js +0 -17
- package/assets/constants/base/Champion.d.ts +0 -7903
- package/assets/constants/base/Champion.js +0 -1
- package/assets/constants/base/Item.d.ts +0 -21193
- package/assets/constants/base/Item.js +0 -1
- package/assets/constants/base/RunesReforged.d.ts +0 -491
- package/assets/constants/base/RunesReforged.js +0 -1
- package/assets/constants/base/Summoner.d.ts +0 -582
- package/assets/constants/base/Summoner.js +0 -1
- package/assets/index.d.ts +0 -4
- package/assets/index.js +0 -11
- package/assets/scripts/asset-scripts/champion.js +0 -10
- package/assets/scripts/asset-scripts/generate-all.d.ts +0 -4
- package/assets/scripts/asset-scripts/generate-all.js +0 -4
- package/assets/scripts/asset-scripts/item.d.ts +0 -1
- package/assets/scripts/asset-scripts/item.js +0 -10
- package/assets/scripts/asset-scripts/runes-reforged.d.ts +0 -1
- package/assets/scripts/asset-scripts/runes-reforged.js +0 -10
- package/assets/scripts/asset-scripts/summoner.d.ts +0 -1
- package/assets/scripts/asset-scripts/summoner.js +0 -10
- package/assets/scripts/constants/RuneIdComment.d.ts +0 -1
- package/assets/scripts/constants/RuneIdComment.js +0 -24
- package/assets/scripts/generate-all.d.ts +0 -23
- package/assets/scripts/generate-all.js +0 -27
- package/assets/scripts/generate-categorized-item-keys-num.d.ts +0 -1
- package/assets/scripts/generate-categorized-item-keys-num.js +0 -57
- package/assets/scripts/generate-categorized-item-keys.d.ts +0 -1
- package/assets/scripts/generate-categorized-item-keys.js +0 -59
- package/assets/scripts/generate-categorized-item-names.d.ts +0 -1
- package/assets/scripts/generate-categorized-item-names.js +0 -56
- package/assets/scripts/generate-champion-ids-by-name.d.ts +0 -1
- package/assets/scripts/generate-champion-ids-by-name.js +0 -17
- package/assets/scripts/generate-champion-ids.d.ts +0 -1
- package/assets/scripts/generate-champion-ids.js +0 -18
- package/assets/scripts/generate-champion-keys-num.d.ts +0 -1
- package/assets/scripts/generate-champion-keys-num.js +0 -20
- package/assets/scripts/generate-champion-keys.d.ts +0 -1
- package/assets/scripts/generate-champion-keys.js +0 -18
- package/assets/scripts/generate-champion-names.d.ts +0 -1
- package/assets/scripts/generate-champion-names.js +0 -18
- package/assets/scripts/generate-item-keys-num.d.ts +0 -1
- package/assets/scripts/generate-item-keys-num.js +0 -24
- package/assets/scripts/generate-item-keys.d.ts +0 -1
- package/assets/scripts/generate-item-keys.js +0 -22
- package/assets/scripts/generate-item-names.d.ts +0 -1
- package/assets/scripts/generate-item-names.js +0 -22
- package/assets/scripts/generate-non-stat-rune-ids-num.d.ts +0 -1
- package/assets/scripts/generate-non-stat-rune-ids-num.js +0 -21
- package/assets/scripts/generate-non-stat-rune-ids.d.ts +0 -1
- package/assets/scripts/generate-non-stat-rune-ids.js +0 -22
- package/assets/scripts/generate-non-stat-rune-names.d.ts +0 -1
- package/assets/scripts/generate-non-stat-rune-names.js +0 -20
- package/assets/scripts/generate-rune-ids.d.ts +0 -1
- package/assets/scripts/generate-rune-ids.js +0 -27
- package/assets/scripts/generate-rune-names.d.ts +0 -1
- package/assets/scripts/generate-rune-names.js +0 -25
- package/assets/scripts/generate-rune-picking-relationships.d.ts +0 -1
- package/assets/scripts/generate-rune-picking-relationships.js +0 -52
- package/assets/scripts/generate-rune-sets-by-rune-names-num.d.ts +0 -1
- package/assets/scripts/generate-rune-sets-by-rune-names-num.js +0 -121
- package/assets/scripts/generate-rune-sets-by-rune-names.d.ts +0 -1
- package/assets/scripts/generate-rune-sets-by-rune-names.js +0 -119
- package/assets/scripts/generate-rune-sets.d.ts +0 -1
- package/assets/scripts/generate-rune-sets.js +0 -116
- package/assets/scripts/generate-spell-ids-by-name.d.ts +0 -1
- package/assets/scripts/generate-spell-ids-by-name.js +0 -17
- package/assets/scripts/generate-spell-ids.d.ts +0 -1
- package/assets/scripts/generate-spell-ids.js +0 -18
- package/assets/scripts/generate-spell-keys-num.d.ts +0 -1
- package/assets/scripts/generate-spell-keys-num.js +0 -20
- package/assets/scripts/generate-spell-keys.d.ts +0 -1
- package/assets/scripts/generate-spell-keys.js +0 -18
- package/assets/scripts/generate-spell-names.d.ts +0 -1
- package/assets/scripts/generate-spell-names.js +0 -18
- package/assets/scripts/generate-stat-rune-ids.d.ts +0 -1
- package/assets/scripts/generate-stat-rune-ids.js +0 -18
- package/assets/scripts/generate-stat-rune-names.d.ts +0 -1
- package/assets/scripts/generate-stat-rune-names.js +0 -16
- package/assets/scripts/helpers/enableEscapedValues.d.ts +0 -15
- package/assets/scripts/helpers/enableEscapedValues.js +0 -34
- package/assets/scripts/helpers/generateIndexFile.d.ts +0 -1
- package/assets/scripts/helpers/generateIndexFile.js +0 -3
- package/assets/scripts/helpers/getExportStatement.d.ts +0 -6
- package/assets/scripts/helpers/getExportStatement.js +0 -37
- package/assets/scripts/helpers/getFmtdComment.d.ts +0 -5
- package/assets/scripts/helpers/getFmtdComment.js +0 -11
- package/assets/scripts/helpers/validateNumber.d.ts +0 -1
- package/assets/scripts/helpers/validateNumber.js +0 -6
- package/assets/scripts/helpers/writeToTmpFile.d.ts +0 -13
- package/assets/scripts/helpers/writeToTmpFile.js +0 -18
- package/assets/scripts/print-file-names.d.ts +0 -1
- package/assets/scripts/print-file-names.js +0 -89
- package/core/Locale.d.ts +0 -2
- package/core/PatchVersion.d.ts +0 -1
- package/core/PatchVersion.js +0 -1
- package/core/constants/Abilities.d.ts +0 -17
- package/core/constants/Abilities.js +0 -19
- package/core/constants/BuildingTypes.d.ts +0 -6
- package/core/constants/BuildingTypes.js +0 -7
- package/core/constants/Champions/ChampionIds.d.ts +0 -171
- package/core/constants/Champions/ChampionIds.js +0 -1
- package/core/constants/Champions/ChampionIdsByName.d.ts +0 -170
- package/core/constants/Champions/ChampionIdsByName.js +0 -1
- package/core/constants/Champions/ChampionKeys.d.ts +0 -171
- package/core/constants/Champions/ChampionKeys.js +0 -1
- package/core/constants/Champions/ChampionKeysNum.d.ts +0 -171
- package/core/constants/Champions/ChampionKeysNum.js +0 -1
- package/core/constants/Champions/ChampionNames.d.ts +0 -171
- package/core/constants/Champions/ChampionNames.js +0 -1
- package/core/constants/Continents.d.ts +0 -8
- package/core/constants/Continents.js +0 -9
- package/core/constants/DataDragonUrls.d.ts +0 -52
- package/core/constants/DataDragonUrls.js +0 -58
- package/core/constants/DragonTypes.d.ts +0 -11
- package/core/constants/DragonTypes.js +0 -12
- package/core/constants/GameModes.d.ts +0 -12
- package/core/constants/GameModes.js +0 -13
- package/core/constants/GameTypes.d.ts +0 -7
- package/core/constants/GameTypes.js +0 -8
- package/core/constants/Items/BootsItemKeys.d.ts +0 -14
- package/core/constants/Items/BootsItemKeys.js +0 -1
- package/core/constants/Items/BootsItemKeysNum.d.ts +0 -14
- package/core/constants/Items/BootsItemKeysNum.js +0 -1
- package/core/constants/Items/BootsItemNames.d.ts +0 -14
- package/core/constants/Items/BootsItemNames.js +0 -1
- package/core/constants/Items/ItemKeys.d.ts +0 -238
- package/core/constants/Items/ItemKeys.js +0 -1
- package/core/constants/Items/ItemKeysNum.d.ts +0 -238
- package/core/constants/Items/ItemKeysNum.js +0 -1
- package/core/constants/Items/ItemNames.d.ts +0 -244
- package/core/constants/Items/ItemNames.js +0 -1
- package/core/constants/Items/ItemTypes.d.ts +0 -7
- package/core/constants/Items/ItemTypes.js +0 -8
- package/core/constants/Items/LegendaryItemKeys.d.ts +0 -112
- package/core/constants/Items/LegendaryItemKeys.js +0 -1
- package/core/constants/Items/LegendaryItemKeysNum.d.ts +0 -112
- package/core/constants/Items/LegendaryItemKeysNum.js +0 -1
- package/core/constants/Items/LegendaryItemNames.d.ts +0 -112
- package/core/constants/Items/LegendaryItemNames.js +0 -1
- package/core/constants/KillTypes.d.ts +0 -7
- package/core/constants/KillTypes.js +0 -8
- package/core/constants/LaneTypes.d.ts +0 -7
- package/core/constants/LaneTypes.js +0 -8
- package/core/constants/Lanes.d.ts +0 -8
- package/core/constants/Lanes.js +0 -9
- package/core/constants/LeagueTexts.d.ts +0 -49
- package/core/constants/LeagueTexts.js +0 -54
- package/core/constants/Levels.d.ts +0 -22
- package/core/constants/Levels.js +0 -23
- package/core/constants/MapIds.d.ts +0 -17
- package/core/constants/MapIds.js +0 -18
- package/core/constants/MonsterTypes.d.ts +0 -8
- package/core/constants/MonsterTypes.js +0 -9
- package/core/constants/ParticipantIds.d.ts +0 -14
- package/core/constants/ParticipantIds.js +0 -15
- package/core/constants/PlatformApiUris.d.ts +0 -20
- package/core/constants/PlatformApiUris.js +0 -21
- package/core/constants/PlatformIds.d.ts +0 -23
- package/core/constants/PlatformIds.js +0 -26
- package/core/constants/Positions.d.ts +0 -9
- package/core/constants/Positions.js +0 -10
- package/core/constants/QueueIds.d.ts +0 -114
- package/core/constants/QueueIds.js +0 -140
- package/core/constants/QueueTypes.d.ts +0 -7
- package/core/constants/QueueTypes.js +0 -8
- package/core/constants/RankedRanks.d.ts +0 -8
- package/core/constants/RankedRanks.js +0 -9
- package/core/constants/RegionalApiUris.d.ts +0 -8
- package/core/constants/RegionalApiUris.js +0 -9
- package/core/constants/Regions.d.ts +0 -23
- package/core/constants/Regions.js +0 -26
- package/core/constants/RelativeTeams.d.ts +0 -6
- package/core/constants/RelativeTeams.js +0 -7
- package/core/constants/Roles.d.ts +0 -8
- package/core/constants/Roles.js +0 -9
- package/core/constants/Runes/NonStatRuneIds.d.ts +0 -85
- package/core/constants/Runes/NonStatRuneIds.js +0 -1
- package/core/constants/Runes/NonStatRuneIdsNum.d.ts +0 -63
- package/core/constants/Runes/NonStatRuneIdsNum.js +0 -1
- package/core/constants/Runes/NonStatRuneNames.d.ts +0 -63
- package/core/constants/Runes/NonStatRuneNames.js +0 -1
- package/core/constants/Runes/RuneIconFileNames.d.ts +0 -14
- package/core/constants/Runes/RuneIconFileNames.js +0 -97
- package/core/constants/Runes/RunePickingRelationships.d.ts +0 -74
- package/core/constants/Runes/RunePickingRelationships.js +0 -4
- package/core/constants/Runes/RuneSets.d.ts +0 -721
- package/core/constants/Runes/RuneSets.js +0 -11
- package/core/constants/Runes/RuneSetsByRuneNames.d.ts +0 -765
- package/core/constants/Runes/RuneSetsByRuneNames.js +0 -11
- package/core/constants/Runes/RuneSetsByRuneNamesNum.d.ts +0 -765
- package/core/constants/Runes/RuneSetsByRuneNamesNum.js +0 -11
- package/core/constants/Runes/RuneTreeIds.d.ts +0 -11
- package/core/constants/Runes/RuneTreeIds.js +0 -14
- package/core/constants/Runes/RuneTreeIdsNum.d.ts +0 -11
- package/core/constants/Runes/RuneTreeIdsNum.js +0 -14
- package/core/constants/Runes/RuneTreeNames.d.ts +0 -11
- package/core/constants/Runes/RuneTreeNames.js +0 -14
- package/core/constants/Runes/RuneTreeTypes.d.ts +0 -6
- package/core/constants/Runes/RuneTreeTypes.js +0 -7
- package/core/constants/SkillSlots.d.ts +0 -8
- package/core/constants/SkillSlots.js +0 -9
- package/core/constants/Skills.d.ts +0 -8
- package/core/constants/Skills.js +0 -9
- package/core/constants/Spells/SpellIds.d.ts +0 -21
- package/core/constants/Spells/SpellIds.js +0 -1
- package/core/constants/Spells/SpellIdsByName.d.ts +0 -18
- package/core/constants/Spells/SpellIdsByName.js +0 -1
- package/core/constants/Spells/SpellKeys.d.ts +0 -21
- package/core/constants/Spells/SpellKeys.js +0 -1
- package/core/constants/Spells/SpellKeysNum.d.ts +0 -21
- package/core/constants/Spells/SpellKeysNum.js +0 -1
- package/core/constants/Spells/SpellNames.d.ts +0 -21
- package/core/constants/Spells/SpellNames.js +0 -1
- package/core/constants/TeamIds.d.ts +0 -6
- package/core/constants/TeamIds.js +0 -7
- package/core/constants/TowerTypes.d.ts +0 -8
- package/core/constants/TowerTypes.js +0 -9
- package/core/constants/WardTypes.d.ts +0 -9
- package/core/constants/WardTypes.js +0 -10
- package/core/helpers/Champions/getChampionIdByKey.d.ts +0 -4
- package/core/helpers/Champions/getChampionIdByKey.js +0 -4
- package/core/helpers/Champions/getChampionIdByName.d.ts +0 -3
- package/core/helpers/Champions/getChampionIdByName.js +0 -4
- package/core/helpers/Champions/getChampionKeyById.d.ts +0 -3
- package/core/helpers/Champions/getChampionKeyById.js +0 -4
- package/core/helpers/Champions/getChampionKeyByName.d.ts +0 -3
- package/core/helpers/Champions/getChampionKeyByName.js +0 -5
- package/core/helpers/Champions/getChampionNameById.d.ts +0 -3
- package/core/helpers/Champions/getChampionNameById.js +0 -5
- package/core/helpers/Champions/getChampionNameByKey.d.ts +0 -4
- package/core/helpers/Champions/getChampionNameByKey.js +0 -4
- package/core/helpers/Champions/isChampionId.d.ts +0 -2
- package/core/helpers/Champions/isChampionId.js +0 -4
- package/core/helpers/Champions/isChampionKey.d.ts +0 -2
- package/core/helpers/Champions/isChampionKey.js +0 -4
- package/core/helpers/Champions/isChampionKeyNum.d.ts +0 -2
- package/core/helpers/Champions/isChampionKeyNum.js +0 -4
- package/core/helpers/Champions/isChampionName.d.ts +0 -2
- package/core/helpers/Champions/isChampionName.js +0 -4
- package/core/helpers/Items/getItemKeyByName.d.ts +0 -3
- package/core/helpers/Items/getItemKeyByName.js +0 -4
- package/core/helpers/Items/getItemKeyNumByName.d.ts +0 -3
- package/core/helpers/Items/getItemKeyNumByName.js +0 -4
- package/core/helpers/Items/getItemNameByKey.d.ts +0 -4
- package/core/helpers/Items/getItemNameByKey.js +0 -4
- package/core/helpers/Items/isBootsItemKey.d.ts +0 -2
- package/core/helpers/Items/isBootsItemKey.js +0 -4
- package/core/helpers/Items/isBootsItemKeyNum.d.ts +0 -2
- package/core/helpers/Items/isBootsItemKeyNum.js +0 -4
- package/core/helpers/Items/isBootsItemName.d.ts +0 -2
- package/core/helpers/Items/isBootsItemName.js +0 -4
- package/core/helpers/Items/isItemKey.d.ts +0 -2
- package/core/helpers/Items/isItemKey.js +0 -4
- package/core/helpers/Items/isItemKeyNum.d.ts +0 -2
- package/core/helpers/Items/isItemKeyNum.js +0 -4
- package/core/helpers/Items/isItemName.d.ts +0 -2
- package/core/helpers/Items/isItemName.js +0 -4
- package/core/helpers/Items/isLegendaryItemKey.d.ts +0 -2
- package/core/helpers/Items/isLegendaryItemKey.js +0 -4
- package/core/helpers/Items/isLegendaryItemKeyNum.d.ts +0 -2
- package/core/helpers/Items/isLegendaryItemKeyNum.js +0 -4
- package/core/helpers/Items/isLegendaryItemName.d.ts +0 -2
- package/core/helpers/Items/isLegendaryItemName.js +0 -4
- package/core/helpers/Items/isTier2Boots.d.ts +0 -3
- package/core/helpers/Items/isTier2Boots.js +0 -9
- package/core/helpers/Runes/getNonStatRuneIdByName.d.ts +0 -3
- package/core/helpers/Runes/getNonStatRuneIdByName.js +0 -4
- package/core/helpers/Runes/getNonStatRuneNameById.d.ts +0 -3
- package/core/helpers/Runes/getNonStatRuneNameById.js +0 -4
- package/core/helpers/Runes/getRuneCategoryName.d.ts +0 -4
- package/core/helpers/Runes/getRuneCategoryName.js +0 -16
- package/core/helpers/Runes/getRuneCdnUrl.d.ts +0 -3
- package/core/helpers/Runes/getRuneCdnUrl.js +0 -50
- package/core/helpers/Runes/getRuneIdByName.d.ts +0 -3
- package/core/helpers/Runes/getRuneIdByName.js +0 -4
- package/core/helpers/Runes/getRuneNameById.d.ts +0 -3
- package/core/helpers/Runes/getRuneNameById.js +0 -4
- package/core/helpers/Runes/getStatRuneIdByName.d.ts +0 -3
- package/core/helpers/Runes/getStatRuneIdByName.js +0 -4
- package/core/helpers/Runes/getStatRuneNameById.d.ts +0 -3
- package/core/helpers/Runes/getStatRuneNameById.js +0 -4
- package/core/helpers/Runes/isDominationRuneId.d.ts +0 -2
- package/core/helpers/Runes/isDominationRuneId.js +0 -4
- package/core/helpers/Runes/isDominationRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isDominationRuneIdNum.js +0 -4
- package/core/helpers/Runes/isDominationRuneName.d.ts +0 -2
- package/core/helpers/Runes/isDominationRuneName.js +0 -4
- package/core/helpers/Runes/isInspirationRuneId.d.ts +0 -2
- package/core/helpers/Runes/isInspirationRuneId.js +0 -4
- package/core/helpers/Runes/isInspirationRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isInspirationRuneIdNum.js +0 -4
- package/core/helpers/Runes/isInspirationRuneName.d.ts +0 -2
- package/core/helpers/Runes/isInspirationRuneName.js +0 -4
- package/core/helpers/Runes/isKeystoneRuneId.d.ts +0 -2
- package/core/helpers/Runes/isKeystoneRuneId.js +0 -4
- package/core/helpers/Runes/isKeystoneRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isKeystoneRuneIdNum.js +0 -4
- package/core/helpers/Runes/isKeystoneRuneName.d.ts +0 -2
- package/core/helpers/Runes/isKeystoneRuneName.js +0 -4
- package/core/helpers/Runes/isNonStatRuneId.d.ts +0 -2
- package/core/helpers/Runes/isNonStatRuneId.js +0 -4
- package/core/helpers/Runes/isNonStatRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isNonStatRuneIdNum.js +0 -4
- package/core/helpers/Runes/isNonStatRuneName.d.ts +0 -2
- package/core/helpers/Runes/isNonStatRuneName.js +0 -4
- package/core/helpers/Runes/isPrecisionRuneId.d.ts +0 -2
- package/core/helpers/Runes/isPrecisionRuneId.js +0 -4
- package/core/helpers/Runes/isPrecisionRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isPrecisionRuneIdNum.js +0 -4
- package/core/helpers/Runes/isPrecisionRuneName.d.ts +0 -2
- package/core/helpers/Runes/isPrecisionRuneName.js +0 -4
- package/core/helpers/Runes/isResolveRuneId.d.ts +0 -2
- package/core/helpers/Runes/isResolveRuneId.js +0 -4
- package/core/helpers/Runes/isResolveRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isResolveRuneIdNum.js +0 -4
- package/core/helpers/Runes/isResolveRuneName.d.ts +0 -2
- package/core/helpers/Runes/isResolveRuneName.js +0 -4
- package/core/helpers/Runes/isRuneId.d.ts +0 -2
- package/core/helpers/Runes/isRuneId.js +0 -4
- package/core/helpers/Runes/isRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isRuneIdNum.js +0 -4
- package/core/helpers/Runes/isRuneName.d.ts +0 -2
- package/core/helpers/Runes/isRuneName.js +0 -4
- package/core/helpers/Runes/isSorceryRuneId.d.ts +0 -2
- package/core/helpers/Runes/isSorceryRuneId.js +0 -4
- package/core/helpers/Runes/isSorceryRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isSorceryRuneIdNum.js +0 -4
- package/core/helpers/Runes/isSorceryRuneName.d.ts +0 -2
- package/core/helpers/Runes/isSorceryRuneName.js +0 -4
- package/core/helpers/Runes/isStatRuneId.d.ts +0 -2
- package/core/helpers/Runes/isStatRuneId.js +0 -4
- package/core/helpers/Runes/isStatRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isStatRuneIdNum.js +0 -4
- package/core/helpers/Runes/isStatRuneName.d.ts +0 -2
- package/core/helpers/Runes/isStatRuneName.js +0 -4
- package/core/helpers/Spells/getSpellIdByKey.d.ts +0 -4
- package/core/helpers/Spells/getSpellIdByKey.js +0 -4
- package/core/helpers/Spells/getSpellIdByName.d.ts +0 -3
- package/core/helpers/Spells/getSpellIdByName.js +0 -4
- package/core/helpers/Spells/getSpellKeyById.d.ts +0 -3
- package/core/helpers/Spells/getSpellKeyById.js +0 -4
- package/core/helpers/Spells/getSpellKeyByName.d.ts +0 -3
- package/core/helpers/Spells/getSpellKeyByName.js +0 -5
- package/core/helpers/Spells/getSpellNameById.d.ts +0 -3
- package/core/helpers/Spells/getSpellNameById.js +0 -5
- package/core/helpers/Spells/getSpellNameByKey.d.ts +0 -4
- package/core/helpers/Spells/getSpellNameByKey.js +0 -4
- package/core/helpers/Spells/isSpellId.d.ts +0 -2
- package/core/helpers/Spells/isSpellId.js +0 -4
- package/core/helpers/Spells/isSpellKey.d.ts +0 -2
- package/core/helpers/Spells/isSpellKey.js +0 -4
- package/core/helpers/Spells/isSpellKeyNum.d.ts +0 -2
- package/core/helpers/Spells/isSpellKeyNum.js +0 -4
- package/core/helpers/Spells/isSpellName.d.ts +0 -2
- package/core/helpers/Spells/isSpellName.js +0 -4
- package/core/helpers/getPositionImageUrl.d.ts +0 -2
- package/core/helpers/getPositionImageUrl.js +0 -11
- package/core/helpers/isRiotId.d.ts +0 -5
- package/core/helpers/isRiotId.js +0 -15
- package/core/helpers/makeRiotId.d.ts +0 -4
- package/core/helpers/makeRiotId.js +0 -5
- package/core/helpers/splitRiotId.d.ts +0 -10
- package/core/helpers/splitRiotId.js +0 -16
- package/core/index.d.ts +0 -139
- package/core/index.js +0 -150
- package/core/types/championJson.d.ts +0 -85
- package/core/types/championJson.js +0 -1
- package/core/types/interfaces.d.ts +0 -22
- package/core/types/interfaces.js +0 -1
- package/core/types/types.d.ts +0 -268
- package/core/types/types.js +0 -1
- /package/{core → dist}/Locale.js +0 -0
- /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
|
+
}
|