@battle-racing/br-common-lib 1.2.5 → 1.2.6
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.
- package/dist/constants/checkpoint-type.d.ts +5 -0
- package/dist/constants/checkpoint-type.js +8 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.js +1 -0
- package/dist/constants/kart-status.js +0 -1
- package/dist/types/checkpoint/CheckpointType.d.ts +3 -5
- package/dist/types/checkpoint/CheckpointType.js +0 -6
- package/package.json +1 -1
- package/src/constants/checkpoint-type.ts +5 -0
- package/src/constants/index.ts +1 -0
- package/src/constants/kart-status.ts +1 -2
- package/src/types/checkpoint/CheckpointType.ts +3 -5
package/dist/constants/index.js
CHANGED
|
@@ -14,6 +14,7 @@ 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("./checkpoint-type"), exports);
|
|
17
18
|
__exportStar(require("./hardware"), exports);
|
|
18
19
|
__exportStar(require("./kart-status"), exports);
|
|
19
20
|
__exportStar(require("./module-name"), exports);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.KART_STATUS = void 0;
|
|
4
|
-
// export const kartStatus = ['standBy', 'in-game', 'yellow-flag', 'emergency', 'pits', 'eliminated'] as const;
|
|
5
4
|
exports.KART_STATUS = {
|
|
6
5
|
STAND_BY: 'standBy',
|
|
7
6
|
IN_GAME: 'in-game',
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
PowerUp = "PowerUp"
|
|
5
|
-
}
|
|
1
|
+
import { CHECKPOINT_TYPE } from '../../constants';
|
|
2
|
+
import type { ObjectValues } from '../utils';
|
|
3
|
+
export type CheckpointType = ObjectValues<typeof CHECKPOINT_TYPE>;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkpointType = void 0;
|
|
4
|
-
var checkpointType;
|
|
5
|
-
(function (checkpointType) {
|
|
6
|
-
checkpointType["Track"] = "Track";
|
|
7
|
-
checkpointType["PowerUp"] = "PowerUp";
|
|
8
|
-
})(checkpointType || (exports.checkpointType = checkpointType = {}));
|
package/package.json
CHANGED
package/src/constants/index.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// export const kartStatus = ['standBy', 'in-game', 'yellow-flag', 'emergency', 'pits', 'eliminated'] as const;
|
|
2
1
|
export const KART_STATUS = {
|
|
3
2
|
STAND_BY: 'standBy',
|
|
4
3
|
IN_GAME: 'in-game',
|
|
@@ -6,4 +5,4 @@ export const KART_STATUS = {
|
|
|
6
5
|
EMERGENCY: 'emergency',
|
|
7
6
|
PITS: 'pits',
|
|
8
7
|
ELIMINATED: 'eliminated',
|
|
9
|
-
} as const;
|
|
8
|
+
} as const;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { CHECKPOINT_TYPE } from '../../constants';
|
|
2
|
+
import type { ObjectValues } from '../utils';
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
Track = 'Track',
|
|
5
|
-
PowerUp = 'PowerUp',
|
|
6
|
-
}
|
|
4
|
+
export type CheckpointType = ObjectValues<typeof CHECKPOINT_TYPE>;
|