core: typing for tsdoc (#1164)

This commit is contained in:
Baoshuo authored and GitHub committed 2026-06-14 08:44:33 +08:00
1 parent fbf27379b3
commit a6cdbb9914
11 files changed
+108 -44

No files matched your search

+1 -1
View File
@@ -368,7 +368,7 @@ export class ProblemDetailHandler extends ContestDetailBaseHandler {
if (this.tdoc && this.tsdoc) {
const fields = ['attend', 'startAt', 'endAt'];
if (contest.canShowSelfRecord.call(this, this.tdoc, true)) fields.push('detail');
this.tsdoc = pick(this.tsdoc, fields);
this.tsdoc = pick(this.tsdoc, fields) as typeof this.tsdoc;
this.response.body.tsdoc = this.tsdoc;
}
this.response.template = 'problem_detail.html';