示例工程 50-paths-and-assets

50-paths-and-assets/app/.tsc/shared/ipc.d.ts

typescript · 1.0 KB

export declare const CH: {
    readonly snapshot: "paths:snapshot";
    readonly refresh: "paths:refresh";
};
export type EventRow = {
    at: number;
    kind: string;
    detail: string;
};
export type Check = {
    id: string;
    label: string;
    pass: boolean;
    detail: string;
};
export type PathRow = {
    id: string;
    label: string;
    value: string;
    kind: "dir" | "file";
    exists: boolean;
    insideAsar: boolean;
    writable: boolean;
};
export type AssetRow = {
    id: string;
    label: string;
    resolved: string;
    via: "appPath" | "resourcesPath";
    exists: boolean;
    bytes: number;
    preview: string;
    insideAsar: boolean;
};
export type Snapshot = {
    platform: string;
    electronVersion: string;
    nodeVersion: string;
    isPackaged: boolean;
    asar: boolean;
    appPath: string;
    resourcesPath: string;
    paths: PathRow[];
    assets: AssetRow[];
    checks: Check[];
    score: number;
    events: EventRow[];
};
//# sourceMappingURL=ipc.d.ts.map