示例工程 12-ipc-anti-patterns
12-ipc-anti-patterns/app/.tsc/shared/ipc.d.ts
export declare const CH: {
readonly audit: "audit:run";
};
export type WildcardAudit = {
wildcardAccepted: string[];
allowlistAccepted: string[];
allowlistRejected: string[];
};
export type PathAudit = {
unsafeAccepted: string[];
safeAccepted: string[];
safeRejected: string[];
workspace: string;
};
export type BridgeAudit = {
rawMethods: string[];
safeMethods: string[];
};
export type EnvAudit = {
unsafeKeys: string[];
safeKeys: string[];
secretKeys: string[];
};
export type AuditReport = {
wildcard: WildcardAudit;
path: PathAudit;
bridge: BridgeAudit;
env: EnvAudit;
safeSecretsLeaked: number;
requestId: string;
};
export type Envelope<T> = {
ok: true;
value: T;
requestId: string;
} | {
ok: false;
error: {
code: string;
message: string;
requestId: string;
};
};
//# sourceMappingURL=ipc.d.ts.map