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