judge: change config.detail to enum (#1000)

This commit is contained in:
undefined authored and GitHub committed 2025-06-26 02:55:38 +01:00
1 parent fb04aaacb9
commit ed830e119e
13 files changed
+41 -29

No files matched your search

+3 -1
View File
@@ -36,6 +36,8 @@ export interface SubtaskConfig {
cases?: TestCaseConfig[];
}
export type DetailType = 'full' | 'case' | 'none';
export interface ProblemConfigFile {
type?: ProblemType;
subType?: string;
@@ -48,7 +50,7 @@ export interface ProblemConfigFile {
num_processes?: number;
user_extra_files?: string[];
judge_extra_files?: string[];
detail?: boolean;
detail?: DetailType | boolean;
answers?: Record<string, [string | string[], number]>;
redirect?: string;
cases?: TestCaseConfig[];