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.

23 lines (22 loc) 822 B
export declare const RankedTiers: { readonly CHALLENGER: "CHALLENGER"; readonly GRANDMASTER: "GRANDMASTER"; readonly MASTER: "MASTER"; readonly DIAMOND: "DIAMOND"; readonly EMERALD: "EMERALD"; readonly PLATINUM: "PLATINUM"; readonly GOLD: "GOLD"; readonly SILVER: "SILVER"; readonly BRONZE: "BRONZE"; readonly IRON: "IRON"; }; export type RankedTier = typeof RankedTiers[keyof typeof RankedTiers]; export declare function isRankedTier(tier: string | null | undefined): tier is RankedTier; export declare const RankedRanks: { readonly I: "I"; readonly II: "II"; readonly III: "III"; readonly IV: "IV"; }; export type RankedRank = typeof RankedRanks[keyof typeof RankedRanks]; export declare function isRankedRank(rank: string | null | undefined): rank is RankedRank;