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 {
|
||||
action: "modify" | "remove";
|
||||
game_code: string;
|
||||
name: string;
|
||||
team: team;
|
||||
role: role;
|
||||
from: {
|
||||
team: team;
|
||||
role: role;
|
||||
};
|
||||
to: {
|
||||
team: team;
|
||||
role: role;
|
||||
};
|
||||
}
|
||||
interface UpdatePlayerResponse {
|
||||
name: string;
|
||||
team: team;
|
||||
role: role;
|
||||
action?: "modify" | "new" | "remove";
|
||||
name?: string; // action: all
|
||||
team?: team; // action: "modify"
|
||||
role?: role; // action: "modify"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue