Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0b07a38

Browse files
committed
chore(dts): reorder properties
1 parent 2fa1501 commit 0b07a38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎luogu-api.d.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -649,9 +649,9 @@ export interface ClientboundChatMessageData {
649649

650650
export interface ProblemSummary {
651651
pid: string;
652+
type: string;
652653
title: string;
653654
difficulty: number;
654-
type: string;
655655
}
656656

657657
export interface Problem extends LegacyProblemSummary {
@@ -705,8 +705,8 @@ export interface ProblemSettings {
705705
}
706706

707707
export interface ProblemStatus {
708-
accepted: boolean;
709708
submitted: boolean;
709+
accepted: boolean;
710710
}
711711

712712
export interface TestCase {
@@ -913,8 +913,8 @@ export interface SelfDetails extends Self {
913913

914914
export interface UserSummary {
915915
uid: number;
916-
avatar: string;
917916
name: string;
917+
avatar: string;
918918
slogan: string | null;
919919
badge: string | null;
920920
isAdmin: boolean;
@@ -1169,7 +1169,7 @@ export interface Advertisement {
11691169
export type Maybe<T> = {} | T;
11701170

11711171
export interface List<T> {
1172-
result: T[] | Record<number,T>;
1172+
result: T[] | {[index: number]: T};
11731173
count: number;
11741174
perPage: number | null;
11751175
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /