aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/types/SubmitResult.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-22 14:16:21 +0900
committernsfisis <nsfisis@gmail.com>2024-08-22 14:16:21 +0900
commit81dd1db4daa57e67b1f603c260afe6cb526e5278 (patch)
tree8e5a857769db577b034a9a0404e70cf6c2d2693a /frontend/app/types/SubmitResult.ts
parent483e297f4789fb1fdaa241f87686a00ef55a046d (diff)
parentdfd33e58a5e6f830d60e978afad7348f7a16068d (diff)
downloadiosdc-japan-2024-albatross-81dd1db4daa57e67b1f603c260afe6cb526e5278.tar.gz
iosdc-japan-2024-albatross-81dd1db4daa57e67b1f603c260afe6cb526e5278.tar.zst
iosdc-japan-2024-albatross-81dd1db4daa57e67b1f603c260afe6cb526e5278.zip
Merge branch 'refactor/frontend-state'
Diffstat (limited to 'frontend/app/types/SubmitResult.ts')
-rw-r--r--frontend/app/types/SubmitResult.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/frontend/app/types/SubmitResult.ts b/frontend/app/types/SubmitResult.ts
new file mode 100644
index 0000000..6df00b6
--- /dev/null
+++ b/frontend/app/types/SubmitResult.ts
@@ -0,0 +1,16 @@
+import type { ExecResult } from "./ExecResult";
+
+export type SubmitResultStatus =
+ | "waiting_submission"
+ | "running"
+ | "success"
+ | "wrong_answer"
+ | "timeout"
+ | "compile_error"
+ | "runtime_error"
+ | "internal_error";
+
+export type SubmitResult = {
+ status: SubmitResultStatus;
+ execResults: ExecResult[];
+};