refactor: move from union type to object enum

This commit is contained in:
2026-07-15 02:41:17 +05:00
parent 35465f581f
commit 84f64af62d
30 changed files with 490 additions and 193 deletions
+1 -2
View File
@@ -3,5 +3,4 @@ import { KanbanBoard } from "./buildKanbanBoard";
/** Host → webview. */
export type KanbanOutboundMessage =
| { type: "state"; board: KanbanBoard }
| { type: "error"; error: AppError };
{ type: "state"; board: KanbanBoard } | { type: "error"; error: AppError };