示例工程 54-packaging-targets-and-artifacts
54-packaging-targets-and-artifacts/app/shared/ipc.ts
import type { ArtifactRow, Layer, Measurements, ToolRow } from "./targets";
export const CH = {
snapshot: "pack:snapshot",
refresh: "pack: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;
layers: Layer[];
artifacts: ArtifactRow[];
tools: ToolRow[];
measurements: Measurements;
checks: Check[];
score: number;
events: EventRow[];
};