lol-constants 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Constants/Items/ItemTypes.d.ts +6 -0
- package/dist/Constants/Items/ItemTypes.js +9 -0
- package/dist/Helpers/Items/isItemType.d.ts +2 -0
- package/dist/Helpers/Items/isItemType.js +8 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -2
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isItemType = void 0;
|
4
|
+
const ItemTypes_1 = require("../../Constants/Items/ItemTypes");
|
5
|
+
function isItemType(type) {
|
6
|
+
return type in ItemTypes_1.ItemTypes;
|
7
|
+
}
|
8
|
+
exports.isItemType = isItemType;
|
package/dist/index.d.ts
CHANGED
@@ -7,6 +7,7 @@ export { BootsItemKeys } from './Constants/Items/BootsItemKeys';
|
|
7
7
|
export { BootsItemNames } from './Constants/Items/BootsItemNames';
|
8
8
|
export { ItemKeys } from './Constants/Items/ItemKeys';
|
9
9
|
export { ItemNames } from './Constants/Items/ItemNames';
|
10
|
+
export { ItemTypes } from './Constants/Items/ItemTypes';
|
10
11
|
export { LegendaryItemKeys } from './Constants/Items/LegendaryItemKeys';
|
11
12
|
export { LegendaryItemNames } from './Constants/Items/LegendaryItemNames';
|
12
13
|
export { MythicItemKeys } from './Constants/Items/MythicItemKeys';
|
@@ -42,6 +43,7 @@ export { isBootsItemKey } from './Helpers/Items/isBootsItemKey';
|
|
42
43
|
export { isBootsItemName } from './Helpers/Items/isBootsItemName';
|
43
44
|
export { isItemKey } from './Helpers/Items/isItemKey';
|
44
45
|
export { isItemName } from './Helpers/Items/isItemName';
|
46
|
+
export { isItemType } from './Helpers/Items/isItemType';
|
45
47
|
export { isLegendaryItemKey } from './Helpers/Items/isLegendaryItemKey';
|
46
48
|
export { isLegendaryItemName } from './Helpers/Items/isLegendaryItemName';
|
47
49
|
export { isMythicItemKey } from './Helpers/Items/isMythicItemKey';
|
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 = exports.getSpellIdByName = exports.getSpellIdByKey = exports.isTreeRuneName = exports.isTreeRuneId = 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.getRuneTreeNameById = exports.getRuneTreeIdByName = exports.getRuneNameById = exports.getRuneIdByName = exports.getRuneCDNURL = exports.getRuneCategoryByRuneName = exports.isMythicItemName = exports.isMythicItemKey = exports.isLegendaryItemName = exports.isLegendaryItemKey = exports.isItemName = exports.isItemKey = exports.isBootsItemName = exports.isBootsItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = void 0;
|
17
|
+
exports.getChampionNameByKey = exports.getChampionNameById = exports.getChampionKeyByName = exports.getChampionKeyById = exports.getChampionIdByName = exports.getChampionIdByKey = exports.isSkill = exports.isPosition = exports.isLevel = exports.isLane = exports.SpellNames = exports.SpellKeys = exports.SpellIdsByName = exports.SpellIds = exports.TreeRuneNames = exports.TreeRuneIds = exports.RuneTreeNames = exports.RuneTreeIds = exports.RuneSetsByRuneNames = exports.StatRuneHSetsByRuneNames = exports.RuneTreeHSetsByRuneNames = exports.RuneIds = exports.StatRuneIds = exports.KeystoneIds = exports.SecondaryRuneTreesByRuneNames = exports.PrimaryRuneTreesByRuneNames = exports.RuneSets = exports.StatRuneHSets = exports.RuneTreeHSets = exports.RuneNames = exports.StatRuneNames = exports.KeystoneNames = exports.SecondaryRuneTrees = exports.PrimaryRuneTrees = exports.RunePickingRelationships = exports.RuneIconFileNames = exports.MythicItemNames = exports.MythicItemKeys = exports.LegendaryItemNames = exports.LegendaryItemKeys = exports.ItemTypes = exports.ItemNames = exports.ItemKeys = exports.BootsItemNames = exports.BootsItemKeys = 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 = 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.getRuneTreeNameById = exports.getRuneTreeIdByName = exports.getRuneNameById = exports.getRuneIdByName = exports.getRuneCDNURL = exports.getRuneCategoryByRuneName = exports.isMythicItemName = exports.isMythicItemKey = exports.isLegendaryItemName = exports.isLegendaryItemKey = exports.isItemType = exports.isItemName = exports.isItemKey = exports.isBootsItemName = exports.isBootsItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = exports.isChampionId = 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; } });
|
@@ -37,6 +37,8 @@ var ItemKeys_1 = require("./Constants/Items/ItemKeys");
|
|
37
37
|
Object.defineProperty(exports, "ItemKeys", { enumerable: true, get: function () { return ItemKeys_1.ItemKeys; } });
|
38
38
|
var ItemNames_1 = require("./Constants/Items/ItemNames");
|
39
39
|
Object.defineProperty(exports, "ItemNames", { enumerable: true, get: function () { return ItemNames_1.ItemNames; } });
|
40
|
+
var ItemTypes_1 = require("./Constants/Items/ItemTypes");
|
41
|
+
Object.defineProperty(exports, "ItemTypes", { enumerable: true, get: function () { return ItemTypes_1.ItemTypes; } });
|
40
42
|
var LegendaryItemKeys_1 = require("./Constants/Items/LegendaryItemKeys");
|
41
43
|
Object.defineProperty(exports, "LegendaryItemKeys", { enumerable: true, get: function () { return LegendaryItemKeys_1.LegendaryItemKeys; } });
|
42
44
|
var LegendaryItemNames_1 = require("./Constants/Items/LegendaryItemNames");
|
@@ -126,6 +128,8 @@ var isItemKey_1 = require("./Helpers/Items/isItemKey");
|
|
126
128
|
Object.defineProperty(exports, "isItemKey", { enumerable: true, get: function () { return isItemKey_1.isItemKey; } });
|
127
129
|
var isItemName_1 = require("./Helpers/Items/isItemName");
|
128
130
|
Object.defineProperty(exports, "isItemName", { enumerable: true, get: function () { return isItemName_1.isItemName; } });
|
131
|
+
var isItemType_1 = require("./Helpers/Items/isItemType");
|
132
|
+
Object.defineProperty(exports, "isItemType", { enumerable: true, get: function () { return isItemType_1.isItemType; } });
|
129
133
|
var isLegendaryItemKey_1 = require("./Helpers/Items/isLegendaryItemKey");
|
130
134
|
Object.defineProperty(exports, "isLegendaryItemKey", { enumerable: true, get: function () { return isLegendaryItemKey_1.isLegendaryItemKey; } });
|
131
135
|
var isLegendaryItemName_1 = require("./Helpers/Items/isLegendaryItemName");
|
package/dist/types/index.d.ts
CHANGED
@@ -23,6 +23,7 @@ import { LegendaryItemNames } from '../Constants/Items/LegendaryItemNames';
|
|
23
23
|
import { LegendaryItemKeys } from '../Constants/Items/LegendaryItemKeys';
|
24
24
|
import { BootsItemNames } from '../Constants/Items/BootsItemNames';
|
25
25
|
import { BootsItemKeys } from '../Constants/Items/BootsItemKeys';
|
26
|
+
import { ItemTypes } from '../Constants/Items/ItemTypes';
|
26
27
|
export declare type ChampionId = typeof ChampionIds[keyof typeof ChampionIds];
|
27
28
|
export declare type ChampionKey = typeof ChampionKeys[keyof typeof ChampionKeys];
|
28
29
|
export declare type ChampionName = typeof ChampionNames[keyof typeof ChampionNames];
|
@@ -31,6 +32,7 @@ export declare type SpellKey = typeof SpellKeys[keyof typeof SpellKeys];
|
|
31
32
|
export declare type SpellName = typeof SpellNames[keyof typeof SpellNames];
|
32
33
|
export declare type ItemKey = typeof ItemKeys[keyof typeof ItemKeys];
|
33
34
|
export declare type ItemName = typeof ItemNames[keyof typeof ItemNames];
|
35
|
+
export declare type ItemType = keyof typeof ItemTypes;
|
34
36
|
export declare type MythicItemKey = keyof typeof MythicItemNames;
|
35
37
|
export declare type MythicItemName = keyof typeof MythicItemKeys;
|
36
38
|
export declare type LegendaryItemKey = keyof typeof LegendaryItemNames;
|
package/package.json
CHANGED