Set to and from to be optional
This commit is contained in:
parent
264125c772
commit
ffc82fbb98
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
|
|
@ -103,16 +103,16 @@ interface UpdatePlayer {
|
|||
action: "modify" | "remove";
|
||||
game_code: string;
|
||||
name: string;
|
||||
from: {
|
||||
from?: {
|
||||
team: team;
|
||||
role: role;
|
||||
};
|
||||
to: {
|
||||
to?: {
|
||||
team: team;
|
||||
role: role;
|
||||
};
|
||||
}
|
||||
interface PlayerUpdate extends response {
|
||||
interface UpdatePlayerResponse {
|
||||
action?: "modify" | "new" | "remove";
|
||||
name?: string; // action: all
|
||||
team?: team; // action: "modify"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue