File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
docs/dev-notes/2025-09-23/contest-task-pair-mapping Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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** 設計判断** :
You can’t perform that action at this time.
0 commit comments