aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/models/VerificationResult.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/models/VerificationResult.ts')
-rw-r--r--frontend/app/models/VerificationResult.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/frontend/app/models/VerificationResult.ts b/frontend/app/models/VerificationResult.ts
new file mode 100644
index 0000000..09a7ef4
--- /dev/null
+++ b/frontend/app/models/VerificationResult.ts
@@ -0,0 +1,17 @@
+export type VerificationResultStatus =
+ | "running"
+ | "success"
+ | "wrong_answer"
+ | "timeout"
+ | "compile_error"
+ | "runtime_error"
+ | "internal_error"
+ | "canceled";
+
+export type VerificationResult = {
+ testcase_id: number | null;
+ status: VerificationResultStatus;
+ label: string;
+ stdout: string;
+ stderr: string;
+};