Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
simlmx committed Jul 18, 2024
1 parent 1bb1766 commit cd4a946
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions game-template/game/src/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import { game, RollGame, RollGameState as GS } from ".";
test("inside PlayerMove", () => {
expectTypeOf(game).toEqualTypeOf<RollGame>();

const move = {
executeNow({ board, playerboard, payload }) {
console.log(board, playerboard, payload);
const move: PlayerMove<GS, { x: number }> = {
executeNow() {
//
},
} satisfies PlayerMove<GS, { x: number }>;
};

expectTypeOf(move.executeNow).parameter(0).toMatchTypeOf<{
board: GS["B"];
Expand Down

0 comments on commit cd4a946

Please sign in to comment.