Update some types
This commit is contained in:
parent
ffc82fbb98
commit
a86f02c1cf
1 changed files with 3 additions and 3 deletions
6
server/src/types/data.d.ts
vendored
6
server/src/types/data.d.ts
vendored
|
|
@ -11,8 +11,8 @@ type answer = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
||||||
// Player specific data
|
// Player specific data
|
||||||
interface player {
|
interface player {
|
||||||
name: string;
|
name: string;
|
||||||
role: role;
|
role: role | null;
|
||||||
team: team;
|
team: team | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -112,7 +112,7 @@ interface UpdatePlayer {
|
||||||
role: role;
|
role: role;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
interface UpdatePlayerResponse {
|
interface PlayerUpdate extends response {
|
||||||
action?: "modify" | "new" | "remove";
|
action?: "modify" | "new" | "remove";
|
||||||
name?: string; // action: all
|
name?: string; // action: all
|
||||||
team?: team; // action: "modify"
|
team?: team; // action: "modify"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue