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.
39 lines (38 loc) • 1.43 kB
TypeScript
export declare const Positions: {
readonly TOP: "TOP";
readonly JUNGLE: "JUNGLE";
readonly MIDDLE: "MIDDLE";
readonly BOTTOM: "BOTTOM";
readonly UTILITY: "UTILITY";
};
export type Position = typeof Positions[keyof typeof Positions];
export declare function isPosition(position: string | null | undefined): position is Position;
export declare const Roles: {
readonly NONE: "NONE";
readonly SOLO: "SOLO";
readonly CARRY: "CARRY";
readonly SUPPORT: "SUPPORT";
};
export type Role = typeof Roles[keyof typeof Roles];
export declare function isRole(role: string | null | undefined): role is Role;
export declare const Lanes: {
readonly TOP: "TOP";
readonly JUNGLE: "JUNGLE";
readonly MIDDLE: "MIDDLE";
readonly BOTTOM: "BOTTOM";
};
export type Lane = typeof Lanes[keyof typeof Lanes];
export declare function isLane(lane: string | null | undefined): lane is Lane;
export declare const LaneTypes: {
readonly TOP_LANE: "TOP_LANE";
readonly MID_LANE: "MID_LANE";
readonly BOT_LANE: "BOT_LANE";
};
export type LaneType = typeof LaneTypes[keyof typeof LaneTypes];
export declare function isLaneType(type: string | null | undefined): type is LaneType;
export declare const TeamIds: {
readonly 100: 100;
readonly 200: 200;
};
export type TeamId = typeof TeamIds[keyof typeof TeamIds];
export declare function isTeamId(id: number | null | undefined): id is TeamId;