示例工程 25-vue-reactivity-streaming

25-vue-reactivity-streaming/app/.tsc/shared/ipc.d.ts

typescript · 0.8 KB

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