Skip to content

Commit

Permalink
api types: Mark ApiResponse and friends as read-only.
Browse files Browse the repository at this point in the history
  • Loading branch information
gnprice committed Jul 14, 2021
1 parent f541f6b commit 375dad8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/api/transportTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export type Auth = {|
* * {@link ApiResponseErrorData}
*/
export type ApiResponse = {
result: string,
msg: string,
+result: string,
+msg: string,
...
};

Expand All @@ -46,8 +46,8 @@ export type ApiResponse = {
* * {@link ApiResponseErrorData}
*/
export type ApiResponseSuccess = {
result: 'success',
msg: '',
+result: 'success',
+msg: '',
...
};

Expand Down Expand Up @@ -93,8 +93,8 @@ export type ApiErrorCode = string;
* This type is not exact: some error responses may contain additional data.
*/
export type ApiResponseErrorData = {
code: ApiErrorCode,
msg: string,
result: 'error',
+code: ApiErrorCode,
+msg: string,
+result: 'error',
...
};

0 comments on commit 375dad8

Please sign in to comment.