示例工程 55-installers-and-channels
55-installers-and-channels/app/shared/ipc.ts
import type { Channel, Installer, Recommendation } from "./channels";
export const CH = {
snapshot: "chan:snapshot",
refresh: "chan:refresh",
} as const;
export type EventRow = {
at: number;
kind: string;
detail: string;
};
export type Check = {
id: string;
label: string;
pass: boolean;
detail: string;
};
export type Snapshot = {
platform: string;
electronVersion: string;
nodeVersion: string;
channels: Channel[];
installers: Installer[];
decisions: Array<{ id: string; label: string; result: Recommendation }>;
checks: Check[];
score: number;
events: EventRow[];
};