示例工程 56-auto-update
56-auto-update/app/shared/ipc.ts
import type { Decision, Feed, Scheme } from "./feed";
export const CH = {
snapshot: "update:snapshot",
refresh: "update: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 FeedRow = Feed & { decision: Decision };
export type Snapshot = {
platform: string;
electronVersion: string;
nodeVersion: string;
schemes: Scheme[];
feeds: FeedRow[];
currentVersion: string;
checks: Check[];
score: number;
events: EventRow[];
};