lol-constants 2.14.0 → 2.15.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ export declare const Abilities: {
2
+ readonly P: "P";
3
+ readonly Q: "Q";
4
+ readonly W: "W";
5
+ readonly E: "E";
6
+ readonly R: "R";
7
+ };
8
+ export type Ability = typeof Abilities[keyof typeof Abilities];
9
+ export declare function isAbility(value: any): value is Ability;
10
+ export declare const ActiveAbilities: {
11
+ readonly Q: "Q";
12
+ readonly W: "W";
13
+ readonly E: "E";
14
+ readonly R: "R";
15
+ };
16
+ export type ActiveAbility = typeof ActiveAbilities[keyof typeof ActiveAbilities];
17
+ export declare function isActiveAbility(value: any): value is ActiveAbility;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isActiveAbility = exports.ActiveAbilities = exports.isAbility = exports.Abilities = void 0;
4
+ exports.Abilities = {
5
+ 'P': 'P',
6
+ 'Q': 'Q',
7
+ 'W': 'W',
8
+ 'E': 'E',
9
+ 'R': 'R',
10
+ };
11
+ function isAbility(value) {
12
+ return typeof value == 'string' && value in exports.Abilities;
13
+ }
14
+ exports.isAbility = isAbility;
15
+ exports.ActiveAbilities = {
16
+ 'Q': 'Q',
17
+ 'W': 'W',
18
+ 'E': 'E',
19
+ 'R': 'R',
20
+ };
21
+ function isActiveAbility(value) {
22
+ return typeof value == 'string' && value in exports.ActiveAbilities;
23
+ }
24
+ exports.isActiveAbility = isActiveAbility;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "2.14.0",
3
+ "version": "2.15.0",
4
4
  "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells.",
5
5
  "main": "core/index.js",
6
6
  "types": "core/index.d.ts",