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";
|
action: "modify" | "remove";
|
||||||
game_code: string;
|
game_code: string;
|
||||||
name: string;
|
name: string;
|
||||||
from: {
|
from?: {
|
||||||
team: team;
|
team: team;
|
||||||
role: role;
|
role: role;
|
||||||
};
|
};
|
||||||
to: {
|
to?: {
|
||||||
team: team;
|
team: team;
|
||||||
role: role;
|
role: role;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
interface PlayerUpdate extends response {
|
interface UpdatePlayerResponse {
|
||||||
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