Update the UpdatePlayer event data to more accurately the data payloads.
This commit is contained in:
parent
624ebf123e
commit
9e384f7826
1 changed files with 14 additions and 5 deletions
19
server/src/types/data.d.ts
vendored
19
server/src/types/data.d.ts
vendored
|
|
@ -80,12 +80,21 @@ interface UpdateAnswerResponse extends response {
|
||||||
|
|
||||||
|
|
||||||
interface UpdatePlayer {
|
interface UpdatePlayer {
|
||||||
|
action: "modify" | "remove";
|
||||||
|
game_code: string;
|
||||||
name: string;
|
name: string;
|
||||||
team: team;
|
from: {
|
||||||
role: role;
|
team: team;
|
||||||
|
role: role;
|
||||||
|
};
|
||||||
|
to: {
|
||||||
|
team: team;
|
||||||
|
role: role;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
interface UpdatePlayerResponse {
|
interface UpdatePlayerResponse {
|
||||||
name: string;
|
action?: "modify" | "new" | "remove";
|
||||||
team: team;
|
name?: string; // action: all
|
||||||
role: role;
|
team?: team; // action: "modify"
|
||||||
|
role?: role; // action: "modify"
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue