Skip to content

Commit

Permalink
fix: add source type
Browse files Browse the repository at this point in the history
  • Loading branch information
seo-rii committed Dec 29, 2021
1 parent 4fd1388 commit 3cee25a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/types/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,28 @@ export interface WebSocketRequest {
type: WebSocketRequestType
data?: any
}

export const enum JudgeSourceType {
TEXT = 'TEXT',
C = 'C',
CPP = 'CPP',
PYTHON3 = 'PYTHON3',
PYPY = 'PYPY',
JAVA = 'JAVA',
JAVASCRIPT = 'JAVASCRIPT',
}

export interface SourceFile {
name: string
ext: JudgeSourceType
source: string
}

export interface JudgeRequest {
language: JudgeSourceType
source: string
input: string[]
output: string[]
timeLimit: number
memoryLimit: number
}

0 comments on commit 3cee25a

Please sign in to comment.