From c760b0f36d51f1b2458785f6bed53ec636a89f7e Mon Sep 17 00:00:00 2001 From: Oliver Akins Date: Mon, 7 Mar 2022 17:57:48 -0600 Subject: [PATCH] Add a type that has genericized request data --- common/src/types/ServerRequest.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 common/src/types/ServerRequest.ts diff --git a/common/src/types/ServerRequest.ts b/common/src/types/ServerRequest.ts new file mode 100644 index 0000000..457da1b --- /dev/null +++ b/common/src/types/ServerRequest.ts @@ -0,0 +1,6 @@ +/** The data that is common to most requests to the server. */ +export interface ServerRequest { + + /** The ID for the game that the action is being taken on. */ + game_code: string; +} \ No newline at end of file