lol-constants 1.5.1 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Helpers/Champions/isChampionId.d.ts +1 -1
- package/dist/Helpers/Champions/isChampionName.d.ts +1 -1
- package/dist/Helpers/Items/isItemName.d.ts +1 -1
- package/dist/Helpers/Runes/isRuneName.d.ts +1 -1
- package/dist/Helpers/Runes/isStatRuneName.d.ts +1 -1
- package/dist/Helpers/Runes/isTreeRuneName.d.ts +1 -1
- package/dist/Helpers/Spells/isSpellId.d.ts +1 -1
- package/dist/Helpers/Spells/isSpellName.d.ts +1 -1
- package/dist/Helpers/isPosition.d.ts +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +14 -2
- package/package.json +1 -1
@@ -1,2 +1,2 @@
|
|
1
1
|
import { ChampionId } from '../../types';
|
2
|
-
export declare function isChampionId(id:
|
2
|
+
export declare function isChampionId(id: any): id is ChampionId;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { ChampionName } from '../../types';
|
2
|
-
export declare function isChampionName(name:
|
2
|
+
export declare function isChampionName(name: any): name is ChampionName;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { ItemName } from '../../types';
|
2
|
-
export declare function isItemName(name:
|
2
|
+
export declare function isItemName(name: any): name is ItemName;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { RuneName } from '../../types';
|
2
|
-
export declare function isRuneName(name:
|
2
|
+
export declare function isRuneName(name: any): name is RuneName;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { StatRuneName } from '../../types';
|
2
|
-
export declare function isStatRuneName(name:
|
2
|
+
export declare function isStatRuneName(name: any): name is StatRuneName;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { TreeRuneName } from '../../types';
|
2
|
-
export declare function isTreeRuneName(name:
|
2
|
+
export declare function isTreeRuneName(name: any): name is TreeRuneName;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { SpellId } from '../../types';
|
2
|
-
export declare function isSpellId(id:
|
2
|
+
export declare function isSpellId(id: any): id is SpellId;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { SpellName } from '../../types';
|
2
|
-
export declare function isSpellName(name:
|
2
|
+
export declare function isSpellName(name: any): name is SpellName;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { Position } from '../types';
|
2
|
-
export declare function isPosition(position:
|
2
|
+
export declare function isPosition(position: any): position is Position;
|
package/dist/index.d.ts
CHANGED
@@ -17,6 +17,10 @@ export { SpellIds } from './Constants/Spells/SpellIds';
|
|
17
17
|
export { SpellIdsByName } from './Constants/Spells/SpellIdsByName';
|
18
18
|
export { SpellKeys } from './Constants/Spells/SpellKeys';
|
19
19
|
export { SpellNames } from './Constants/Spells/SpellNames';
|
20
|
+
export { isLane } from './Helpers/isLane';
|
21
|
+
export { isLevel } from './Helpers/isLevel';
|
22
|
+
export { isPosition } from './Helpers/isPosition';
|
23
|
+
export { isSkill } from './Helpers/isSkill';
|
20
24
|
export { getChampionIdByKey } from './Helpers/Champions/getChampionIdByKey';
|
21
25
|
export { getChampionIdByName } from './Helpers/Champions/getChampionIdByName';
|
22
26
|
export { getChampionKeyById } from './Helpers/Champions/getChampionKeyById';
|
@@ -33,6 +37,8 @@ export { getRuneCategoryByRuneName } from './Helpers/Runes/getRuneCategoryByRune
|
|
33
37
|
export { getRuneCDNURL } from './Helpers/Runes/getRuneCDNURL';
|
34
38
|
export { getRuneIdByName } from './Helpers/Runes/getRuneIdByName';
|
35
39
|
export { getRuneNameById } from './Helpers/Runes/getRuneNameById';
|
40
|
+
export { getRuneTreeIdByName } from './Helpers/Runes/getRuneTreeIdByName';
|
41
|
+
export { getRuneTreeNameById } from './Helpers/Runes/getRuneTreeNameById';
|
36
42
|
export { getStatRuneIdByName } from './Helpers/Runes/getStatRuneIdByName';
|
37
43
|
export { getStatRuneNameById } from './Helpers/Runes/getStatRuneNameById';
|
38
44
|
export { getTreeRuneIdByName } from './Helpers/Runes/getTreeRuneIdByName';
|
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 = void 0;
|
17
|
+
exports.getRuneCategoryByRuneName = 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.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.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 = 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 = 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; } });
|
@@ -74,6 +74,14 @@ Object.defineProperty(exports, "SpellKeys", { enumerable: true, get: function ()
|
|
74
74
|
var SpellNames_1 = require("./Constants/Spells/SpellNames");
|
75
75
|
Object.defineProperty(exports, "SpellNames", { enumerable: true, get: function () { return SpellNames_1.SpellNames; } });
|
76
76
|
// # Helpers
|
77
|
+
var isLane_1 = require("./Helpers/isLane");
|
78
|
+
Object.defineProperty(exports, "isLane", { enumerable: true, get: function () { return isLane_1.isLane; } });
|
79
|
+
var isLevel_1 = require("./Helpers/isLevel");
|
80
|
+
Object.defineProperty(exports, "isLevel", { enumerable: true, get: function () { return isLevel_1.isLevel; } });
|
81
|
+
var isPosition_1 = require("./Helpers/isPosition");
|
82
|
+
Object.defineProperty(exports, "isPosition", { enumerable: true, get: function () { return isPosition_1.isPosition; } });
|
83
|
+
var isSkill_1 = require("./Helpers/isSkill");
|
84
|
+
Object.defineProperty(exports, "isSkill", { enumerable: true, get: function () { return isSkill_1.isSkill; } });
|
77
85
|
// ## Champions
|
78
86
|
var getChampionIdByKey_1 = require("./Helpers/Champions/getChampionIdByKey");
|
79
87
|
Object.defineProperty(exports, "getChampionIdByKey", { enumerable: true, get: function () { return getChampionIdByKey_1.getChampionIdByKey; } });
|
@@ -109,6 +117,10 @@ var getRuneIdByName_1 = require("./Helpers/Runes/getRuneIdByName");
|
|
109
117
|
Object.defineProperty(exports, "getRuneIdByName", { enumerable: true, get: function () { return getRuneIdByName_1.getRuneIdByName; } });
|
110
118
|
var getRuneNameById_1 = require("./Helpers/Runes/getRuneNameById");
|
111
119
|
Object.defineProperty(exports, "getRuneNameById", { enumerable: true, get: function () { return getRuneNameById_1.getRuneNameById; } });
|
120
|
+
var getRuneTreeIdByName_1 = require("./Helpers/Runes/getRuneTreeIdByName");
|
121
|
+
Object.defineProperty(exports, "getRuneTreeIdByName", { enumerable: true, get: function () { return getRuneTreeIdByName_1.getRuneTreeIdByName; } });
|
122
|
+
var getRuneTreeNameById_1 = require("./Helpers/Runes/getRuneTreeNameById");
|
123
|
+
Object.defineProperty(exports, "getRuneTreeNameById", { enumerable: true, get: function () { return getRuneTreeNameById_1.getRuneTreeNameById; } });
|
112
124
|
var getStatRuneIdByName_1 = require("./Helpers/Runes/getStatRuneIdByName");
|
113
125
|
Object.defineProperty(exports, "getStatRuneIdByName", { enumerable: true, get: function () { return getStatRuneIdByName_1.getStatRuneIdByName; } });
|
114
126
|
var getStatRuneNameById_1 = require("./Helpers/Runes/getStatRuneNameById");
|
package/package.json
CHANGED