Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions luogu-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ export interface TagsResponse {
}

export interface ProblemData {
problem: ProblemDetails & ProblemStatus;
problem: ProblemDetails & Maybe<ProblemStatus>;
contest: ContestSummary | null;
discussions: {
id: number;
Expand All @@ -395,7 +395,7 @@ export interface ProblemData {
}[];
bookmarked: boolean;
vjudgeUsername: string | null;
recommendations: (ProblemSummary & ProblemStatus)[];
recommendations: (ProblemSummary & Maybe<ProblemStatus>)[];
lastLanguage: number;
lastCode: string;
privilegedTeams: TeamSummary[];
Expand Down
2 changes: 1 addition & 1 deletion problems.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</tr>
<tr>
<th align="right">响应主体</th>
<td><code>application/json</code> (<code>DataResponse&lt;{ problems: List&lt;Problem &amp; ProblemStatus&gt;; page: number; }&gt;</code>)</td>
<td><code>application/json</code> (<code>DataResponse&lt;{ problems: List&lt;Problem &amp; Maybe&lt;ProblemStatus&gt;&gt;; page: number; }&gt;</code>)</td>
</tr>
</table>

Expand Down