feat: 명령어 정규화 및 핸들러 매핑 개선
This commit is contained in:
@@ -304,3 +304,12 @@ export type TurnDaemonEvent =
|
||||
| { type: 'runCompleted'; at: string; result: TurnRunResult }
|
||||
| { type: 'runFailed'; at: string; error: string }
|
||||
| { type: 'commandResult'; result: TurnDaemonCommandResult };
|
||||
|
||||
export type TurnDaemonCommandType = TurnDaemonCommand['type'];
|
||||
|
||||
export type TurnDaemonCommandByType<T extends TurnDaemonCommandType> = Extract<TurnDaemonCommand, { type: T }>;
|
||||
|
||||
export type TurnDaemonCommandResultByType<T extends TurnDaemonCommandType> = Extract<
|
||||
TurnDaemonCommandResult,
|
||||
{ type: T }
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user