Skip to content

Instantly share code, notes, and snippets.

@iammarkps
Last active April 28, 2020 08:10
Show Gist options
  • Save iammarkps/833302ce992486c645ade26a86920eda to your computer and use it in GitHub Desktop.
Save iammarkps/833302ce992486c645ade26a86920eda to your computer and use it in GitHub Desktop.
programming.in.th typing
interface IGroup {
status: IStatus[]
score: number
fullScore: number
}
interface IStatus {
time: number // ms
memory: number // kB
message: string
verdict: string
}
interface ISubmission {
ID: string
task: ITask
username: string
language: string
groups: IGroup[]
points: number
code: string[]
timestamp: Date
humanTimestamp: string
}
interface ITask {
id: string
path: string
title: string
timeLimit: number
memoryLimit: number
tags: ReadonlyArray<string>
visible: boolean
submit: boolean
solved: number
type: 'normal' | 'output-only' | 'communication'
fileName?: ReadonlyArray<string>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment