labag 2.1.1 → 2.1.2

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.
@@ -1,8 +1,8 @@
1
1
  export declare const modes: {
2
+ readonly superhhh: import("../mode").Mode<"superhhh">;
2
3
  readonly greenwei: import("../mode").Mode<"greenwei">;
3
- readonly normal: import("../mode").Mode<"normal">;
4
4
  readonly pikachu: import("../mode").Mode<"pikachu">;
5
- readonly superhhh: import("../mode").Mode<"superhhh">;
5
+ readonly normal: import("../mode").Mode<"normal">;
6
6
  };
7
- export type ModeName = typeof modes[keyof typeof modes]["name"];
7
+ export type ModeName = (typeof modes)[keyof typeof modes]["name"];
8
8
  export declare const modeList: (import("../mode").Mode<"greenwei"> | import("../mode").Mode<"normal"> | import("../mode").Mode<"pikachu"> | import("../mode").Mode<"superhhh">)[];
@@ -9,9 +9,9 @@ const normal_1 = __importDefault(require("./normal"));
9
9
  const pikachu_1 = __importDefault(require("./pikachu"));
10
10
  const superhhh_1 = __importDefault(require("./superhhh"));
11
11
  exports.modes = {
12
+ superhhh: superhhh_1.default,
12
13
  greenwei: greenwei_1.default,
13
- normal: normal_1.default,
14
14
  pikachu: pikachu_1.default,
15
- superhhh: superhhh_1.default,
15
+ normal: normal_1.default,
16
16
  };
17
17
  exports.modeList = Object.values(exports.modes);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "labag",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -4,12 +4,12 @@ import pikachu from "./pikachu";
4
4
  import superhhh from "./superhhh";
5
5
 
6
6
  export const modes = {
7
+ superhhh,
7
8
  greenwei,
8
- normal,
9
9
  pikachu,
10
- superhhh,
10
+ normal,
11
11
  } as const;
12
12
 
13
- export type ModeName = typeof modes[keyof typeof modes]["name"];
13
+ export type ModeName = (typeof modes)[keyof typeof modes]["name"];
14
14
 
15
15
  export const modeList = Object.values(modes);
package/src/test.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { labag } from "./index";
2
- import { Pattern } from "./types";
3
2
  labag.addEventListener("gameStart", (game) => {
4
3
  console.log("Game Started!");
5
4
  console.log(`Total Rounds: ${game.times}\n`);