Add standalone type definitions

This commit is contained in:
Mitchell McCaffrey
2021-07-08 12:01:02 +10:00
parent 123ebd880a
commit 45a4443dd1
17 changed files with 388 additions and 0 deletions

10
src/types/PlayerState.ts Normal file
View File

@@ -0,0 +1,10 @@
import { Timer } from "./Timer";
import { DiceState } from "./Dice";
export type PlayerState = {
nickname: string;
timer?: Timer;
dice: DiceState;
sessionId?: string;
userId?: string;
};