export type BackendCommand = {
  action: string;
  correlationId?: string;
  id?: string;
  type?: string;
  tag?: string;
  payload?: unknown;
};

export type BackendOk<T> = { ok: true; data: T };
export type BackendErr = { ok: false; error: string };
export type BackendResponse<T> = BackendOk<T> | BackendErr;
