lol-constants 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ import { ChampionKey } from '../types';
2
+ export declare function isChampionKey(key: any): key is ChampionKey;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isChampionKey = void 0;
4
+ const ChampionKeys_1 = require("../Constants/ChampionKeys");
5
+ function isChampionKey(key) {
6
+ if (ChampionKeys_1.ChampionKeys.includes(key))
7
+ return true;
8
+ return false;
9
+ }
10
+ exports.isChampionKey = isChampionKey;
@@ -0,0 +1,2 @@
1
+ import { ChampionName } from '../types';
2
+ export declare function isChampionName(name: any): name is ChampionName;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isChampionName = void 0;
4
+ const ChampionNames_1 = require("../Constants/ChampionNames");
5
+ function isChampionName(name) {
6
+ if (ChampionNames_1.ChampionNames.includes(name))
7
+ return true;
8
+ return false;
9
+ }
10
+ exports.isChampionName = isChampionName;
@@ -0,0 +1,2 @@
1
+ import { ItemKey } from '../types';
2
+ export declare function isItemKey(key: any): key is ItemKey;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isItemKey = void 0;
4
+ const ItemKeys_1 = require("../Constants/ItemKeys");
5
+ function isItemKey(key) {
6
+ if (ItemKeys_1.ItemKeys.includes(key))
7
+ return true;
8
+ return false;
9
+ }
10
+ exports.isItemKey = isItemKey;
@@ -0,0 +1,2 @@
1
+ import { ItemName } from '../types';
2
+ export declare function isItemName(name: any): name is ItemName;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isItemName = void 0;
4
+ const ItemNames_1 = require("../Constants/ItemNames");
5
+ function isItemName(name) {
6
+ if (ItemNames_1.ItemNames.includes(name))
7
+ return true;
8
+ return false;
9
+ }
10
+ exports.isItemName = isItemName;
@@ -0,0 +1,2 @@
1
+ import { RuneId } from '../types';
2
+ export declare function isRuneId(id: any): id is RuneId;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isRuneId = void 0;
4
+ const RuneIds_1 = require("../Constants/RuneIds");
5
+ function isRuneId(id) {
6
+ if (RuneIds_1.RuneIds.includes(id))
7
+ return true;
8
+ return false;
9
+ }
10
+ exports.isRuneId = isRuneId;
@@ -0,0 +1,2 @@
1
+ import { RuneName } from '../types';
2
+ export declare function isRuneName(name: any): name is RuneName;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isRuneName = void 0;
4
+ const RuneNames_1 = require("../Constants/RuneNames");
5
+ function isRuneName(name) {
6
+ if (RuneNames_1.RuneNames.includes(name))
7
+ return true;
8
+ return false;
9
+ }
10
+ exports.isRuneName = isRuneName;
@@ -0,0 +1,2 @@
1
+ import { SummonerId } from '../types';
2
+ export declare function isSummonerId(id: any): id is SummonerId;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSummonerId = void 0;
4
+ const SummonerIds_1 = require("../Constants/SummonerIds");
5
+ function isSummonerId(id) {
6
+ if (SummonerIds_1.SummonerIds.includes(id))
7
+ return true;
8
+ return false;
9
+ }
10
+ exports.isSummonerId = isSummonerId;
@@ -0,0 +1,2 @@
1
+ import { SummonerKey } from '../types';
2
+ export declare function isSummonerKey(key: any): key is SummonerKey;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSummonerKey = void 0;
4
+ const SummonerKeys_1 = require("../Constants/SummonerKeys");
5
+ function isSummonerKey(key) {
6
+ if (SummonerKeys_1.SummonerKeys.includes(key))
7
+ return true;
8
+ return false;
9
+ }
10
+ exports.isSummonerKey = isSummonerKey;
@@ -0,0 +1,2 @@
1
+ import { SummonerName } from '../types';
2
+ export declare function isSummonerName(name: any): name is SummonerName;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSummonerName = void 0;
4
+ const SummonerNames_1 = require("../Constants/SummonerNames");
5
+ function isSummonerName(name) {
6
+ if (SummonerNames_1.SummonerNames.includes(name))
7
+ return true;
8
+ return false;
9
+ }
10
+ exports.isSummonerName = isSummonerName;
package/dist/index.d.ts CHANGED
@@ -43393,5 +43393,14 @@ export declare const summonerByName: {
43393
43393
  };
43394
43394
  version: string;
43395
43395
  };
43396
+ export { isChampionKey } from './Helpers/isChampionKey';
43397
+ export { isChampionName } from './Helpers/isChampionName';
43398
+ export { isItemKey } from './Helpers/isItemKey';
43399
+ export { isItemName } from './Helpers/isItemName';
43400
+ export { isRuneId } from './Helpers/isRuneId';
43401
+ export { isRuneName } from './Helpers/isRuneName';
43402
+ export { isSummonerId } from './Helpers/isSummonerId';
43403
+ export { isSummonerKey } from './Helpers/isSummonerKey';
43404
+ export { isSummonerName } from './Helpers/isSummonerName';
43396
43405
  export * from './types';
43397
43406
  export * from './types/Meta';
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.summonerByName = exports.summonerByKey = exports.runesByName = exports.runesById = exports.itemByName = exports.championByName = exports.championByKey = exports.SummonerNames = exports.SummonerKeys = exports.SummonerIds = exports.StatRunes = exports.RuneNames = exports.RuneIds = exports.ItemNames = exports.ItemKeys = exports.DDPaths = exports.ChampionNames = exports.ChampionKeys = exports.summoner = exports.runesReforged = exports.item = exports.champion = void 0;
20
+ exports.isSummonerName = exports.isSummonerKey = exports.isSummonerId = exports.isRuneName = exports.isRuneId = exports.isItemName = exports.isItemKey = exports.isChampionName = exports.isChampionKey = exports.summonerByName = exports.summonerByKey = exports.runesByName = exports.runesById = exports.itemByName = exports.championByName = exports.championByKey = exports.SummonerNames = exports.SummonerKeys = exports.SummonerIds = exports.StatRunes = exports.RuneNames = exports.RuneIds = exports.ItemNames = exports.ItemKeys = exports.DDPaths = exports.ChampionNames = exports.ChampionKeys = exports.summoner = exports.runesReforged = exports.item = exports.champion = void 0;
21
21
  const champion_json_1 = __importDefault(require("./assets/champion.json"));
22
22
  const item_json_1 = __importDefault(require("./assets/item.json"));
23
23
  const runesReforged_json_1 = __importDefault(require("./assets/runesReforged.json"));
@@ -62,5 +62,23 @@ exports.runesById = runesById_json_1.default;
62
62
  exports.runesByName = runesByName_json_1.default;
63
63
  exports.summonerByKey = summonerByKey_json_1.default;
64
64
  exports.summonerByName = summonerByName_json_1.default;
65
+ var isChampionKey_1 = require("./Helpers/isChampionKey");
66
+ Object.defineProperty(exports, "isChampionKey", { enumerable: true, get: function () { return isChampionKey_1.isChampionKey; } });
67
+ var isChampionName_1 = require("./Helpers/isChampionName");
68
+ Object.defineProperty(exports, "isChampionName", { enumerable: true, get: function () { return isChampionName_1.isChampionName; } });
69
+ var isItemKey_1 = require("./Helpers/isItemKey");
70
+ Object.defineProperty(exports, "isItemKey", { enumerable: true, get: function () { return isItemKey_1.isItemKey; } });
71
+ var isItemName_1 = require("./Helpers/isItemName");
72
+ Object.defineProperty(exports, "isItemName", { enumerable: true, get: function () { return isItemName_1.isItemName; } });
73
+ var isRuneId_1 = require("./Helpers/isRuneId");
74
+ Object.defineProperty(exports, "isRuneId", { enumerable: true, get: function () { return isRuneId_1.isRuneId; } });
75
+ var isRuneName_1 = require("./Helpers/isRuneName");
76
+ Object.defineProperty(exports, "isRuneName", { enumerable: true, get: function () { return isRuneName_1.isRuneName; } });
77
+ var isSummonerId_1 = require("./Helpers/isSummonerId");
78
+ Object.defineProperty(exports, "isSummonerId", { enumerable: true, get: function () { return isSummonerId_1.isSummonerId; } });
79
+ var isSummonerKey_1 = require("./Helpers/isSummonerKey");
80
+ Object.defineProperty(exports, "isSummonerKey", { enumerable: true, get: function () { return isSummonerKey_1.isSummonerKey; } });
81
+ var isSummonerName_1 = require("./Helpers/isSummonerName");
82
+ Object.defineProperty(exports, "isSummonerName", { enumerable: true, get: function () { return isSummonerName_1.isSummonerName; } });
65
83
  __exportStar(require("./types"), exports);
66
84
  __exportStar(require("./types/Meta"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",