Add type alias for the players object.

This commit is contained in:
Oliver-Akins 2020-09-29 16:39:35 -06:00
parent 549383b529
commit 169105f400

2
src/types/db.d.ts vendored
View file

@ -6,6 +6,8 @@ interface player {
type game_states = "lobby"; type game_states = "lobby";
type players = {[key: string]: player};
interface database { interface database {
players: { players: {
[index: string]: player [index: string]: player