lol-constants 1.5.2 → 1.5.5
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 +5 -0
- package/dist/index.js +12 -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,11 +17,16 @@ 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';
|
23
27
|
export { getChampionKeyByName } from './Helpers/Champions/getChampionKeyByName';
|
24
28
|
export { getChampionNameById } from './Helpers/Champions/getChampionNameById';
|
29
|
+
export { getChampionNameByKey } from './Helpers/Champions/getChampionNameByKey';
|
25
30
|
export { isChampionId } from './Helpers/Champions/isChampionId';
|
26
31
|
export { isChampionKey } from './Helpers/Champions/isChampionKey';
|
27
32
|
export { isChampionName } from './Helpers/Champions/isChampionName';
|
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 = void 0;
|
17
|
+
exports.isItemName = exports.isItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = exports.isChampionId = 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.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 = exports.getRuneCategoryByRuneName = 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; } });
|
@@ -85,6 +93,8 @@ var getChampionKeyByName_1 = require("./Helpers/Champions/getChampionKeyByName")
|
|
85
93
|
Object.defineProperty(exports, "getChampionKeyByName", { enumerable: true, get: function () { return getChampionKeyByName_1.getChampionKeyByName; } });
|
86
94
|
var getChampionNameById_1 = require("./Helpers/Champions/getChampionNameById");
|
87
95
|
Object.defineProperty(exports, "getChampionNameById", { enumerable: true, get: function () { return getChampionNameById_1.getChampionNameById; } });
|
96
|
+
var getChampionNameByKey_1 = require("./Helpers/Champions/getChampionNameByKey");
|
97
|
+
Object.defineProperty(exports, "getChampionNameByKey", { enumerable: true, get: function () { return getChampionNameByKey_1.getChampionNameByKey; } });
|
88
98
|
var isChampionId_1 = require("./Helpers/Champions/isChampionId");
|
89
99
|
Object.defineProperty(exports, "isChampionId", { enumerable: true, get: function () { return isChampionId_1.isChampionId; } });
|
90
100
|
var isChampionKey_1 = require("./Helpers/Champions/isChampionKey");
|
package/package.json
CHANGED