mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: contest.getRawStatus API
This commit is contained in:
1 parent
2cc9c6a06a
commit
68286607e9
5 files changed
+46
-27
No files matched your search
@@ -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>;
|
||||
|
||||
Reference in new issue
Block a user