Skip to content

Commit 6b43987

Browse files
committed
response types update
Signed-off-by: Tathagat Thapliyal <tathagat.thapliyal@gmail.com>
1 parent accb3d4 commit 6b43987

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

src/types/result.d.ts

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1-
export interface Testcase {
2-
id: number,
3-
score: number,
4-
time: string,
5-
result: string
1+
export interface TestcaseResult {
2+
id: number,
3+
score: number,
4+
time: string,
5+
result: string
6+
}
7+
8+
export interface Result {
9+
id: number,
10+
stderr: string,
11+
}
12+
13+
export interface RunResult extends Result {
14+
stdout: string,
15+
time: number,
16+
code: number
17+
}
18+
19+
export interface SubmissionResult extends Result {
20+
testcases: Array<TestcaseResult>
621
}

0 commit comments

Comments
 (0)