Put types and enums that both the server and web need into a common area
This commit is contained in:
parent
526b4c5771
commit
4c957cce07
4 changed files with 37 additions and 0 deletions
8
common/types/ServerResponse.ts
Normal file
8
common/types/ServerResponse.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
interface ServerResponse {
|
||||
|
||||
/** The state indicator for responses from the server */
|
||||
status: number;
|
||||
|
||||
/** Additional information that is provided by the server */
|
||||
message?: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue