lol-constants 1.1.3 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ export declare const Lanes: {
2
+ readonly TOP: "TOP";
3
+ readonly JUNGLE: "JUNGLE";
4
+ readonly MIDDLE: "MIDDLE";
5
+ readonly BOTTOM: "BOTTOM";
6
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Lanes = void 0;
4
+ exports.Lanes = {
5
+ 'TOP': 'TOP',
6
+ 'JUNGLE': 'JUNGLE',
7
+ 'MIDDLE': 'MIDDLE',
8
+ 'BOTTOM': 'BOTTOM',
9
+ };
@@ -0,0 +1,20 @@
1
+ export declare const Levels: {
2
+ readonly 1: 1;
3
+ readonly 2: 2;
4
+ readonly 3: 3;
5
+ readonly 4: 4;
6
+ readonly 5: 5;
7
+ readonly 6: 6;
8
+ readonly 7: 7;
9
+ readonly 8: 8;
10
+ readonly 9: 9;
11
+ readonly 10: 10;
12
+ readonly 11: 11;
13
+ readonly 12: 12;
14
+ readonly 13: 13;
15
+ readonly 14: 14;
16
+ readonly 15: 15;
17
+ readonly 16: 16;
18
+ readonly 17: 17;
19
+ readonly 18: 18;
20
+ };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Levels = void 0;
4
+ exports.Levels = {
5
+ 1: 1,
6
+ 2: 2,
7
+ 3: 3,
8
+ 4: 4,
9
+ 5: 5,
10
+ 6: 6,
11
+ 7: 7,
12
+ 8: 8,
13
+ 9: 9,
14
+ 10: 10,
15
+ 11: 11,
16
+ 12: 12,
17
+ 13: 13,
18
+ 14: 14,
19
+ 15: 15,
20
+ 16: 16,
21
+ 17: 17,
22
+ 18: 18,
23
+ };
@@ -0,0 +1,7 @@
1
+ export declare const Positions: {
2
+ readonly TOP: "TOP";
3
+ readonly JUNGLE: "JUNGLE";
4
+ readonly MIDDLE: "MIDDLE";
5
+ readonly BOTTOM: "BOTTOM";
6
+ readonly UTILITY: "UTILITY";
7
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Positions = void 0;
4
+ exports.Positions = {
5
+ 'TOP': 'TOP',
6
+ 'JUNGLE': 'JUNGLE',
7
+ 'MIDDLE': 'MIDDLE',
8
+ 'BOTTOM': 'BOTTOM',
9
+ 'UTILITY': 'UTILITY',
10
+ };
@@ -0,0 +1,7 @@
1
+ export declare const RuneTreeNames: {
2
+ readonly Precision: "Precision";
3
+ readonly Domination: "Domination";
4
+ readonly Sorcery: "Sorcery";
5
+ readonly Resolve: "Resolve";
6
+ readonly Inspiration: "Inspiration";
7
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RuneTreeNames = void 0;
4
+ exports.RuneTreeNames = {
5
+ 'Precision': 'Precision',
6
+ 'Domination': 'Domination',
7
+ 'Sorcery': 'Sorcery',
8
+ 'Resolve': 'Resolve',
9
+ 'Inspiration': 'Inspiration',
10
+ };
@@ -0,0 +1,4 @@
1
+ export declare const RuneTreeTypes: {
2
+ readonly Primary: "Primary";
3
+ readonly Secondary: "Secondary";
4
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RuneTreeTypes = void 0;
4
+ exports.RuneTreeTypes = {
5
+ 'Primary': 'Primary',
6
+ 'Secondary': 'Secondary',
7
+ };
@@ -0,0 +1,6 @@
1
+ export declare const Skills: {
2
+ readonly Q: "Q";
3
+ readonly W: "W";
4
+ readonly E: "E";
5
+ readonly R: "R";
6
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Skills = void 0;
4
+ exports.Skills = {
5
+ 'Q': 'Q',
6
+ 'W': 'W',
7
+ 'E': 'E',
8
+ 'R': 'R',
9
+ };
@@ -0,0 +1,2 @@
1
+ import { RuneTreeName } from '../../types';
2
+ export declare function isRuneTreeName(name: any): name is RuneTreeName;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isRuneTreeName = void 0;
4
+ const RuneTreeNames_1 = require("../../Constants/Runes/RuneTreeNames");
5
+ function isRuneTreeName(name) {
6
+ return name in RuneTreeNames_1.RuneTreeNames;
7
+ }
8
+ exports.isRuneTreeName = isRuneTreeName;
@@ -0,0 +1,2 @@
1
+ import { RuneTreeType } from '../../types';
2
+ export declare function isRuneTreeType(type: any): type is RuneTreeType;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isRuneTreeType = void 0;
4
+ const RuneTreeTypes_1 = require("../../Constants/Runes/RuneTreeTypes");
5
+ function isRuneTreeType(type) {
6
+ return type in RuneTreeTypes_1.RuneTreeTypes;
7
+ }
8
+ exports.isRuneTreeType = isRuneTreeType;
@@ -0,0 +1,2 @@
1
+ import { Lane } from '../types';
2
+ export declare function isLane(lane: any): lane is Lane;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isLane = void 0;
4
+ const Lanes_1 = require("../Constants/Lanes");
5
+ function isLane(lane) {
6
+ return lane in Lanes_1.Lanes;
7
+ }
8
+ exports.isLane = isLane;
@@ -0,0 +1,2 @@
1
+ import { Level } from '../types';
2
+ export declare function isLevel(level: number): level is Level;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isLevel = void 0;
4
+ const Levels_1 = require("../Constants/Levels");
5
+ function isLevel(level) {
6
+ return level in Levels_1.Levels;
7
+ }
8
+ exports.isLevel = isLevel;
@@ -0,0 +1,2 @@
1
+ import { Position } from '../types';
2
+ export declare function isPosition(position: string): position is Position;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isPosition = void 0;
4
+ const Positions_1 = require("../Constants/Positions");
5
+ function isPosition(position) {
6
+ return position in Positions_1.Positions;
7
+ }
8
+ exports.isPosition = isPosition;
@@ -0,0 +1,2 @@
1
+ import { Skill } from '../types';
2
+ export declare function isSkill(skill: any): skill is Skill;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSkill = void 0;
4
+ const Skills_1 = require("../Constants/Skills");
5
+ function isSkill(skill) {
6
+ return skill in Skills_1.Skills;
7
+ }
8
+ exports.isSkill = isSkill;
@@ -1,3 +1,4 @@
1
+ export declare type ChampionRelationType = 'Ally' | 'Enemy';
1
2
  export declare type Role = 'NONE' | 'SOLO' | 'CARRY' | 'SUPPORT';
2
3
  export declare type Queue = 'RANKED_SOLO_5x5' | 'RANKED_FLEX_SR';
3
4
  export declare type LeaguesTier = 'CHALLENGER' | 'GRANDMASTER' | 'MASTER' | 'DIAMOND' | 'PLATINUM' | 'GOLD' | 'SILVER' | 'BRONZE' | 'IRON';
@@ -13,6 +13,12 @@ import { StatRuneIds } from '../Constants/Runes/StatRuneIds';
13
13
  import { StatRuneNames } from '../Constants/Runes/StatRuneNames';
14
14
  import { TreeRuneIds } from '../Constants/Runes/TreeRuneIds';
15
15
  import { TreeRuneNames } from '../Constants/Runes/TreeRuneNames';
16
+ import { Positions } from '../Constants/Positions';
17
+ import { Lanes } from '../Constants/Lanes';
18
+ import { RuneTreeNames } from '../Constants/Runes/RuneTreeNames';
19
+ import { RuneTreeTypes } from '../Constants/Runes/RuneTreeTypes';
20
+ import { Levels } from '../Constants/Levels';
21
+ import { Skills } from '../Constants/Skills';
16
22
  export declare type ChampionId = typeof ChampionIds[keyof typeof ChampionIds];
17
23
  export declare type ChampionKey = typeof ChampionKeys[keyof typeof ChampionKeys];
18
24
  export declare type ChampionName = typeof ChampionNames[keyof typeof ChampionNames];
@@ -159,10 +165,11 @@ export declare type ResolveTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Resol
159
165
  * - `InspirationTreeRuneId`,
160
166
  */
161
167
  export declare type InspirationTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Inspiration;
168
+ export declare type RuneTreeName = keyof typeof RuneTreeNames;
169
+ export declare type RuneTreeType = keyof typeof RuneTreeTypes;
170
+ export declare type Position = keyof typeof Positions;
171
+ export declare type Lane = keyof typeof Lanes;
172
+ export declare type Level = keyof typeof Levels;
173
+ export declare type Skill = keyof typeof Skills;
162
174
  export declare type XP = number;
163
175
  export declare type Minute = number;
164
- export declare type Position = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM' | 'UTILITY';
165
- export declare type Lane = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM';
166
- export declare type RuneTreeName = 'Precision' | 'Domination' | 'Sorcery' | 'Resolve' | 'Inspiration';
167
- export declare type Level = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18;
168
- export declare type Skill = 'Q' | 'W' | 'E' | 'R';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "1.1.3",
3
+ "version": "1.2.0",
4
4
  "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",