core: contestScoreboardRow method

This commit is contained in:
undefined committed 2022-09-14 21:38:55 +08:00
1 parent f5828e5cb3
commit 7b112817c6
2 files changed
+156 -130

No files matched your search

+5
View File
@@ -505,6 +505,11 @@ export interface ContestRule<T = any> {
this: ContestRule<T>, isExport: boolean, _: (s: string) => string,
tdoc: Tdoc<30>, pdict: ProblemDict,
) => Promise<ScoreboardRow>;
scoreboardRow: (
this: ContestRule<T>, isExport: boolean, _: (s: string) => string,
tdoc: Tdoc<30>, pdict: ProblemDict, udoc: Udoc | User, rank: number, tsdoc: ContestStat & T,
meta?: any,
) => Promise<ScoreboardRow>;
scoreboard: (
this: ContestRule<T>, isExport: boolean, _: (s: string) => string,
tdoc: Tdoc<30>, pdict: ProblemDict, cursor: Cursor<ContestStat & T>, page: number,