aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/types/SubmitResult.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-22 00:46:06 +0900
committernsfisis <nsfisis@gmail.com>2024-08-22 00:59:04 +0900
commit922bc6a1f52d8f01600e9a61ce31963075ec59a5 (patch)
tree9fdd2c8d3d01841ca7130504b8f9261116bc45e6 /frontend/app/types/SubmitResult.ts
parent43d40d375c355837de83501c3f1c122b2bf589bb (diff)
downloadiosdc-japan-2024-albatross-922bc6a1f52d8f01600e9a61ce31963075ec59a5.tar.gz
iosdc-japan-2024-albatross-922bc6a1f52d8f01600e9a61ce31963075ec59a5.tar.zst
iosdc-japan-2024-albatross-922bc6a1f52d8f01600e9a61ce31963075ec59a5.zip
refactor(frontend): organize PlayerInfo
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[];
+};