aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/types/SubmitResult.ts
blob: 6df00b644a5ae69e040d418bca8ba90a9d1190a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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[];
};