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.

52 lines (51 loc) 2.33 kB
export declare const MonsterTypes: { readonly HORDE: "HORDE"; readonly DRAGON: "DRAGON"; readonly RIFTHERALD: "RIFTHERALD"; readonly BARON_NASHOR: "BARON_NASHOR"; readonly ATAKHAN: "ATAKHAN"; }; export type MonsterType = typeof MonsterTypes[keyof typeof MonsterTypes]; export declare function isMonsterType(type: string | null | undefined): type is MonsterType; export declare const DragonTypes: { readonly EARTH_DRAGON: "EARTH_DRAGON"; readonly CHEMTECH_DRAGON: "CHEMTECH_DRAGON"; readonly AIR_DRAGON: "AIR_DRAGON"; readonly HEXTECH_DRAGON: "HEXTECH_DRAGON"; readonly WATER_DRAGON: "WATER_DRAGON"; readonly FIRE_DRAGON: "FIRE_DRAGON"; readonly ELDER_DRAGON: "ELDER_DRAGON"; }; export type DragonType = typeof DragonTypes[keyof typeof DragonTypes]; export declare function isDragonType(type: string | null | undefined): type is DragonType; export declare const KillTypes: { readonly KILL_FIRST_BLOOD: "KILL_FIRST_BLOOD"; readonly KILL_MULTI: "KILL_MULTI"; readonly KILL_ACE: "KILL_ACE"; }; export type KillType = typeof KillTypes[keyof typeof KillTypes]; export declare function isKillType(type: string | null | undefined): type is KillType; export declare const BuildingTypes: { readonly TOWER_BUILDING: "TOWER_BUILDING"; readonly INHIBITOR_BUILDING: "INHIBITOR_BUILDING"; }; export type BuildingType = typeof BuildingTypes[keyof typeof BuildingTypes]; export declare function isBuildingType(type: string | null | undefined): type is BuildingType; export declare const TowerTypes: { readonly OUTER_TURRET: "OUTER_TURRET"; readonly INNER_TURRET: "INNER_TURRET"; readonly BASE_TURRET: "BASE_TURRET"; readonly NEXUS_TURRET: "NEXUS_TURRET"; }; export type TowerType = typeof TowerTypes[keyof typeof TowerTypes]; export declare function isTowerType(type: string | null | undefined): type is TowerType; export declare const WardTypes: { readonly UNDEFINED: "UNDEFINED"; readonly YELLOW_TRINKET: "YELLOW_TRINKET"; readonly CONTROL_WARD: "CONTROL_WARD"; readonly SIGHT_WARD: "SIGHT_WARD"; readonly BLUE_TRINKET: "BLUE_TRINKET"; readonly TEEMO_MUSHROOM: "TEEMO_MUSHROOM"; }; export type WardType = typeof WardTypes[keyof typeof WardTypes]; export declare function isWardType(type: string | null | undefined): type is WardType;