Add type alias for the players object.
This commit is contained in:
parent
549383b529
commit
169105f400
1 changed files with 2 additions and 0 deletions
2
src/types/db.d.ts
vendored
2
src/types/db.d.ts
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue