Type Alias LoadStateServerMessage

LoadStateServerMessage: {
    lifecycle: "initial" | "refresh";
    message: {
        obj?: unknown;
        text?: string;
        type: LoadStateServerMessage["state"];
    };
    state: "loading"
    | "ready"
    | "loadError";
    type: "loadState";
}

Type declaration

  • lifecycle: "initial" | "refresh"
  • message: { obj?: unknown; text?: string; type: LoadStateServerMessage["state"] }
  • state: "loading" | "ready" | "loadError"
  • type: "loadState"