core: contest.getRawStatus API

This commit is contained in:
undefined committed 2020-12-09 23:38:29 +08:00
1 parent 2cc9c6a06a
commit 68286607e9
5 files changed
+46 -27

No files matched your search

+4 -3
View File
@@ -282,6 +282,7 @@ export interface ScoreboardNode {
value: string,
raw?: any,
}
export type ScoreboardRow = ScoreboardNode[] & { raw?: any };
export type PenaltyRules = Dictionary<number>;
@@ -423,9 +424,9 @@ export interface ContestRule {
stat: (tdoc: Tdoc, journal: any[]) => ContestStat,
scoreboard: (
isExport: boolean, _: (s: string) => string,
tdoc: Tdoc, rankedTsdocs: any[] | Generator<any>, udict: Udict, pdict: Pdict
) => ScoreboardNode[][],
rank: (tsdocs: any[]) => any[] | Generator<any>,
tdoc: Tdoc, rankedTsdocs: any[], udict: Udict, pdict: Pdict
) => ScoreboardRow[],
rank: (tsdocs: any[]) => any[],
}
export type ContestRules = Dictionary<ContestRule>;