@via-profit/ability 2.0.0-rc.5 → 2.0.0-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,6 @@ export declare class AbilityCode<T extends string | number | undefined = number>
3
3
  constructor(code: T);
4
4
  isEqual(compareWith: AbilityCode<T> | null): boolean;
5
5
  isNotEqual(compareWith: AbilityCode<T> | null): boolean;
6
- static fromLiteral(literal: string | number): AbilityCode;
6
+ static fromLiteral<T extends string | number>(literal: string | number): AbilityCode<T>;
7
7
  }
8
8
  export default AbilityCode;
@@ -1,6 +1,6 @@
1
1
  import AbilityCode from './AbilityCode';
2
2
  export type AbilityCompareVariantType = 'and' | 'or';
3
- export declare class AbilityCompare extends AbilityCode {
3
+ export declare class AbilityCompare extends AbilityCode<AbilityCompareVariantType> {
4
4
  static and: AbilityCompare;
5
5
  static or: AbilityCompare;
6
6
  }
package/dist/index.js CHANGED
@@ -49,8 +49,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
49
49
  exports.AbilityCompare = void 0;
50
50
  const AbilityCode_1 = __importDefault(__webpack_require__(19));
51
51
  class AbilityCompare extends AbilityCode_1.default {
52
- static and = new AbilityCompare(0);
53
- static or = new AbilityCompare(1);
52
+ static and = new AbilityCompare('and');
53
+ static or = new AbilityCompare('or');
54
54
  }
55
55
  exports.AbilityCompare = AbilityCompare;
56
56
  exports["default"] = AbilityCompare;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@via-profit/ability",
3
3
  "support": "https://via-profit.ru",
4
- "version": "2.0.0-rc.5",
4
+ "version": "2.0.0-rc.7",
5
5
  "description": "Via-Profit Ability service",
6
6
  "keywords": [
7
7
  "ability",