refactor: move from union type to object enum
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user