示例工程 23-project-stream-workbench
23-project-stream-workbench/app/.tsc/shared/ipc.d.ts
export declare const CH: {
readonly start: "stream:start";
readonly stop: "stream:stop";
readonly stats: "stream:stats";
readonly export: "stream:export";
readonly batch: "stream:batch";
};
export type Source = "build" | "network" | "tools";
export type Level = "info" | "warn" | "error";
export type StreamEvent = {
id: number;
ts: number;
source: Source;
level: Level;
text: string;
};
export type StreamBatch = {
events: StreamEvent[];
emitted: number;
};
export type StreamStats = {
emitted: number;
running: boolean;
};
export type ExportResult = {
file: string;
lines: number;
bytes: number;
};
export declare function assertExportReq(value: unknown): asserts value is {
events: StreamEvent[];
};
//# sourceMappingURL=ipc.d.ts.map