0
0
Fork 0

Set to and from to be optional

This commit is contained in:
Oliver-Akins 2021-01-01 16:06:28 -07:00
parent 264125c772
commit ffc82fbb98

View file

@ -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"