Skip to content

Commit fe6bae7

Browse files
committed
refactor: Read and Update types to match their semantic purposes (#2627)
1 parent 052d0f3 commit fe6bae7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/types/contest_task_pair.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ export type ContestTaskPair = ContestTaskPairOrigin;
77
export type ContestTaskPairs = ContestTaskPair[];
88

99
// For CRUD operation parameter types
10+
export type ContestTaskPairRead = ContestTaskPair;
11+
1012
export type ContestTaskPairCreate = {
1113
contestId: string;
1214
taskTableIndex: string;
1315
taskId: string;
1416
};
1517

16-
export type ContestTaskPairRead = ContestTaskPairCreate;
17-
18-
export type ContestTaskPairUpdate = ContestTaskPairCreate;
18+
export type ContestTaskPairUpdate = Partial<ContestTaskPairCreate>;
1919

2020
// For mapping and identification
2121
export type ContestTaskPairKey = `${string}:${string}`; // "contest_id:task_id"

0 commit comments

Comments
 (0)