lol-constants 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Constants/Runes/RuneTreeIds.d.ts +7 -0
- package/dist/Constants/Runes/RuneTreeIds.js +10 -0
- package/dist/Constants/Runes/RuneTreeNames.d.ts +5 -5
- package/dist/Constants/Runes/RuneTreeNames.js +5 -5
- package/dist/Helpers/Runes/isRuneTreeId.d.ts +2 -0
- package/dist/Helpers/Runes/isRuneTreeId.js +8 -0
- package/dist/Helpers/Runes/isRuneTreeName.js +2 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.js +10 -2
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
export declare const RuneTreeNames: {
|
2
|
-
readonly
|
3
|
-
readonly
|
4
|
-
readonly
|
5
|
-
readonly
|
6
|
-
readonly
|
2
|
+
readonly '8000': "Precision";
|
3
|
+
readonly '8100': "Domination";
|
4
|
+
readonly '8200': "Sorcery";
|
5
|
+
readonly '8400': "Resolve";
|
6
|
+
readonly '8300': "Inspiration";
|
7
7
|
};
|
@@ -2,9 +2,9 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.RuneTreeNames = void 0;
|
4
4
|
exports.RuneTreeNames = {
|
5
|
-
'
|
6
|
-
'
|
7
|
-
'
|
8
|
-
'
|
9
|
-
'
|
5
|
+
'8000': 'Precision',
|
6
|
+
'8100': 'Domination',
|
7
|
+
'8200': 'Sorcery',
|
8
|
+
'8400': 'Resolve',
|
9
|
+
'8300': 'Inspiration',
|
10
10
|
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isRuneTreeId = void 0;
|
4
|
+
const RuneTreeNames_1 = require("../../Constants/Runes/RuneTreeNames");
|
5
|
+
function isRuneTreeId(id) {
|
6
|
+
return id in RuneTreeNames_1.RuneTreeNames;
|
7
|
+
}
|
8
|
+
exports.isRuneTreeId = isRuneTreeId;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isRuneTreeName = void 0;
|
4
|
-
const
|
4
|
+
const RuneTreeIds_1 = require("../../Constants/Runes/RuneTreeIds");
|
5
5
|
function isRuneTreeName(name) {
|
6
|
-
return name in
|
6
|
+
return name in RuneTreeIds_1.RuneTreeIds;
|
7
7
|
}
|
8
8
|
exports.isRuneTreeName = isRuneTreeName;
|
package/dist/index.d.ts
CHANGED
@@ -8,6 +8,8 @@ export { ItemNames } from './Constants/Items/ItemNames';
|
|
8
8
|
export { RuneIds } from './Constants/Runes/RuneIds';
|
9
9
|
export { RuneNames } from './Constants/Runes/RuneNames';
|
10
10
|
export { RuneSets } from './Constants/Runes/RuneSets';
|
11
|
+
export { RuneTreeIds } from './Constants/Runes/RuneTreeIds';
|
12
|
+
export { RuneTreeNames } from './Constants/Runes/RuneTreeNames';
|
11
13
|
export { StatRuneIds } from './Constants/Runes/StatRuneIds';
|
12
14
|
export { StatRuneNames } from './Constants/Runes/StatRuneNames';
|
13
15
|
export { TreeRuneIds } from './Constants/Runes/TreeRuneIds';
|
@@ -41,6 +43,8 @@ export { isPrecisionTreeRuneId } from './Helpers/Runes/isPrecisionTreeRuneId';
|
|
41
43
|
export { isResolveTreeRuneId } from './Helpers/Runes/isResolveTreeRuneId';
|
42
44
|
export { isRuneId } from './Helpers/Runes/isRuneId';
|
43
45
|
export { isRuneName } from './Helpers/Runes/isRuneName';
|
46
|
+
export { isRuneTreeId } from './Helpers/Runes/isRuneTreeId';
|
47
|
+
export { isRuneTreeName } from './Helpers/Runes/isRuneTreeName';
|
44
48
|
export { isSorceryTreeRuneId } from './Helpers/Runes/isSorceryTreeRuneId';
|
45
49
|
export { isStatRuneId } from './Helpers/Runes/isStatRuneId';
|
46
50
|
export { isStatRuneName } from './Helpers/Runes/isStatRuneName';
|
package/dist/index.js
CHANGED
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
exports.
|
18
|
-
exports.isSpellName = exports.isSpellKey = exports.isSpellId = exports.getSpellNameByKey = exports.getSpellNameById = exports.getSpellKeyByName = exports.getSpellKeyById = void 0;
|
17
|
+
exports.isStatRuneName = exports.isStatRuneId = exports.isSorceryTreeRuneId = exports.isRuneTreeName = exports.isRuneTreeId = exports.isRuneName = exports.isRuneId = exports.isResolveTreeRuneId = exports.isPrecisionTreeRuneId = exports.isKeystoneRuneId = exports.isInspirationTreeRuneId = exports.isDominationTreeRuneId = exports.getTreeRuneNameById = exports.getTreeRuneIdByName = exports.getStatRuneNameById = exports.getStatRuneIdByName = exports.getRuneNameById = exports.getRuneIdByName = exports.isItemName = exports.isItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = exports.isChampionId = exports.getChampionNameById = exports.getChampionKeyByName = exports.getChampionKeyById = exports.getChampionIdByName = exports.getChampionIdByKey = exports.SpellNames = exports.SpellKeys = exports.SpellIdsByName = exports.SpellIds = exports.TreeRuneNames = exports.TreeRuneIds = exports.StatRuneNames = exports.StatRuneIds = exports.RuneTreeNames = exports.RuneTreeIds = exports.RuneSets = exports.RuneNames = exports.RuneIds = exports.ItemNames = exports.ItemKeys = exports.ChampionNames = exports.ChampionKeys = exports.ChampionIdsByName = exports.ChampionIds = exports.DDPaths = void 0;
|
18
|
+
exports.isSpellName = exports.isSpellKey = exports.isSpellId = exports.getSpellNameByKey = exports.getSpellNameById = exports.getSpellKeyByName = exports.getSpellKeyById = exports.getSpellIdByName = exports.getSpellIdByKey = exports.isTreeRuneName = exports.isTreeRuneId = void 0;
|
19
19
|
// # Constants
|
20
20
|
var DDPaths_1 = require("./Constants/DDPaths");
|
21
21
|
Object.defineProperty(exports, "DDPaths", { enumerable: true, get: function () { return DDPaths_1.DDPaths; } });
|
@@ -40,6 +40,10 @@ var RuneNames_1 = require("./Constants/Runes/RuneNames");
|
|
40
40
|
Object.defineProperty(exports, "RuneNames", { enumerable: true, get: function () { return RuneNames_1.RuneNames; } });
|
41
41
|
var RuneSets_1 = require("./Constants/Runes/RuneSets");
|
42
42
|
Object.defineProperty(exports, "RuneSets", { enumerable: true, get: function () { return RuneSets_1.RuneSets; } });
|
43
|
+
var RuneTreeIds_1 = require("./Constants/Runes/RuneTreeIds");
|
44
|
+
Object.defineProperty(exports, "RuneTreeIds", { enumerable: true, get: function () { return RuneTreeIds_1.RuneTreeIds; } });
|
45
|
+
var RuneTreeNames_1 = require("./Constants/Runes/RuneTreeNames");
|
46
|
+
Object.defineProperty(exports, "RuneTreeNames", { enumerable: true, get: function () { return RuneTreeNames_1.RuneTreeNames; } });
|
43
47
|
var StatRuneIds_1 = require("./Constants/Runes/StatRuneIds");
|
44
48
|
Object.defineProperty(exports, "StatRuneIds", { enumerable: true, get: function () { return StatRuneIds_1.StatRuneIds; } });
|
45
49
|
var StatRuneNames_1 = require("./Constants/Runes/StatRuneNames");
|
@@ -111,6 +115,10 @@ var isRuneId_1 = require("./Helpers/Runes/isRuneId");
|
|
111
115
|
Object.defineProperty(exports, "isRuneId", { enumerable: true, get: function () { return isRuneId_1.isRuneId; } });
|
112
116
|
var isRuneName_1 = require("./Helpers/Runes/isRuneName");
|
113
117
|
Object.defineProperty(exports, "isRuneName", { enumerable: true, get: function () { return isRuneName_1.isRuneName; } });
|
118
|
+
var isRuneTreeId_1 = require("./Helpers/Runes/isRuneTreeId");
|
119
|
+
Object.defineProperty(exports, "isRuneTreeId", { enumerable: true, get: function () { return isRuneTreeId_1.isRuneTreeId; } });
|
120
|
+
var isRuneTreeName_1 = require("./Helpers/Runes/isRuneTreeName");
|
121
|
+
Object.defineProperty(exports, "isRuneTreeName", { enumerable: true, get: function () { return isRuneTreeName_1.isRuneTreeName; } });
|
114
122
|
var isSorceryTreeRuneId_1 = require("./Helpers/Runes/isSorceryTreeRuneId");
|
115
123
|
Object.defineProperty(exports, "isSorceryTreeRuneId", { enumerable: true, get: function () { return isSorceryTreeRuneId_1.isSorceryTreeRuneId; } });
|
116
124
|
var isStatRuneId_1 = require("./Helpers/Runes/isStatRuneId");
|
package/dist/types/index.d.ts
CHANGED
@@ -19,6 +19,7 @@ import { RuneTreeNames } from '../Constants/Runes/RuneTreeNames';
|
|
19
19
|
import { RuneTreeTypes } from '../Constants/Runes/RuneTreeTypes';
|
20
20
|
import { Levels } from '../Constants/Levels';
|
21
21
|
import { Skills } from '../Constants/Skills';
|
22
|
+
import { RuneTreeIds } from '../Constants/Runes/RuneTreeIds';
|
22
23
|
export declare type ChampionId = typeof ChampionIds[keyof typeof ChampionIds];
|
23
24
|
export declare type ChampionKey = typeof ChampionKeys[keyof typeof ChampionKeys];
|
24
25
|
export declare type ChampionName = typeof ChampionNames[keyof typeof ChampionNames];
|
@@ -165,7 +166,8 @@ export declare type ResolveTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Resol
|
|
165
166
|
* - `InspirationTreeRuneId`,
|
166
167
|
*/
|
167
168
|
export declare type InspirationTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Inspiration;
|
168
|
-
export declare type
|
169
|
+
export declare type RuneTreeId = typeof RuneTreeIds[keyof typeof RuneTreeIds];
|
170
|
+
export declare type RuneTreeName = typeof RuneTreeNames[keyof typeof RuneTreeNames];
|
169
171
|
export declare type RuneTreeType = keyof typeof RuneTreeTypes;
|
170
172
|
export declare type Position = keyof typeof Positions;
|
171
173
|
export declare type Lane = keyof typeof Lanes;
|
package/package.json
CHANGED