From a51528616d67522ccae3b1726c94764208b8084f Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Mon, 15 Apr 2024 10:32:44 -0400 Subject: [PATCH] Fix the build not including all types --- JS-SDK/src/types/error.d.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 JS-SDK/src/types/error.d.ts diff --git a/JS-SDK/src/types/error.d.ts b/JS-SDK/src/types/error.d.ts new file mode 100644 index 0000000..a2a3e1b --- /dev/null +++ b/JS-SDK/src/types/error.d.ts @@ -0,0 +1,24 @@ +/** + * A response representing an error. + */ +export type RestfulMCAPIError = { + /** + * The status of this error. + */ + status: string; + + /** + * The HTTP code of this error. + */ + code: number; + + /** + * The message of this error. + */ + message: string; + + /** + * The timestamp this error occurred. + */ + timestamp: string; +}