Add some type info for request data.
This commit is contained in:
parent
1380a7919b
commit
ea13b46c66
1 changed files with 34 additions and 11 deletions
45
src/types/data.d.ts
vendored
45
src/types/data.d.ts
vendored
|
|
@ -1,14 +1,30 @@
|
|||
interface ExecutePlayer {}
|
||||
interface request {
|
||||
game_code: string;
|
||||
user: string;
|
||||
}
|
||||
|
||||
interface InvestigateAffiliation {}
|
||||
interface ExecutePlayer extends request {
|
||||
target: string;
|
||||
}
|
||||
|
||||
interface NextPresident {}
|
||||
interface InvestigateAffiliation extends request {
|
||||
target: string;
|
||||
}
|
||||
|
||||
interface ExecutiveConfirmation {}
|
||||
interface NextPresident extends request {
|
||||
target: string;
|
||||
}
|
||||
|
||||
interface ChancellorNomination {}
|
||||
interface ExecutiveConfirmation extends request {}
|
||||
|
||||
interface ChancellorPolicy {}
|
||||
interface ChancellorNomination extends request {
|
||||
nomination: string;
|
||||
}
|
||||
|
||||
interface ChancellorPolicy extends request {
|
||||
discard: policy;
|
||||
policy: policy;
|
||||
}
|
||||
|
||||
interface GetPlayerList {
|
||||
game_code: string;
|
||||
|
|
@ -23,12 +39,19 @@ interface JoinGame {
|
|||
username: string;
|
||||
}
|
||||
|
||||
interface PresidentPolicies {}
|
||||
interface PresidentPolicies extends request {
|
||||
policies: [policy, policy];
|
||||
discard: policy;
|
||||
}
|
||||
|
||||
interface StartGame {}
|
||||
interface StartGame extends request {}
|
||||
|
||||
interface VetoConfirm {}
|
||||
interface VetoConfirm extends request {
|
||||
allow_veto: "ja"|"nein";
|
||||
}
|
||||
|
||||
interface VetoRequest {}
|
||||
interface VetoRequest extends request {}
|
||||
|
||||
interface Vote {}
|
||||
interface Vote extends request {
|
||||
decision: "ja"|"nein";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue