diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-12 01:34:20 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-12 01:48:08 +0900 |
| commit | b97b245861b93a5ab5f8bde095d9920fabd0cbbd (patch) | |
| tree | fcb88fe6a71747623cbe7f9b5c3042818ab519cd /frontend/app/models/VerificationResult.ts | |
| parent | 5964fa404909550a2dd42a75633fef223fdb05fb (diff) | |
| download | phperkaigi-2025-albatross-b97b245861b93a5ab5f8bde095d9920fabd0cbbd.tar.gz phperkaigi-2025-albatross-b97b245861b93a5ab5f8bde095d9920fabd0cbbd.tar.zst phperkaigi-2025-albatross-b97b245861b93a5ab5f8bde095d9920fabd0cbbd.zip | |
refactor(frontend): move some types to app/models
Diffstat (limited to 'frontend/app/models/VerificationResult.ts')
| -rw-r--r-- | frontend/app/models/VerificationResult.ts | 17 |
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; +}; |
