Add game_code to payloads that were missing it.
This commit is contained in:
parent
708de802a4
commit
727e41f2b0
1 changed files with 7 additions and 1 deletions
8
server/src/types/data.d.ts
vendored
8
server/src/types/data.d.ts
vendored
|
|
@ -24,6 +24,7 @@ interface GameDeleted extends response {}
|
||||||
|
|
||||||
|
|
||||||
interface GetPastQuestions {
|
interface GetPastQuestions {
|
||||||
|
game_code: string;
|
||||||
team: team;
|
team: team;
|
||||||
}
|
}
|
||||||
interface PastQuestions extends response {
|
interface PastQuestions extends response {
|
||||||
|
|
@ -40,6 +41,7 @@ interface GameRejoined extends response {}
|
||||||
|
|
||||||
|
|
||||||
interface NewHand {
|
interface NewHand {
|
||||||
|
game_code: string;
|
||||||
team: team;
|
team: team;
|
||||||
}
|
}
|
||||||
interface SendCard {
|
interface SendCard {
|
||||||
|
|
@ -53,13 +55,16 @@ interface UpdateHand extends response{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
interface ObjectList {}
|
interface ObjectList {
|
||||||
|
game_code: string;
|
||||||
|
}
|
||||||
interface ObjectListResponse extends response {
|
interface ObjectListResponse extends response {
|
||||||
objects?: string[];
|
objects?: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
interface SelectObject {
|
interface SelectObject {
|
||||||
|
game_code: string;
|
||||||
object: string;
|
object: string;
|
||||||
}
|
}
|
||||||
interface ChosenObject extends response {
|
interface ChosenObject extends response {
|
||||||
|
|
@ -68,6 +73,7 @@ interface ChosenObject extends response {
|
||||||
|
|
||||||
|
|
||||||
interface UpdateAnswer {
|
interface UpdateAnswer {
|
||||||
|
game_code: string;
|
||||||
answer: answer;
|
answer: answer;
|
||||||
value: string;
|
value: string;
|
||||||
team: team;
|
team: team;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue