core&ui: contest: tsdoc projection for contest

This commit is contained in:
undefined committed 2022-09-12 18:41:06 +08:00
1 parent 8f7d81ddca
commit dbe369d0c6
9 files changed
+57 -28

No files matched your search

+5 -1
View File
@@ -495,12 +495,16 @@ export interface ContestRule<T = any> {
TEXT: string;
hidden?: boolean;
check: (args: any) => any;
statusSort: any;
statusSort: Record<string, 1 | -1>;
submitAfterAccept: boolean;
showScoreboard: (tdoc: Tdoc<30>, now: Date) => boolean;
showSelfRecord: (tdoc: Tdoc<30>, now: Date) => boolean;
showRecord: (tdoc: Tdoc<30>, now: Date) => boolean;
stat: (this: ContestRule<T>, tdoc: Tdoc<30>, journal: any[], ignoreLock?: boolean) => ContestStat & T;
scoreboardHeader: (
this: ContestRule<T>, isExport: boolean, _: (s: string) => string,
tdoc: Tdoc<30>, pdict: ProblemDict,
) => Promise<ScoreboardRow>;
scoreboard: (
this: ContestRule<T>, isExport: boolean, _: (s: string) => string,
tdoc: Tdoc<30>, pdict: ProblemDict, cursor: Cursor<ContestStat & T>, page: number,