@battle-racing/br-common-lib 1.2.7 → 1.2.8

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.
@@ -0,0 +1,9 @@
1
+ export declare const FLAG_STATUS: {
2
+ readonly STANDBY: "Standby";
3
+ readonly DEACTIVATED: "Deactivated";
4
+ readonly ACTIVATED: "Activated";
5
+ readonly HIT: "Hit";
6
+ readonly SHOWING_IMAGE: "Showing Image";
7
+ readonly SHOWING_ANIMATION: "Showing Animation";
8
+ readonly UNKNOWN: "Unknown";
9
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FLAG_STATUS = void 0;
4
+ exports.FLAG_STATUS = {
5
+ STANDBY: 'Standby',
6
+ DEACTIVATED: 'Deactivated',
7
+ ACTIVATED: 'Activated',
8
+ HIT: 'Hit',
9
+ SHOWING_IMAGE: 'Showing Image',
10
+ SHOWING_ANIMATION: 'Showing Animation',
11
+ UNKNOWN: 'Unknown',
12
+ };
@@ -1 +1,2 @@
1
+ export * from './flag-status';
1
2
  export * from './lights-effect';
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./flag-status"), exports);
17
18
  __exportStar(require("./lights-effect"), exports);
@@ -1 +1,3 @@
1
- export type FlagStatus = 'Standby' | 'Deactivated' | 'Activated' | 'Hit' | 'Showing Image' | 'Showing Animation' | 'Unknown';
1
+ import { FLAG_STATUS } from '../../../constants';
2
+ import type { ObjectValues } from '../../utils';
3
+ export type FlagStatus = ObjectValues<typeof FLAG_STATUS>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@battle-racing/br-common-lib",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "Common library for all Battle Racing Repositorios",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,9 @@
1
+ export const FLAG_STATUS = {
2
+ STANDBY: 'Standby',
3
+ DEACTIVATED: 'Deactivated',
4
+ ACTIVATED: 'Activated',
5
+ HIT: 'Hit',
6
+ SHOWING_IMAGE: 'Showing Image',
7
+ SHOWING_ANIMATION: 'Showing Animation',
8
+ UNKNOWN: 'Unknown',
9
+ } as const;
@@ -1 +1,2 @@
1
+ export * from './flag-status';
1
2
  export * from './lights-effect';
@@ -1,8 +1,4 @@
1
- export type FlagStatus =
2
- | 'Standby'
3
- | 'Deactivated'
4
- | 'Activated'
5
- | 'Hit'
6
- | 'Showing Image'
7
- | 'Showing Animation'
8
- | 'Unknown';
1
+ import { FLAG_STATUS } from '../../../constants';
2
+ import type { ObjectValues } from '../../utils';
3
+
4
+ export type FlagStatus = ObjectValues<typeof FLAG_STATUS>;