lol-constants 1.0.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/{dist/assets → assets}/StatRunes.d.ts +0 -0
- package/{dist/assets → assets}/StatRunes.js +0 -0
- package/{dist/assets → assets}/champion.json +0 -0
- package/{dist/assets → assets}/index.d.ts +0 -0
- package/{dist/assets → assets}/index.js +1 -1
- package/{dist/assets → assets}/item.json +0 -0
- package/{dist/assets → assets}/runesReforged.json +0 -0
- package/assets/scripts/Helpers/enableSpreadValues.d.ts +15 -0
- package/assets/scripts/Helpers/enableSpreadValues.js +38 -0
- package/{dist → assets}/scripts/Helpers/getExportStatement.d.ts +1 -1
- package/assets/scripts/Helpers/getExportStatement.js +16 -0
- package/assets/scripts/Helpers/getFmtdComment.d.ts +5 -0
- package/assets/scripts/Helpers/getFmtdComment.js +15 -0
- package/assets/scripts/Helpers/writeToTmpFile.d.ts +8 -0
- package/assets/scripts/Helpers/writeToTmpFile.js +22 -0
- package/{dist → assets}/scripts/generate-all.d.ts +1 -0
- package/{dist → assets}/scripts/generate-all.js +1 -0
- package/{dist → assets}/scripts/generate-champion-ids-by-name.d.ts +0 -0
- package/{dist → assets}/scripts/generate-champion-ids-by-name.js +1 -1
- package/{dist → assets}/scripts/generate-champion-ids.d.ts +0 -0
- package/{dist → assets}/scripts/generate-champion-ids.js +1 -1
- package/{dist → assets}/scripts/generate-champion-keys.d.ts +0 -0
- package/{dist → assets}/scripts/generate-champion-keys.js +1 -1
- package/{dist → assets}/scripts/generate-champion-names.d.ts +0 -0
- package/{dist → assets}/scripts/generate-champion-names.js +1 -1
- package/{dist → assets}/scripts/generate-item-keys.d.ts +0 -0
- package/{dist → assets}/scripts/generate-item-keys.js +1 -1
- package/{dist → assets}/scripts/generate-item-names.d.ts +0 -0
- package/{dist → assets}/scripts/generate-item-names.js +1 -1
- package/{dist → assets}/scripts/generate-rune-ids.d.ts +0 -0
- package/{dist → assets}/scripts/generate-rune-ids.js +2 -2
- package/{dist → assets}/scripts/generate-rune-names.d.ts +0 -0
- package/{dist → assets}/scripts/generate-rune-names.js +2 -2
- package/{dist/scripts/generate-spell-ids-by-name.d.ts → assets/scripts/generate-rune-sets.d.ts} +0 -0
- package/assets/scripts/generate-rune-sets.js +94 -0
- package/{dist/scripts/generate-spell-ids.d.ts → assets/scripts/generate-spell-ids-by-name.d.ts} +0 -0
- package/{dist → assets}/scripts/generate-spell-ids-by-name.js +1 -1
- package/{dist/scripts/generate-spell-keys.d.ts → assets/scripts/generate-spell-ids.d.ts} +0 -0
- package/{dist → assets}/scripts/generate-spell-ids.js +1 -1
- package/{dist/scripts/generate-spell-names.d.ts → assets/scripts/generate-spell-keys.d.ts} +0 -0
- package/{dist → assets}/scripts/generate-spell-keys.js +1 -1
- package/{dist/scripts/generate-stat-rune-ids.d.ts → assets/scripts/generate-spell-names.d.ts} +0 -0
- package/{dist → assets}/scripts/generate-spell-names.js +1 -1
- package/{dist/scripts/generate-stat-rune-names.d.ts → assets/scripts/generate-stat-rune-ids.d.ts} +0 -0
- package/{dist → assets}/scripts/generate-stat-rune-ids.js +1 -1
- package/{dist/scripts/generate-tree-rune-ids.d.ts → assets/scripts/generate-stat-rune-names.d.ts} +0 -0
- package/{dist → assets}/scripts/generate-stat-rune-names.js +1 -1
- package/{dist/scripts/generate-tree-rune-names.d.ts → assets/scripts/generate-tree-rune-ids.d.ts} +0 -0
- package/{dist → assets}/scripts/generate-tree-rune-ids.js +1 -1
- package/assets/scripts/generate-tree-rune-names.d.ts +1 -0
- package/{dist → assets}/scripts/generate-tree-rune-names.js +1 -1
- package/{dist/assets → assets}/summoner.json +0 -0
- package/dist/Constants/{ChampionIds.d.ts → Champions/ChampionIds.d.ts} +0 -0
- package/dist/Constants/{ChampionIds.js → Champions/ChampionIds.js} +0 -0
- package/dist/Constants/{ChampionIdsByName.d.ts → Champions/ChampionIdsByName.d.ts} +0 -0
- package/dist/Constants/{ChampionIdsByName.js → Champions/ChampionIdsByName.js} +0 -0
- package/dist/Constants/{ChampionKeys.d.ts → Champions/ChampionKeys.d.ts} +0 -0
- package/dist/Constants/{ChampionKeys.js → Champions/ChampionKeys.js} +0 -0
- package/dist/Constants/{ChampionNames.d.ts → Champions/ChampionNames.d.ts} +0 -0
- package/dist/Constants/{ChampionNames.js → Champions/ChampionNames.js} +0 -0
- package/dist/Constants/{ItemKeys.d.ts → Items/ItemKeys.d.ts} +0 -0
- package/dist/Constants/{ItemKeys.js → Items/ItemKeys.js} +0 -0
- package/dist/Constants/{ItemNames.d.ts → Items/ItemNames.d.ts} +0 -0
- package/dist/Constants/{ItemNames.js → Items/ItemNames.js} +0 -0
- package/dist/Constants/{RuneIds.d.ts → Runes/RuneIds.d.ts} +9 -9
- package/dist/Constants/Runes/RuneIds.js +9 -0
- package/dist/Constants/{RuneNames.d.ts → Runes/RuneNames.d.ts} +3 -3
- package/dist/Constants/Runes/RuneNames.js +9 -0
- package/dist/Constants/Runes/RuneSets.d.ts +479 -0
- package/dist/Constants/Runes/RuneSets.js +12 -0
- package/dist/Constants/{StatRuneIds.d.ts → Runes/StatRuneIds.d.ts} +0 -0
- package/dist/Constants/{StatRuneIds.js → Runes/StatRuneIds.js} +0 -0
- package/dist/Constants/{StatRuneNames.d.ts → Runes/StatRuneNames.d.ts} +0 -0
- package/dist/Constants/{StatRuneNames.js → Runes/StatRuneNames.js} +0 -0
- package/dist/Constants/{TreeRuneIds.d.ts → Runes/TreeRuneIds.d.ts} +0 -0
- package/dist/Constants/{TreeRuneIds.js → Runes/TreeRuneIds.js} +0 -0
- package/dist/Constants/{TreeRuneNames.d.ts → Runes/TreeRuneNames.d.ts} +0 -0
- package/dist/Constants/{TreeRuneNames.js → Runes/TreeRuneNames.js} +0 -0
- package/dist/Constants/{SpellIds.d.ts → Spells/SpellIds.d.ts} +0 -0
- package/dist/Constants/{SpellIds.js → Spells/SpellIds.js} +0 -0
- package/dist/Constants/{SpellIdsByName.d.ts → Spells/SpellIdsByName.d.ts} +0 -0
- package/dist/Constants/{SpellIdsByName.js → Spells/SpellIdsByName.js} +0 -0
- package/dist/Constants/{SpellKeys.d.ts → Spells/SpellKeys.d.ts} +0 -0
- package/dist/Constants/{SpellKeys.js → Spells/SpellKeys.js} +0 -0
- package/dist/Constants/{SpellNames.d.ts → Spells/SpellNames.d.ts} +0 -0
- package/dist/Constants/{SpellNames.js → Spells/SpellNames.js} +0 -0
- package/dist/Helpers/{getChampionIdByKey.d.ts → Champions/getChampionIdByKey.d.ts} +1 -1
- package/dist/Helpers/{getChampionIdByKey.js → Champions/getChampionIdByKey.js} +1 -1
- package/dist/Helpers/{getChampionIdByName.d.ts → Champions/getChampionIdByName.d.ts} +1 -1
- package/dist/Helpers/{getChampionIdByName.js → Champions/getChampionIdByName.js} +1 -1
- package/dist/Helpers/{getChampionKeyById.d.ts → Champions/getChampionKeyById.d.ts} +1 -1
- package/dist/Helpers/{getChampionKeyById.js → Champions/getChampionKeyById.js} +1 -1
- package/dist/Helpers/{getChampionKeyByName.d.ts → Champions/getChampionKeyByName.d.ts} +1 -1
- package/dist/Helpers/{getChampionKeyByName.js → Champions/getChampionKeyByName.js} +2 -2
- package/dist/Helpers/{getChampionNameById.d.ts → Champions/getChampionNameById.d.ts} +1 -1
- package/dist/Helpers/{getChampionNameById.js → Champions/getChampionNameById.js} +2 -2
- package/dist/Helpers/{getChampionNameByKey.d.ts → Champions/getChampionNameByKey.d.ts} +1 -1
- package/dist/Helpers/{getChampionNameByKey.js → Champions/getChampionNameByKey.js} +1 -1
- package/dist/Helpers/{isChampionId.d.ts → Champions/isChampionId.d.ts} +1 -1
- package/dist/Helpers/{isChampionId.js → Champions/isChampionId.js} +1 -1
- package/dist/Helpers/{isChampionKey.d.ts → Champions/isChampionKey.d.ts} +1 -1
- package/dist/Helpers/{isChampionKey.js → Champions/isChampionKey.js} +1 -1
- package/dist/Helpers/{isChampionName.d.ts → Champions/isChampionName.d.ts} +1 -1
- package/dist/Helpers/{isChampionName.js → Champions/isChampionName.js} +1 -1
- package/dist/Helpers/{getItemKeyByName.d.ts → Items/getItemKeyByName.d.ts} +1 -1
- package/dist/Helpers/{getItemKeyByName.js → Items/getItemKeyByName.js} +1 -1
- package/dist/Helpers/{getItemNameByKey.d.ts → Items/getItemNameByKey.d.ts} +1 -1
- package/dist/Helpers/{getItemNameByKey.js → Items/getItemNameByKey.js} +1 -1
- package/dist/Helpers/{isItemKey.d.ts → Items/isItemKey.d.ts} +1 -1
- package/dist/Helpers/{isItemKey.js → Items/isItemKey.js} +1 -1
- package/dist/Helpers/{isItemName.d.ts → Items/isItemName.d.ts} +1 -1
- package/dist/Helpers/{isItemName.js → Items/isItemName.js} +1 -1
- package/dist/Helpers/{getRuneIdByName.d.ts → Runes/getRuneIdByName.d.ts} +1 -1
- package/dist/Helpers/{getRuneIdByName.js → Runes/getRuneIdByName.js} +1 -1
- package/dist/Helpers/{getRuneNameById.d.ts → Runes/getRuneNameById.d.ts} +1 -1
- package/dist/Helpers/{getRuneNameById.js → Runes/getRuneNameById.js} +1 -1
- package/dist/Helpers/{getStatRuneIdByName.d.ts → Runes/getStatRuneIdByName.d.ts} +1 -1
- package/dist/Helpers/{getStatRuneIdByName.js → Runes/getStatRuneIdByName.js} +1 -1
- package/dist/Helpers/{getStatRuneNameById.d.ts → Runes/getStatRuneNameById.d.ts} +1 -1
- package/dist/Helpers/{getStatRuneNameById.js → Runes/getStatRuneNameById.js} +1 -1
- package/dist/Helpers/{getTreeRuneIdByName.d.ts → Runes/getTreeRuneIdByName.d.ts} +1 -1
- package/dist/Helpers/{getTreeRuneIdByName.js → Runes/getTreeRuneIdByName.js} +1 -1
- package/dist/Helpers/{getTreeRuneNameById.d.ts → Runes/getTreeRuneNameById.d.ts} +1 -1
- package/dist/Helpers/{getTreeRuneNameById.js → Runes/getTreeRuneNameById.js} +1 -1
- package/dist/Helpers/{isRuneId.d.ts → Runes/isRuneId.d.ts} +1 -1
- package/dist/Helpers/{isRuneId.js → Runes/isRuneId.js} +1 -1
- package/dist/Helpers/{isRuneName.d.ts → Runes/isRuneName.d.ts} +1 -1
- package/dist/Helpers/{isRuneName.js → Runes/isRuneName.js} +1 -1
- package/dist/Helpers/{isStatRuneId.d.ts → Runes/isStatRuneId.d.ts} +1 -1
- package/dist/Helpers/{isStatRuneId.js → Runes/isStatRuneId.js} +1 -1
- package/dist/Helpers/{isStatRuneName.d.ts → Runes/isStatRuneName.d.ts} +1 -1
- package/dist/Helpers/{isStatRuneName.js → Runes/isStatRuneName.js} +1 -1
- package/dist/Helpers/{isTreeRuneId.d.ts → Runes/isTreeRuneId.d.ts} +1 -1
- package/dist/Helpers/{isTreeRuneId.js → Runes/isTreeRuneId.js} +1 -1
- package/dist/Helpers/{isTreeRuneName.d.ts → Runes/isTreeRuneName.d.ts} +1 -1
- package/dist/Helpers/{isTreeRuneName.js → Runes/isTreeRuneName.js} +1 -1
- package/dist/Helpers/{getSpellIdByKey.d.ts → Spells/getSpellIdByKey.d.ts} +1 -1
- package/dist/Helpers/{getSpellIdByKey.js → Spells/getSpellIdByKey.js} +1 -1
- package/dist/Helpers/{getSpellIdByName.d.ts → Spells/getSpellIdByName.d.ts} +1 -1
- package/dist/Helpers/{getSpellIdByName.js → Spells/getSpellIdByName.js} +1 -1
- package/dist/Helpers/{getSpellKeyById.d.ts → Spells/getSpellKeyById.d.ts} +1 -1
- package/dist/Helpers/{getSpellKeyById.js → Spells/getSpellKeyById.js} +1 -1
- package/dist/Helpers/{getSpellKeyByName.d.ts → Spells/getSpellKeyByName.d.ts} +1 -1
- package/dist/Helpers/{getSpellKeyByName.js → Spells/getSpellKeyByName.js} +2 -2
- package/dist/Helpers/{getSpellNameById.d.ts → Spells/getSpellNameById.d.ts} +1 -1
- package/dist/Helpers/{getSpellNameById.js → Spells/getSpellNameById.js} +2 -2
- package/dist/Helpers/{getSpellNameByKey.d.ts → Spells/getSpellNameByKey.d.ts} +1 -1
- package/dist/Helpers/{getSpellNameByKey.js → Spells/getSpellNameByKey.js} +1 -1
- package/dist/Helpers/{isSpellId.d.ts → Spells/isSpellId.d.ts} +1 -1
- package/dist/Helpers/{isSpellId.js → Spells/isSpellId.js} +1 -1
- package/dist/Helpers/{isSpellKey.d.ts → Spells/isSpellKey.d.ts} +1 -1
- package/dist/Helpers/{isSpellKey.js → Spells/isSpellKey.js} +1 -1
- package/dist/Helpers/{isSpellName.d.ts → Spells/isSpellName.d.ts} +1 -1
- package/dist/Helpers/{isSpellName.js → Spells/isSpellName.js} +1 -1
- package/dist/index.d.ts +50 -50
- package/dist/index.js +50 -61
- package/dist/types/index.d.ts +21 -21
- package/package.json +5 -6
- package/dist/Constants/RuneIds.js +0 -4
- package/dist/Constants/RuneNames.js +0 -4
- package/dist/Constants/RuneSets.d.ts +0 -77
- package/dist/Constants/RuneSets.js +0 -210
- package/dist/scripts/Helpers/getExportStatement.js +0 -10
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isChampionId = void 0;
|
4
|
-
const ChampionKeys_1 = require("
|
4
|
+
const ChampionKeys_1 = require("../../Constants/Champions/ChampionKeys");
|
5
5
|
function isChampionId(id) {
|
6
6
|
return id in ChampionKeys_1.ChampionKeys;
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ChampionKey } from '
|
1
|
+
import { ChampionKey } from '../../types';
|
2
2
|
export declare function isChampionKey(key: string): key is ChampionKey;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isChampionKey = void 0;
|
4
|
-
const ChampionNames_1 = require("
|
4
|
+
const ChampionNames_1 = require("../../Constants/Champions/ChampionNames");
|
5
5
|
function isChampionKey(key) {
|
6
6
|
return key in ChampionNames_1.ChampionNames;
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ChampionName } from '
|
1
|
+
import { ChampionName } from '../../types';
|
2
2
|
export declare function isChampionName(name: string): name is ChampionName;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isChampionName = void 0;
|
4
|
-
const ChampionIdsByName_1 = require("
|
4
|
+
const ChampionIdsByName_1 = require("../../Constants/Champions/ChampionIdsByName");
|
5
5
|
function isChampionName(name) {
|
6
6
|
return name in ChampionIdsByName_1.ChampionIdsByName;
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ItemKey, ItemName } from '
|
1
|
+
import { ItemKey, ItemName } from '../../types';
|
2
2
|
export declare function getItemKeyByName(name: ItemName): ItemKey;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getItemKeyByName = void 0;
|
4
|
-
const ItemKeys_1 = require("
|
4
|
+
const ItemKeys_1 = require("../../Constants/Items/ItemKeys");
|
5
5
|
function getItemKeyByName(name) {
|
6
6
|
return ItemKeys_1.ItemKeys[name];
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ItemKey, ItemName } from '
|
1
|
+
import { ItemKey, ItemName } from '../../types';
|
2
2
|
export declare function getItemNameByKey(key: ItemKey): ItemName;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getItemNameByKey = void 0;
|
4
|
-
const ItemNames_1 = require("
|
4
|
+
const ItemNames_1 = require("../../Constants/Items/ItemNames");
|
5
5
|
function getItemNameByKey(key) {
|
6
6
|
return ItemNames_1.ItemNames[key];
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ItemKey } from '
|
1
|
+
import { ItemKey } from '../../types';
|
2
2
|
export declare function isItemKey(key: string): key is ItemKey;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isItemKey = void 0;
|
4
|
-
const ItemNames_1 = require("
|
4
|
+
const ItemNames_1 = require("../../Constants/Items/ItemNames");
|
5
5
|
function isItemKey(key) {
|
6
6
|
return key in ItemNames_1.ItemNames;
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ItemName } from '
|
1
|
+
import { ItemName } from '../../types';
|
2
2
|
export declare function isItemName(name: string): name is ItemName;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isItemName = void 0;
|
4
|
-
const ItemKeys_1 = require("
|
4
|
+
const ItemKeys_1 = require("../../Constants/Items/ItemKeys");
|
5
5
|
function isItemName(name) {
|
6
6
|
return name in ItemKeys_1.ItemKeys;
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { RuneId, RuneName } from '
|
1
|
+
import { RuneId, RuneName } from '../../types';
|
2
2
|
export declare function getRuneIdByName(name: RuneName): RuneId;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getRuneIdByName = void 0;
|
4
|
-
const RuneIds_1 = require("
|
4
|
+
const RuneIds_1 = require("../../Constants/Runes/RuneIds");
|
5
5
|
function getRuneIdByName(name) {
|
6
6
|
return RuneIds_1.RuneIds[name];
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { RuneId, RuneName } from '
|
1
|
+
import { RuneId, RuneName } from '../../types';
|
2
2
|
export declare function getRuneNameById(id: RuneId): RuneName;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getRuneNameById = void 0;
|
4
|
-
const RuneNames_1 = require("
|
4
|
+
const RuneNames_1 = require("../../Constants/Runes/RuneNames");
|
5
5
|
function getRuneNameById(id) {
|
6
6
|
return RuneNames_1.RuneNames[id];
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { StatRuneId, StatRuneName } from '
|
1
|
+
import { StatRuneId, StatRuneName } from '../../types';
|
2
2
|
export declare function getStatRuneIdByName(name: StatRuneName): StatRuneId;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getStatRuneIdByName = void 0;
|
4
|
-
const StatRuneIds_1 = require("
|
4
|
+
const StatRuneIds_1 = require("../../Constants/Runes/StatRuneIds");
|
5
5
|
function getStatRuneIdByName(name) {
|
6
6
|
return StatRuneIds_1.StatRuneIds[name];
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { StatRuneId, StatRuneName } from '
|
1
|
+
import { StatRuneId, StatRuneName } from '../../types';
|
2
2
|
export declare function getStatRuneNameById(id: StatRuneId): StatRuneName;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getStatRuneNameById = void 0;
|
4
|
-
const StatRuneNames_1 = require("
|
4
|
+
const StatRuneNames_1 = require("../../Constants/Runes/StatRuneNames");
|
5
5
|
function getStatRuneNameById(id) {
|
6
6
|
return StatRuneNames_1.StatRuneNames[id];
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { TreeRuneId, TreeRuneName } from '
|
1
|
+
import { TreeRuneId, TreeRuneName } from '../../types';
|
2
2
|
export declare function getTreeRuneIdByName(name: TreeRuneName): TreeRuneId;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getTreeRuneIdByName = void 0;
|
4
|
-
const TreeRuneIds_1 = require("
|
4
|
+
const TreeRuneIds_1 = require("../../Constants/Runes/TreeRuneIds");
|
5
5
|
function getTreeRuneIdByName(name) {
|
6
6
|
return TreeRuneIds_1.TreeRuneIds[name];
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { TreeRuneId, TreeRuneName } from '
|
1
|
+
import { TreeRuneId, TreeRuneName } from '../../types';
|
2
2
|
export declare function getTreeRuneNameById(id: TreeRuneId): TreeRuneName;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getTreeRuneNameById = void 0;
|
4
|
-
const TreeRuneNames_1 = require("
|
4
|
+
const TreeRuneNames_1 = require("../../Constants/Runes/TreeRuneNames");
|
5
5
|
function getTreeRuneNameById(id) {
|
6
6
|
return TreeRuneNames_1.TreeRuneNames[id];
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { RuneId } from '
|
1
|
+
import { RuneId } from '../../types';
|
2
2
|
export declare function isRuneId(id: string): id is RuneId;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isRuneId = void 0;
|
4
|
-
const RuneNames_1 = require("
|
4
|
+
const RuneNames_1 = require("../../Constants/Runes/RuneNames");
|
5
5
|
function isRuneId(id) {
|
6
6
|
return id in RuneNames_1.RuneNames;
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { RuneName } from '
|
1
|
+
import { RuneName } from '../../types';
|
2
2
|
export declare function isRuneName(name: string): name is RuneName;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isRuneName = void 0;
|
4
|
-
const RuneIds_1 = require("
|
4
|
+
const RuneIds_1 = require("../../Constants/Runes/RuneIds");
|
5
5
|
function isRuneName(name) {
|
6
6
|
return name in RuneIds_1.RuneIds;
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { StatRuneId } from '
|
1
|
+
import { StatRuneId } from '../../types';
|
2
2
|
export declare function isStatRuneId(id: string): id is StatRuneId;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isStatRuneId = void 0;
|
4
|
-
const StatRuneNames_1 = require("
|
4
|
+
const StatRuneNames_1 = require("../../Constants/Runes/StatRuneNames");
|
5
5
|
function isStatRuneId(id) {
|
6
6
|
return id in StatRuneNames_1.StatRuneNames;
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { StatRuneName } from '
|
1
|
+
import { StatRuneName } from '../../types';
|
2
2
|
export declare function isStatRuneName(name: string): name is StatRuneName;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isStatRuneName = void 0;
|
4
|
-
const StatRuneIds_1 = require("
|
4
|
+
const StatRuneIds_1 = require("../../Constants/Runes/StatRuneIds");
|
5
5
|
function isStatRuneName(name) {
|
6
6
|
return name in StatRuneIds_1.StatRuneIds;
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { TreeRuneId } from '
|
1
|
+
import { TreeRuneId } from '../../types';
|
2
2
|
export declare function isTreeRuneId(id: string): id is TreeRuneId;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isTreeRuneId = void 0;
|
4
|
-
const TreeRuneNames_1 = require("
|
4
|
+
const TreeRuneNames_1 = require("../../Constants/Runes/TreeRuneNames");
|
5
5
|
function isTreeRuneId(id) {
|
6
6
|
return id in TreeRuneNames_1.TreeRuneNames;
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { TreeRuneName } from '
|
1
|
+
import { TreeRuneName } from '../../types';
|
2
2
|
export declare function isTreeRuneName(name: string): name is TreeRuneName;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isTreeRuneName = void 0;
|
4
|
-
const TreeRuneIds_1 = require("
|
4
|
+
const TreeRuneIds_1 = require("../../Constants/Runes/TreeRuneIds");
|
5
5
|
function isTreeRuneName(name) {
|
6
6
|
return name in TreeRuneIds_1.TreeRuneIds;
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpellId, SpellKey } from '
|
1
|
+
import { SpellId, SpellKey } from '../../types';
|
2
2
|
export declare function getSpellIdByKey(key: SpellKey): SpellId;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getSpellIdByKey = void 0;
|
4
|
-
const SpellIds_1 = require("
|
4
|
+
const SpellIds_1 = require("../../Constants/Spells/SpellIds");
|
5
5
|
function getSpellIdByKey(key) {
|
6
6
|
return SpellIds_1.SpellIds[key];
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpellId, SpellName } from '
|
1
|
+
import { SpellId, SpellName } from '../../types';
|
2
2
|
export declare function getSpellIdByName(name: SpellName): SpellId;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getSpellIdByName = void 0;
|
4
|
-
const SpellIdsByName_1 = require("
|
4
|
+
const SpellIdsByName_1 = require("../../Constants/Spells/SpellIdsByName");
|
5
5
|
function getSpellIdByName(name) {
|
6
6
|
return SpellIdsByName_1.SpellIdsByName[name];
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpellId, SpellKey } from '
|
1
|
+
import { SpellId, SpellKey } from '../../types';
|
2
2
|
export declare function getSpellKeyById(id: SpellId): SpellKey;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getSpellKeyById = void 0;
|
4
|
-
const SpellKeys_1 = require("
|
4
|
+
const SpellKeys_1 = require("../../Constants/Spells/SpellKeys");
|
5
5
|
function getSpellKeyById(id) {
|
6
6
|
return SpellKeys_1.SpellKeys[id];
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpellKey, SpellName } from '
|
1
|
+
import { SpellKey, SpellName } from '../../types';
|
2
2
|
export declare function getSpellKeyByName(name: SpellName): SpellKey;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getSpellKeyByName = void 0;
|
4
|
-
const SpellIdsByName_1 = require("
|
5
|
-
const SpellKeys_1 = require("
|
4
|
+
const SpellIdsByName_1 = require("../../Constants/Spells/SpellIdsByName");
|
5
|
+
const SpellKeys_1 = require("../../Constants/Spells/SpellKeys");
|
6
6
|
function getSpellKeyByName(name) {
|
7
7
|
return SpellKeys_1.SpellKeys[SpellIdsByName_1.SpellIdsByName[name]];
|
8
8
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpellId, SpellName } from '
|
1
|
+
import { SpellId, SpellName } from '../../types';
|
2
2
|
export declare function getSpellNameById(id: SpellId): SpellName;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getSpellNameById = void 0;
|
4
|
-
const SpellKeys_1 = require("
|
5
|
-
const SpellNames_1 = require("
|
4
|
+
const SpellKeys_1 = require("../../Constants/Spells/SpellKeys");
|
5
|
+
const SpellNames_1 = require("../../Constants/Spells/SpellNames");
|
6
6
|
function getSpellNameById(id) {
|
7
7
|
return SpellNames_1.SpellNames[SpellKeys_1.SpellKeys[id]];
|
8
8
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpellKey, SpellName } from '
|
1
|
+
import { SpellKey, SpellName } from '../../types';
|
2
2
|
export declare function getSpellNameByKey(key: SpellKey): SpellName;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getSpellNameByKey = void 0;
|
4
|
-
const SpellNames_1 = require("
|
4
|
+
const SpellNames_1 = require("../../Constants/Spells/SpellNames");
|
5
5
|
function getSpellNameByKey(key) {
|
6
6
|
return SpellNames_1.SpellNames[key];
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpellId } from '
|
1
|
+
import { SpellId } from '../../types';
|
2
2
|
export declare function isSpellId(id: string): id is SpellId;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isSpellId = void 0;
|
4
|
-
const SpellKeys_1 = require("
|
4
|
+
const SpellKeys_1 = require("../../Constants/Spells/SpellKeys");
|
5
5
|
function isSpellId(id) {
|
6
6
|
return id in SpellKeys_1.SpellKeys;
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpellKey } from '
|
1
|
+
import { SpellKey } from '../../types';
|
2
2
|
export declare function isSpellKey(key: string): key is SpellKey;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isSpellKey = void 0;
|
4
|
-
const SpellNames_1 = require("
|
4
|
+
const SpellNames_1 = require("../../Constants/Spells/SpellNames");
|
5
5
|
function isSpellKey(key) {
|
6
6
|
return key in SpellNames_1.SpellNames;
|
7
7
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpellName } from '
|
1
|
+
import { SpellName } from '../../types';
|
2
2
|
export declare function isSpellName(name: string): name is SpellName;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isSpellName = void 0;
|
4
|
-
const SpellIdsByName_1 = require("
|
4
|
+
const SpellIdsByName_1 = require("../../Constants/Spells/SpellIdsByName");
|
5
5
|
function isSpellName(name) {
|
6
6
|
return name in SpellIdsByName_1.SpellIdsByName;
|
7
7
|
}
|
package/dist/index.d.ts
CHANGED
@@ -1,53 +1,53 @@
|
|
1
|
-
export { ChampionIds } from './Constants/ChampionIds';
|
2
|
-
export { ChampionIdsByName } from './Constants/ChampionIdsByName';
|
3
|
-
export { ChampionKeys } from './Constants/ChampionKeys';
|
4
|
-
export { ChampionNames } from './Constants/ChampionNames';
|
1
|
+
export { ChampionIds } from './Constants/Champions/ChampionIds';
|
2
|
+
export { ChampionIdsByName } from './Constants/Champions/ChampionIdsByName';
|
3
|
+
export { ChampionKeys } from './Constants/Champions/ChampionKeys';
|
4
|
+
export { ChampionNames } from './Constants/Champions/ChampionNames';
|
5
5
|
export { DDPaths } from './Constants/DDPaths';
|
6
|
-
export { ItemKeys } from './Constants/ItemKeys';
|
7
|
-
export { ItemNames } from './Constants/ItemNames';
|
8
|
-
export { RuneIds } from './Constants/RuneIds';
|
9
|
-
export { RuneNames } from './Constants/RuneNames';
|
10
|
-
export { RuneSets } from './Constants/RuneSets';
|
11
|
-
export { SpellIds } from './Constants/SpellIds';
|
12
|
-
export { SpellIdsByName } from './Constants/SpellIdsByName';
|
13
|
-
export { SpellKeys } from './Constants/SpellKeys';
|
14
|
-
export { SpellNames } from './Constants/SpellNames';
|
15
|
-
export { StatRuneIds } from './Constants/StatRuneIds';
|
16
|
-
export { StatRuneNames } from './Constants/StatRuneNames';
|
17
|
-
export { TreeRuneIds } from './Constants/TreeRuneIds';
|
18
|
-
export { TreeRuneNames } from './Constants/TreeRuneNames';
|
19
|
-
export { getChampionIdByKey } from './Helpers/getChampionIdByKey';
|
20
|
-
export { getChampionIdByName } from './Helpers/getChampionIdByName';
|
21
|
-
export { getChampionKeyById } from './Helpers/getChampionKeyById';
|
22
|
-
export { getChampionKeyByName } from './Helpers/getChampionKeyByName';
|
23
|
-
export { getChampionNameById } from './Helpers/getChampionNameById';
|
24
|
-
export { getItemKeyByName } from './Helpers/getItemKeyByName';
|
25
|
-
export { getItemNameByKey } from './Helpers/getItemNameByKey';
|
26
|
-
export { getRuneIdByName } from './Helpers/getRuneIdByName';
|
27
|
-
export { getRuneNameById } from './Helpers/getRuneNameById';
|
28
|
-
export { getSpellIdByKey } from './Helpers/getSpellIdByKey';
|
29
|
-
export { getSpellIdByName } from './Helpers/getSpellIdByName';
|
30
|
-
export { getSpellKeyById } from './Helpers/getSpellKeyById';
|
31
|
-
export { getSpellKeyByName } from './Helpers/getSpellKeyByName';
|
32
|
-
export { getSpellNameById } from './Helpers/getSpellNameById';
|
33
|
-
export { getSpellNameByKey } from './Helpers/getSpellNameByKey';
|
34
|
-
export { getStatRuneIdByName } from './Helpers/getStatRuneIdByName';
|
35
|
-
export { getStatRuneNameById } from './Helpers/getStatRuneNameById';
|
36
|
-
export { getTreeRuneIdByName } from './Helpers/getTreeRuneIdByName';
|
37
|
-
export { getTreeRuneNameById } from './Helpers/getTreeRuneNameById';
|
38
|
-
export { isChampionId } from './Helpers/isChampionId';
|
39
|
-
export { isChampionKey } from './Helpers/isChampionKey';
|
40
|
-
export { isChampionName } from './Helpers/isChampionName';
|
41
|
-
export { isItemKey } from './Helpers/isItemKey';
|
42
|
-
export { isItemName } from './Helpers/isItemName';
|
43
|
-
export { isRuneId } from './Helpers/isRuneId';
|
44
|
-
export { isRuneName } from './Helpers/isRuneName';
|
45
|
-
export { isSpellId } from './Helpers/isSpellId';
|
46
|
-
export { isSpellKey } from './Helpers/isSpellKey';
|
47
|
-
export { isSpellName } from './Helpers/isSpellName';
|
48
|
-
export { isStatRuneId } from './Helpers/isStatRuneId';
|
49
|
-
export { isStatRuneName } from './Helpers/isStatRuneName';
|
50
|
-
export { isTreeRuneId } from './Helpers/isTreeRuneId';
|
51
|
-
export { isTreeRuneName } from './Helpers/isTreeRuneName';
|
6
|
+
export { ItemKeys } from './Constants/Items/ItemKeys';
|
7
|
+
export { ItemNames } from './Constants/Items/ItemNames';
|
8
|
+
export { RuneIds } from './Constants/Runes/RuneIds';
|
9
|
+
export { RuneNames } from './Constants/Runes/RuneNames';
|
10
|
+
export { RuneSets } from './Constants/Runes/RuneSets';
|
11
|
+
export { SpellIds } from './Constants/Spells/SpellIds';
|
12
|
+
export { SpellIdsByName } from './Constants/Spells/SpellIdsByName';
|
13
|
+
export { SpellKeys } from './Constants/Spells/SpellKeys';
|
14
|
+
export { SpellNames } from './Constants/Spells/SpellNames';
|
15
|
+
export { StatRuneIds } from './Constants/Runes/StatRuneIds';
|
16
|
+
export { StatRuneNames } from './Constants/Runes/StatRuneNames';
|
17
|
+
export { TreeRuneIds } from './Constants/Runes/TreeRuneIds';
|
18
|
+
export { TreeRuneNames } from './Constants/Runes/TreeRuneNames';
|
19
|
+
export { getChampionIdByKey } from './Helpers/Champions/getChampionIdByKey';
|
20
|
+
export { getChampionIdByName } from './Helpers/Champions/getChampionIdByName';
|
21
|
+
export { getChampionKeyById } from './Helpers/Champions/getChampionKeyById';
|
22
|
+
export { getChampionKeyByName } from './Helpers/Champions/getChampionKeyByName';
|
23
|
+
export { getChampionNameById } from './Helpers/Champions/getChampionNameById';
|
24
|
+
export { getItemKeyByName } from './Helpers/Items/getItemKeyByName';
|
25
|
+
export { getItemNameByKey } from './Helpers/Items/getItemNameByKey';
|
26
|
+
export { getRuneIdByName } from './Helpers/Runes/getRuneIdByName';
|
27
|
+
export { getRuneNameById } from './Helpers/Runes/getRuneNameById';
|
28
|
+
export { getSpellIdByKey } from './Helpers/Spells/getSpellIdByKey';
|
29
|
+
export { getSpellIdByName } from './Helpers/Spells/getSpellIdByName';
|
30
|
+
export { getSpellKeyById } from './Helpers/Spells/getSpellKeyById';
|
31
|
+
export { getSpellKeyByName } from './Helpers/Spells/getSpellKeyByName';
|
32
|
+
export { getSpellNameById } from './Helpers/Spells/getSpellNameById';
|
33
|
+
export { getSpellNameByKey } from './Helpers/Spells/getSpellNameByKey';
|
34
|
+
export { getStatRuneIdByName } from './Helpers/Runes/getStatRuneIdByName';
|
35
|
+
export { getStatRuneNameById } from './Helpers/Runes/getStatRuneNameById';
|
36
|
+
export { getTreeRuneIdByName } from './Helpers/Runes/getTreeRuneIdByName';
|
37
|
+
export { getTreeRuneNameById } from './Helpers/Runes/getTreeRuneNameById';
|
38
|
+
export { isChampionId } from './Helpers/Champions/isChampionId';
|
39
|
+
export { isChampionKey } from './Helpers/Champions/isChampionKey';
|
40
|
+
export { isChampionName } from './Helpers/Champions/isChampionName';
|
41
|
+
export { isItemKey } from './Helpers/Items/isItemKey';
|
42
|
+
export { isItemName } from './Helpers/Items/isItemName';
|
43
|
+
export { isRuneId } from './Helpers/Runes/isRuneId';
|
44
|
+
export { isRuneName } from './Helpers/Runes/isRuneName';
|
45
|
+
export { isSpellId } from './Helpers/Spells/isSpellId';
|
46
|
+
export { isSpellKey } from './Helpers/Spells/isSpellKey';
|
47
|
+
export { isSpellName } from './Helpers/Spells/isSpellName';
|
48
|
+
export { isStatRuneId } from './Helpers/Runes/isStatRuneId';
|
49
|
+
export { isStatRuneName } from './Helpers/Runes/isStatRuneName';
|
50
|
+
export { isTreeRuneId } from './Helpers/Runes/isTreeRuneId';
|
51
|
+
export { isTreeRuneName } from './Helpers/Runes/isTreeRuneName';
|
52
52
|
export * from './types';
|
53
53
|
export * from './types/Meta';
|