lol-constants 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ import { RuneTreeId, RuneTreeName } from '../../types';
2
+ export declare function getRuneTreeIdByName(name: RuneTreeName): RuneTreeId;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuneTreeIdByName = void 0;
4
+ const RuneTreeIds_1 = require("../../Constants/Runes/RuneTreeIds");
5
+ function getRuneTreeIdByName(name) {
6
+ return RuneTreeIds_1.RuneTreeIds[name];
7
+ }
8
+ exports.getRuneTreeIdByName = getRuneTreeIdByName;
@@ -0,0 +1,2 @@
1
+ import { RuneTreeId, RuneTreeName } from '../../types';
2
+ export declare function getRuneTreeNameById(id: RuneTreeId): RuneTreeName;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuneTreeNameById = void 0;
4
+ const RuneTreeNames_1 = require("../../Constants/Runes/RuneTreeNames");
5
+ function getRuneTreeNameById(id) {
6
+ return RuneTreeNames_1.RuneTreeNames[id];
7
+ }
8
+ exports.getRuneTreeNameById = getRuneTreeNameById;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",