Skip to content

Commit 0c431f4

Browse files
committed
docs: Fix typo (#2627)
1 parent c9f2d6b commit 0c431f4

File tree

1 file changed

+5
-3
lines changed
  • docs/dev-notes/2025-09-23/contest-task-pair-mapping

1 file changed

+5
-3
lines changed

docs/dev-notes/2025-09-23/contest-task-pair-mapping/plan.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,18 @@ export type ContestTaskPairUpdate = ContestTaskPairCreate;
193193
### マッピング用の型定義
194194

195195
```typescript
196+
import type { TaskResult } from '$lib/types/task_result';
197+
196198
// 型定義
197-
type ContestTaskPairKey = `${string}:${string}`; // "contest_id:task_id"
199+
export type ContestTaskPairKey = `${string}:${string}`; // "contest_id:task_id"
198200

199201
// ヘルパー関数
200-
function createContestTaskPairKey(contestId: string, taskId: string): ContestTaskPairKey {
202+
export function createContestTaskPairKey(contestId: string, taskId: string): ContestTaskPairKey {
201203
return `${contestId}:${taskId}`;
202204
}
203205

204206
// マップの型(明示的)
205-
type TaskResultMapByContestTaskPair = Map<ContestTaskPairKey, TaskResult>;
207+
export type TaskResultMapByContestTaskPair = Map<ContestTaskPairKey, TaskResult>;
206208
```
207209

208210
**設計判断**:

0 commit comments

Comments
 (0)